-
Notifications
You must be signed in to change notification settings - Fork 1
docs(dev): update dev docs to use dashboard #342
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
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,37 +26,24 @@ mise run postgres:up --extra-args "--detach --wait" | |
| # Install latest eql into database | ||
| mise run postgres:setup | ||
|
|
||
| # If this is your first time using CipherStash: | ||
| # - install stash CLI | ||
| # - `stash signup` | ||
|
|
||
| # If you have used CipherStash before: | ||
| # - `stash login` | ||
|
|
||
| # Create minimal mise.local.toml | ||
| # CS_WORKSPACE_CRN | ||
| # CS_CLIENT_ACCESS_KEY | ||
| # CS_DEFAULT_KEYSET_ID | ||
| # CS_CLIENT_KEY | ||
| # CS_CLIENT_ID | ||
|
|
||
| # Get the workspace ID | ||
| stash workspaces | ||
| # add to CS_WORKSPACE_CRN in the format: "crn:region:workspace-id" - eg. "crn:ap-southeast-2.aws:7WXWMKXKQU42PDB4" | ||
| # NOTE: this is going to change so `stash workspaces` will return CRNs instead of IDs | ||
|
|
||
| # Create an access key | ||
| stash access-keys create proxy | ||
| # add to CS_CLIENT_ACCESS_KEY | ||
|
|
||
| # Create a dataset | ||
| stash keysets create proxy | ||
| # add to CS_DEFAULT_KEYSET_ID | ||
|
|
||
| # Create a client | ||
| stash clients create --keyset-id $DEFAULT_KEYSET_ID proxy | ||
| # add to CS_CLIENT_ID | ||
| # add to CS_CLIENT_KEY | ||
| # Create a stub mise.local.toml | ||
| cat > mise.local.toml << 'EOF' | ||
| [env] | ||
| CS_WORKSPACE_CRN = "" | ||
| CS_CLIENT_KEY = "" | ||
| CS_CLIENT_ID = "" | ||
| CS_CLIENT_ACCESS_KEY = "" | ||
| CS_DEFAULT_KEYSET_ID = "" | ||
| EOF | ||
|
|
||
| # In your browser: | ||
| # - Sign in to https://dashboard.cipherstash.com | ||
| # - Create or select a workspace | ||
| # - Generate and copy the credentials to your clipboard | ||
|
|
||
| # In your terminal: | ||
| # - Paste the credentials into mise.local.toml using your preferred text editor | ||
| nano mise.local.toml | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does everyone have a nano?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, it's on pretty much every Linux distribution, and on macOS. |
||
|
|
||
| # Build and run Proxy | ||
| mise run proxy | ||
|
|
||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The order of credentials differs from mise.local.example.toml. For consistency, consider reordering to match: CS_WORKSPACE_CRN, CS_CLIENT_ACCESS_KEY, (blank line), CS_DEFAULT_KEYSET_ID, CS_CLIENT_KEY, CS_CLIENT_ID. While the current order is functionally correct, matching the example file helps maintain consistency across documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ordering in
mise.local.example.tomlis incorrect, so ignoring.