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

Investigate if it is feasible to support a creation of a database with security object. #1244

Open
eiri opened this issue Mar 27, 2018 · 1 comment

Comments

@eiri
Copy link
Member

eiri commented Mar 27, 2018

It would be nice to be able to set security at db creation time, atomically if possible.

Expected Behaviour

I should be able to pass a security object as an option in fabric:create_db/2 call and expect to get a new database with security set or reject on invalid or outdated security object.

Current Behaviour

Right now we are either creating databases with an anonymous access or with a default security, based on value of "default_security" configuration.

Possible Solution

It's not that hard to pass security object and use default_security_object as a default if it is missing. Most tricky part here are in-betweens, e.g. scenario where a db user in sec object got deleted or out of sync on different nodes so shards will be created on once node and rejected on another. As long as we don't have consistent CP user db (cassim) this is one murky area.

@janl
Copy link
Member

janl commented Mar 28, 2018

I’ve wanted this forever <3

@eiri eiri removed their assignment Apr 3, 2018
@wohali wohali removed the dbcore label Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@janl @eiri @wohali and others