Skip to content

POST license file API #3279

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

Closed
Tracked by #480
spikecurtis opened this issue Jul 28, 2022 · 0 comments · Fixed by #3632
Closed
Tracked by #480

POST license file API #3279

spikecurtis opened this issue Jul 28, 2022 · 0 comments · Fixed by #3632

Comments

@spikecurtis
Copy link
Contributor

spikecurtis commented Jul 28, 2022

Problem

Customers need to be able to add their license file to a Coder deployment

Definition of Done

  1. POST api/v2/licenses endpoint
  2. CLI command coder licenses add <file>

Acceptance Criteria

Obtain a valid and invalid license file (you can create an invalid one by changing some of the letters in the license file)

  1. Add the license
    coder license add <file>
  2. Access the database.
    If you are using embedded postgres, you can get the connect string with:
    c server postgres-builtin-url
    If you are running external postgres, connect to it directly
  3. Validate that a row is created in the licenses table
  4. Add the invalid license
    coder license add <file>
  5. Verify this command fails and no row is added.
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 a pull request may close this issue.

1 participant