You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the docs, we say you can set mfa_verification_interval like this:
# mfa_verification_interval optionally defines the maximum duration that can elapse between successive MFA verifications.# This variable is used to ensure that users are periodically prompted to verify their identity, enhancing# security by preventing prolonged sessions without re-authentication when using tsh proxy * derivatives.mfa_verification_interval: 1h
Whether you set this with tctl or the WebUI, this will result in an error:
ERROR REPORT:Original Error: *trace.BadParameterError types.RoleV6.Spec: types.RoleSpecV6.Options: types.RoleOptions.MFAVerificationInterval: readUint64: unexpected character: �, error found in #10 byte of ...|nterval":"10m","perm|..., bigger context ...|"forward_agent":true,"mfa_verification_interval":"10m","permit_x11_forwarding":true,"port_forwarding|...Stack Trace: github.com/gravitational/teleport/lib/services/role.go:3547 github.com/gravitational/teleport/lib/services.UnmarshalRoleV6 github.com/gravitational/teleport/lib/services/role.go:3527 github.com/gravitational/teleport/lib/services.UnmarshalRole github.com/gravitational/teleport/tool/tctl/common/resource_command.go:494 github.com/gravitational/teleport/tool/tctl/common.(*ResourceCommand).createRole github.com/gravitational/teleport/tool/tctl/common/resource_command.go:385 github.com/gravitational/teleport/tool/tctl/common.(*ResourceCommand).Create github.com/gravitational/teleport/tool/tctl/common/resource_command.go:272 github.com/gravitational/teleport/tool/tctl/common.(*ResourceCommand).TryRun github.com/gravitational/teleport/tool/tctl/common/tctl.go:168 github.com/gravitational/teleport/tool/tctl/common.TryRun github.com/gravitational/teleport/tool/tctl/common/tctl.go:79 github.com/gravitational/teleport/tool/tctl/common.Run github.com/gravitational/teleport/tool/tctl/main.go:32 main.main runtime/proc.go:272 runtime.main runtime/asm_arm64.s:1223 runtime.goexitUser Message: types.RoleV6.Spec: types.RoleSpecV6.Options: types.RoleOptions.MFAVerificationInterval: readUint64: unexpected character: �, error found in #10 byte of ...|nterval":"10m","perm|..., bigger context ...|"forward_agent":true,"mfa_verification_interval":"10m","permit_x11_forwarding":true,"port_forwarding|...
You actually have to set an int, and it's unclear to me without digging further whether the int needs to represent seconds or nanoseconds.
I ran into a similar issue before - to parse from a duration string you need to use our custom Duration casttype, e.g.:
This issue applies to:
mfa_verification_interval
poll_interval
request_duration
In the docs, we say you can set
mfa_verification_interval
like this:Whether you set this with
tctl
or the WebUI, this will result in an error:You actually have to set an int, and it's unclear to me without digging further whether the int needs to represent seconds or nanoseconds.
I ran into a similar issue before - to parse from a duration string you need to use our custom Duration casttype, e.g.:
The text was updated successfully, but these errors were encountered: