-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server/tailsql: add basic support for setec secrets
Extend the DBSpec type to allow specifying a secret name for the connection string instead of a URL or file. Move URL resolution from the validation step to the open step, so that validation is cheap and idempotent. Add an Option to hold a setec.Store, and export the CheckSources method so the caller can find out which secrets they need to include. Enforce that a secret store is present during construction of the service, if any of the sources requires it. Add a test to exercise using the new secret field (requires tailscale/setec#36). Signed-off-by: M. J. Fromberger <fromberger@tailscale.com>
- Loading branch information
1 parent
0e9e23c
commit 4ab5ea5
Showing
6 changed files
with
131 additions
and
31 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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