Skip to content

feat: deployment flags #4426

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

Merged
merged 11 commits into from
Oct 10, 2022
Merged

feat: deployment flags #4426

merged 11 commits into from
Oct 10, 2022

Conversation

f0ssel
Copy link
Contributor

@f0ssel f0ssel commented Oct 7, 2022

This moves all of the flags used to configure coder server into a centralized struct codersdk.DeploymentFlags that is now also returned by the api at /api/v2/flags/deployment. We scrub secret values out before returning them on the API and the endpoint currently only authorized the builtin owner role.

This satisfies the backend portion of #4203.

Future work

  • remove duplication of variables in the coderd API and use the DeploymentFlags field for conditional logic
  • use this format for a site-wide flag endpoint for regular users as well

@f0ssel f0ssel marked this pull request as ready for review October 10, 2022 17:27
@f0ssel f0ssel requested a review from a team as a code owner October 10, 2022 17:27
@f0ssel f0ssel requested review from Kira-Pilot, kylecarbs and deansheather and removed request for a team October 10, 2022 17:27
@f0ssel f0ssel merged commit b1faaef into main Oct 10, 2022
@f0ssel f0ssel deleted the f0ssel/new-flags branch October 10, 2022 19:04
kylecarbs added a commit that referenced this pull request Oct 10, 2022
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

Successfully merging this pull request may close these issues.

4 participants