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

Declarative method for defining domains and ownership #123

Open
bilalshaikh42 opened this issue Feb 4, 2022 · 3 comments
Open

Declarative method for defining domains and ownership #123

bilalshaikh42 opened this issue Feb 4, 2022 · 3 comments
Assignees

Comments

@bilalshaikh42
Copy link
Member

My apologies if this is documented somewhere and i missed it
Is there a way to declaratively create some top-level folders and assign user permissions? Our use case is that we define our infrastructure entirely declaratively. Therefore, deploying a new version or changing the backend storage (this particular situation) is just a matter of changing the configuration values.

However, for HSDS we end up with one additional step, which is to call the API to post a new domain and assign the ACLS for the user.

Would it be feasible to have this be a configuration option?

@jreadey
Copy link
Member

jreadey commented Feb 4, 2022

The API calls to setup folders and ACLs in the end just results in JSON files on your storage system. Can you just use those JSON files as the infrastructure definition?

@bilalshaikh42
Copy link
Member Author

That would be possible, but would still be an "additional" step past the configuration itself. If the server could read a list of domains, similar to the "allowed domains" variable, or even read the json files you mentioned and create them if they do not exist, it would allow for sharing a particular domain structure more easily.

This is not a major issue for us, but more of a convenience. Was curious as to the feasibility.

@jreadey
Copy link
Member

jreadey commented Feb 4, 2022

Interesting idea! Am a little concerned to add extra complexity in the server now.
Could you add something similar in your server startup script? E.g. check for folders by querying the storage system and create if need be. Then proceed with launching the server.

@bilalshaikh42 bilalshaikh42 changed the title Declarative method for defining domains and owenership Declarative method for defining domains and ownership May 19, 2022
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

2 participants