-
Notifications
You must be signed in to change notification settings - Fork 608
feat: add SecretsConfig proto for encrypted env vars #4451
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
5 commits
Select commit
Hold shift + click to select a range
405ea48
feat: add environment variables db schema and queries
Flo4604 5b0249e
fix db query
Flo4604 60f228c
feat: add SecretsConfig proto for encrypted env vars
Flo4604 ac29218
[autofix.ci] apply automated fixes
autofix-ci[bot] 1f4644b
Merge branch 'main' into feat/env-vars-secrets-proto
chronark 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 |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| // @generated by protoc-gen-es v2.8.0 with parameter "target=ts" | ||
| // @generated from file ctrl/v1/secrets.proto (package ctrl.v1, syntax proto3) | ||
| /* eslint-disable */ | ||
|
|
||
| import type { Message } from "@bufbuild/protobuf"; | ||
| import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; | ||
| import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; | ||
|
|
||
| /** | ||
| * Describes the file ctrl/v1/secrets.proto. | ||
| */ | ||
| export const file_ctrl_v1_secrets: GenFile = | ||
| /*@__PURE__*/ | ||
| fileDesc( | ||
| "ChVjdHJsL3YxL3NlY3JldHMucHJvdG8SB2N0cmwudjEidQoNU2VjcmV0c0NvbmZpZxI0CgdzZWNyZXRzGAEgAygLMiMuY3RybC52MS5TZWNyZXRzQ29uZmlnLlNlY3JldHNFbnRyeRouCgxTZWNyZXRzRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4AUKOAQoLY29tLmN0cmwudjFCDFNlY3JldHNQcm90b1ABWjRnaXRodWIuY29tL3Vua2V5ZWQvdW5rZXkvZ28vZ2VuL3Byb3RvL2N0cmwvdjE7Y3RybHYxogIDQ1hYqgIHQ3RybC5WMcoCB0N0cmxcVjHiAhNDdHJsXFYxXEdQQk1ldGFkYXRh6gIIQ3RybDo6VjFiBnByb3RvMw", | ||
| ); | ||
|
|
||
| /** | ||
| * SecretsConfig is stored in the deployments table | ||
| * Contains encrypted environment variables snapshotted at deploy time | ||
| * | ||
| * @generated from message ctrl.v1.SecretsConfig | ||
| */ | ||
| export type SecretsConfig = Message<"ctrl.v1.SecretsConfig"> & { | ||
| /** | ||
| * key -> encrypted value | ||
| * | ||
| * @generated from field: map<string, string> secrets = 1; | ||
| */ | ||
| secrets: { [key: string]: string }; | ||
| }; | ||
|
|
||
| /** | ||
| * Describes the message ctrl.v1.SecretsConfig. | ||
| * Use `create(SecretsConfigSchema)` to create a new message. | ||
| */ | ||
| export const SecretsConfigSchema: GenMessage<SecretsConfig> = | ||
| /*@__PURE__*/ | ||
| messageDesc(file_ctrl_v1_secrets, 0); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| syntax = "proto3"; | ||
| package ctrl.v1; | ||
|
|
||
| option go_package = "github.com/unkeyed/unkey/go/gen/proto/ctrl/v1;ctrlv1"; | ||
|
|
||
| // SecretsConfig is stored in the deployments table | ||
| // Contains encrypted environment variables snapshotted at deploy time | ||
| message SecretsConfig { | ||
| // key -> encrypted value | ||
| map<string, string> secrets = 1; | ||
| } | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.