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

Implement project-specific buckets to prevent name clashes #26

Open
lukateras opened this issue Dec 13, 2019 · 0 comments
Open

Implement project-specific buckets to prevent name clashes #26

lukateras opened this issue Dec 13, 2019 · 0 comments

Comments

@lukateras
Copy link
Contributor

lukateras commented Dec 13, 2019

GET /v1/config and PUT /v1/config (i.e. hpos-state.json v1.config) can be used to store arbitrary data. As briefly discussed, to prevent clashes, it would be nice to have a separate sub-namespace for each consumer. I'm proposing to use a project name as a namespace, like this:

{
  "holo-nixpkgs": {
    // Contents are up to holo-nixpkgs developers 
    "sshAccess": false
  },
  "hpos-admin": {
    // Contents are up to hpos-admin developers
    "email": "sam.rose@holo.host",
    "name": "My HoloPort",
    "public_key": "z4NA8s70Wyaa2kckSQ3S3V3eIi8yLPFFdad9L0CY3iw"
  }
}

What do you think? cc @robbiecarlton @JettTech

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