From 28b6a72ecee1c4c13540ff8efa7b61c3441fe25e Mon Sep 17 00:00:00 2001 From: Bryon Nevis Date: Thu, 9 Mar 2023 16:24:17 -0800 Subject: [PATCH] docs(security): Clarify units of adduser's tokenTTL and jwtTTL Signed-off-by: Bryon Nevis --- internal/security/config/command/proxy/adduser/command.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/security/config/command/proxy/adduser/command.go b/internal/security/config/command/proxy/adduser/command.go index f7c28305c8..5f6827c1c9 100644 --- a/internal/security/config/command/proxy/adduser/command.go +++ b/internal/security/config/command/proxy/adduser/command.go @@ -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)