Open
Conversation
Contributor
|
I'm getting this error invoking |
Contributor
Author
Ah, I was only testing in my .venv for the backend. I didn't test for this scenario. Should I not rely on having a virtual environment for this script? If not, I can add a line to the scripts to add Another option that should be available is running the scripts in the docker container. Example below creates a read-only key called my-app: What are your thoughts @shilorigins? Add to the PATH? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add scripts for managing API Keys that don't require prior authentication. Previously only included a "bootstrap" endpoint for creating the first key. I'm removing the bootstrap endpoint as these scripts are a more reliable way to create keys.
create_key.pyThis script allows developers to create a new key in the database. They will need to give the key an App Name and read and/or write access. If no access is given, the script fails.
Sample output
list_keys.pyThis script will print out information on all stored keys. There is an optional flag for filtering the results to only show active keys. The data is formatted as a table listing all stored information (no tokens/hashes).
Sample output
deactivate_key.pyThis script allows developers to deactivate a key in the database using its ID.
Sample output
Motivation
Closes #36