adobe / da-admin

Apache License 2.0
0 stars 4 forks source link

Config API #21

Closed auniverseaway closed 6 months ago

auniverseaway commented 6 months ago

As an administrator, I would like to have a way to store configurations at org and repo levels so I can manage ACLs, integration details, etc. easier.

Context

Authentication is currently enabled at the org level, but this creates a few issues:

  1. It's currently only editable in Cloudflare via KV.
  2. It's only enabled at the org level, not the site level.

Criteria of acceptance

  1. Org-level configurations (auth access, etc.) are editable via the da-admin API.
  2. Input format should match 1:1 json format of sheet so the UI is familiar.
  3. KV should be split between auth session storage and configs (currently shared)
  4. Improved documentation for local KV usage.

Nice to have

  1. Repo-level configurations (auth access, etc.) are enabled if convenient to implement. I think this is all in auth.js.

Open questions

What does this look like on da-live? It should feel like editing a sheet, but that would imply some sort of file.