So I was talking to a gentleman at Kubecon, and they are using an internal fork of kubernetes-ldap and he brought up a very good point. today we get the list of groups for users at token generation time, and then add that to token and its valid until that token is valid. Now if the group membership has changed, while the token is still valid, we dont see that change. This can be a security issue as well. We should probably do group look up at token validation time.
So I was talking to a gentleman at Kubecon, and they are using an internal fork of kubernetes-ldap and he brought up a very good point.
today we get the list of groups for users at token generation time, and then add that to token and its valid until that token is valid.
Now if the group membership has changed, while the token is still valid, we dont see that change. This can be a security issue as well.
We should probably do group look up at token validation time.