Skip to content
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

feat: add secrets management #145

Merged
merged 9 commits into from
Nov 16, 2023
Merged

feat: add secrets management #145

merged 9 commits into from
Nov 16, 2023

Conversation

LucaLanziani
Copy link
Member

No description provided.

@LucaLanziani LucaLanziani changed the title Feature/secrets management feat: add secrets management Nov 14, 2023
@mablanco mablanco linked an issue Nov 14, 2023 that may be closed by this pull request
@mablanco mablanco removed the request for review from dublx November 15, 2023 14:58
@mablanco
Copy link
Contributor

I've tested the code and I think we're good to go on merging:

$  go run main.go secrets
NAME:
   initium secrets - A series of command to generate age keys, encrypt and decrypt secrets

USAGE:
   initium secrets command [command options] [arguments...]

COMMANDS:
   generate-keys  Generate the public and private keys and output them on stdout
   encrypt        Encrypt a secret, if the secret flag is used the secret is first encoded in base64 and then encrypted
   decrypt        Decrypt a base64 encoded secret and output the base64 encoded value
   help, h        Shows a list of commands or help for one command

OPTIONS:
   --help, -h  show help
$ go run main.go secrets encrypt
2023/11/16 08:40:33 FATA required flags "public-key, plain-secret, base64-plain-secret" not set
exit status 1
$ go run main.go secrets encrypt -h
NAME:
   initium secrets encrypt - Encrypt a secret, if the secret flag is used the secret is first encoded in base64 and then encrypted

USAGE:
   initium secrets encrypt [command options] [arguments...]

OPTIONS:
   --public-key value            [$INITIUM_SECRET_PUBLIC_KEY]
   --plain-secret value
   --base64-plain-secret value
   --help, -h                   show help

@mablanco mablanco merged commit 9623e63 into main Nov 16, 2023
1 check passed
@mablanco mablanco deleted the feature/secrets-management branch November 16, 2023 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add secrets management to CLI
2 participants