Updating policy doesn't update the key


#1

Hi,
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?


#2

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.


#3

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?


#4

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).