Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission cache not correct #128

Open
alainbodiguel opened this issue Sep 4, 2023 · 0 comments
Open

Permission cache not correct #128

alainbodiguel opened this issue Sep 4, 2023 · 0 comments

Comments

@alainbodiguel
Copy link
Contributor

When switching org in hub from a forbidden org (only owner) to a authorized org (builder), cache is keeping previous forbidden decision.

DEBUG [2023-09-04 09:55:53,002] io.arlas.commons.cache.BaseHazelcastCacheManager: Inserting object 'GET:persist/resources/config.json:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyZDgyMjc4MC02ZGI2LTRlMDQtYWJhNy1kMDFhM2M3ZDRkNGEiLCJodHRwOi8vYXJsYXMuaW8vbG9jYWxlIjoiZW4iLCJpc3MiOiJkZXYuY2xvdWQuc3RhZ2luZy5hcmxhcy5pbyIsImV4cCI6MTY5MzgyMTk1MiwiaHR0cDovL2FybGFzLmlvL3RpbWV6b25lIjoiRXVyb3BlL1BhcmlzIiwiaWF0IjoxNjkzODIxMzUyfQ.cAEHf0nt3uplT1cpU841Fg-pte3b8Yi8fL1lLKZkOzs' with value 'false' in cache (key=decisions)
INFO  [2023-09-04 09:55:53,003] io.arlas.filter.impl.AbstractPolicyEnforcer: forbidden (with token): GET /arlas/persistence/persist/resources/config.json (orgs=[, 2d822780-6db6-4e04-aba7-d01a3c7d4d4a]) (groups=[group/config.json/2d822780-6db6-4e04-aba7-d01a3c7d4d4a, group/public]) (permissions=[r:session:DELETE, r:permissions:GET, r:organisations:GET,POST, r:users/.*:GET,PUT,DELETE, h:column-filter:*:*, r:collections:GET, r:organisations/.*:GET,POST,PUT,DELETE])
DEBUG [2023-09-04 09:56:11,195] io.arlas.commons.cache.BaseHazelcastCacheManager: Returning object 'GET:persist/resources/config.json:eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIyZDgyMjc4MC02ZGI2LTRlMDQtYWJhNy1kMDFhM2M3ZDRkNGEiLCJodHRwOi8vYXJsYXMuaW8vbG9jYWxlIjoiZW4iLCJpc3MiOiJkZXYuY2xvdWQuc3RhZ2luZy5hcmxhcy5pbyIsImV4cCI6MTY5MzgyMTk1MiwiaHR0cDovL2FybGFzLmlvL3RpbWV6b25lIjoiRXVyb3BlL1BhcmlzIiwiaWF0IjoxNjkzODIxMzUyfQ.cAEHf0nt3uplT1cpU841Fg-pte3b8Yi8fL1lLKZkOzs' from cache (key=decisions) with value false
INFO  [2023-09-04 09:56:11,195] io.arlas.filter.impl.AbstractPolicyEnforcer: forbidden (from cache): GET /arlas/persistence/persist/resources/config.json
INFO  [2023-09-04 10:00:15,368] io.arlas.filter.impl.AbstractPolicyEnforcer: unauthorized (no token): GET /arlas/persistence/persist/resources/config.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant