Updating policy doesn't update the key

I have created a policy and assigned some rates and quotas , and then generated a key based on that. (all these were done through dashboard)

the thing is when I update the policy the key is not affected, i.e. it shows the configs from the previous policy.
any idea why?

This is expected, the policy only takes effect on the data stored against the key when the key is actually used. So you must use the key against the gateway for the policy rules to be applied.

1 Like

Thanks Martin for the answer. so is this a current assumption that after updating the policy and using the key against gateway , if I look up the key, I will see the changes are affected?

Yes, if the key is actively used, the data will be copied into the token and so would update when you loked at it again in the dashboard (or used the API).

1 Like