You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I do hydra policies subject remove <policy> <subject>, it doesn't remove it, it adds it.
Steps to Reproduce:
Step 0, start from a fresh hydra instance, with migrations and hydra connect already done, and the connecting client has permissions to manage policies.
1. Create a new policy
$ hydra policies create --skip-tls-verify \
--actions only,get,stronger \
--allow \
--description "eventually, everyone was given access" \
--id unkillable \
--resources the:whole:universe \
--subjects justme
Created policy unkillable.
When I do
hydra policies subject remove <policy> <subject>
, it doesn't remove it, it adds it.Steps to Reproduce:
Step 0, start from a fresh hydra instance, with migrations and
hydra connect
already done, and the connecting client has permissions to manage policies.1. Create a new policy
2. Try to remove
justme
3. Check if it was removed
4. Try to remove
the-solar-system
(which didn't exist previously)5. See that non-existent
the-solar-system
subject is now existent.Also, I noticed these two lines in
hydra/cmd/cli/handler_policy.go:RemoveSubjectFromPolicy
, as oftag: v0.10.0-alpha.18
So maybe line 187 is causing this.
The text was updated successfully, but these errors were encountered: