Documentation
¶
Overview ¶
Package key manages the client-held store key and a store's at-rest key.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = cli.Command{ Name: "key", Description: "Manage the store key that encrypts names and contents before upload", Subcommands: []cli.Command{ { Name: "new", Usage: "Generate a store key file", ArgsUsage: "<name>", Action: newAction, Flags: []cli.Flag{outFlag("store.key")}, }, { Name: "escrow", Usage: "Wrap a store key under a passphrase as an armored age file, which `age -d` also opens, and print it or keep it with the store", Action: escrowAction, Flags: []cli.Flag{ cli.StringFlag{Name: "key", Usage: "key file to escrow", Value: "store.key"}, passphraseFlag, cli.BoolFlag{Name: "upload", Usage: "keep the escrowed key with the store --storage names, instead of printing it"}, }, }, { Name: "id", Usage: "Print the id of a store key, which names it in the store and in its escrowed copies", Action: idAction, Flags: []cli.Flag{cli.StringFlag{Name: "key", Usage: "key file", Value: "store.key"}}, }, { Name: "recover", Usage: "Rebuild a key file from an escrowed key and its passphrase", Action: recoverAction, Flags: []cli.Flag{ cli.StringFlag{Name: "escrow", Usage: "escrowed key file, as printed by escrow; - reads standard input", Value: "-"}, outFlag("store.key"), passphraseFlag, }, }, { Name: "at-rest", Usage: "Generate the key a local, gcs:// or s3:// store seals its archives with, or rotate it", Action: atRestAction, Flags: []cli.Flag{ outFlag("at-rest.key"), cli.BoolFlag{Name: "rotate", Usage: "add a fresh primary key to the file; the keys it held still open what they sealed"}, }, }, }, }
Command is the key command.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.