backport of commit cfbb2e8923d254bc940e1b01c3e772769600fefe (#19168)

Co-authored-by: James Rasell <jrasell@users.noreply.github.com>
This commit is contained in:
hc-github-team-nomad-core 2023-11-24 04:56:31 -06:00 committed by GitHub
parent 4701162b2d
commit 525534f1d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 22 deletions

View file

@ -77,7 +77,7 @@ func formatAuthMethod(authMethod *api.ACLAuthMethod) string {
fmt.Sprintf("Name|%s", authMethod.Name), fmt.Sprintf("Name|%s", authMethod.Name),
fmt.Sprintf("Type|%s", authMethod.Type), fmt.Sprintf("Type|%s", authMethod.Type),
fmt.Sprintf("Locality|%s", authMethod.TokenLocality), fmt.Sprintf("Locality|%s", authMethod.TokenLocality),
fmt.Sprintf("MaxTokenTTL|%s", authMethod.MaxTokenTTL.String()), fmt.Sprintf("Max Token TTL|%s", authMethod.MaxTokenTTL.String()),
fmt.Sprintf("Default|%t", authMethod.Default), fmt.Sprintf("Default|%t", authMethod.Default),
fmt.Sprintf("Create Index|%d", authMethod.CreateIndex), fmt.Sprintf("Create Index|%d", authMethod.CreateIndex),
fmt.Sprintf("Modify Index|%d", authMethod.ModifyIndex), fmt.Sprintf("Modify Index|%d", authMethod.ModifyIndex),

View file

@ -54,13 +54,13 @@ Create a new ACL Auth Method:
```shell-session ```shell-session
$ nomad acl auth-method create -name "example-acl-auth-method" -type "OIDC" -max-token-ttl "1h" -token-locality "local" -config "@config.json" $ nomad acl auth-method create -name "example-acl-auth-method" -type "OIDC" -max-token-ttl "1h" -token-locality "local" -config "@config.json"
Name = example-acl-auth-method Name = example-acl-auth-method
Type = OIDC Type = OIDC
Locality = local Locality = local
MaxTokenTTL = 1h0m0s Max Token TTL = 1h0m0s
Default = false Default = false
Create Index = 14 Create Index = 14
Modify Index = 14 Modify Index = 14
Auth Method Config Auth Method Config

View file

@ -34,13 +34,13 @@ Fetch information about an existing ACL Auth Method:
```shell-session ```shell-session
$ nomad acl auth-method info example-acl-auth-method $ nomad acl auth-method info example-acl-auth-method
Name = example-acl-auth-method Name = example-acl-auth-method
Type = OIDC Type = OIDC
Locality = local Locality = local
MaxTokenTTL = 1h0m0s Max Token TTL = 1h0m0s
Default = false Default = false
Create Index = 14 Create Index = 14
Modify Index = 14 Modify Index = 14
Auth Method Config Auth Method Config

View file

@ -62,13 +62,13 @@ Update an existing ACL auth method:
```shell-session ```shell-session
$ nomad acl auth-method update -token-locality "global" -config @config.json example-acl-auth-method $ nomad acl auth-method update -token-locality "global" -config @config.json example-acl-auth-method
Name = example-acl-auth-method Name = example-acl-auth-method
Type = OIDC Type = OIDC
Locality = global Locality = global
MaxTokenTTL = 1h0m0s Max Token TTL = 1h0m0s
Default = false Default = false
Create Index = 14 Create Index = 14
Modify Index = 33 Modify Index = 33
Auth Method Config Auth Method Config