-
Notifications
You must be signed in to change notification settings - Fork 4
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
Kv policy verification #72
Conversation
interactor unit test
policies.append(policy_name).uniq! | ||
put_entity(sub, policies, metadata) | ||
put_entity_alias(sub, email, "oidc") | ||
Domain.with_advisory_lock(sub) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is unfortunate that this mechanism isn't provided by vault itself, because this won't prevent another user/app from modifying the entity directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
out of curiosity, why not just use a ruby mutex: https://ruby-doc.org/core-2.5.1/Mutex.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i tried! but there are apparently multiple instances of the server running, which won't share the mutex attribute.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Depends on #70
Fixes #56