Skip to content

Commit

Permalink
docs(security): Clarify units of adduser's tokenTTL and jwtTTL (#4431)
Browse files Browse the repository at this point in the history
Signed-off-by: Bryon Nevis <[email protected]>
  • Loading branch information
bnevis-i authored Mar 10, 2023
1 parent b576a02 commit 962cd11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/security/config/command/proxy/adduser/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ func NewCommand(
flagSet := flag.NewFlagSet(CommandName, flag.ContinueOnError)
flagSet.StringVar(&dummy, "configDir", "", "") // handled by bootstrap; duplicated here to prevent arg parsing errors
flagSet.StringVar(&cmd.username, "user", "", "Username of the user to add")
flagSet.StringVar(&cmd.tokenTTL, "tokenTTL", DefaultTokenTTL, "Vault token created as a result of vault login lasts this long")
flagSet.StringVar(&cmd.jwtTTL, "jwtTTL", DefaultJWTTTL, "JWT created by vault identity provider lasts this long")
flagSet.StringVar(&cmd.tokenTTL, "tokenTTL", DefaultTokenTTL, "Vault token created as a result of vault login lasts this long (_s, _m, _h, or _d, seconds if no unit)")
flagSet.StringVar(&cmd.jwtTTL, "jwtTTL", DefaultJWTTTL, "JWT created by vault identity provider lasts this long (_s, _m, _h, or _d, seconds if no unit)")
flagSet.BoolVar(&cmd.useRootToken, "useRootToken", false, "Set to true to TokenFile in config points to a resp-init.json instead of a service token")

err := flagSet.Parse(args)
Expand Down

0 comments on commit 962cd11

Please sign in to comment.