feat(plugin): add cockroach sql
support
#536
Open
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.
Overview
This PR adds a new shell plugin for CockroachDB that enables secure credential management for the
cockroach sql
command. The plugin supports both local development (insecure mode) and production environments (secure TLS connections) through environment variable configuration.Type of change
Related Issue(s)
How To Test
tl;dr There's a demo. https://streamable.com/btqzp5. It goes from a clean DB credential creation, renaming fields to match the expected format, etc.
Apologies for the streamable link, but GitHub has a 10mb file size limit and the mp4 demo video was already 58 or so mb.
Set up database credentials in 1Password with the following fields:
localhost
26257
root
defaultdb
1
(for local development)Test with local CockroachDB instance:
Test environment variable import:
Run plugin validation:
Changelog
The CockroachDB plugin enables authentication for the
cockroach sql
command using Touch ID and other unlock options with 1Password Shell Plugins.