Skip to content

Commit 2f67a1a

Browse files
minor docs updates (#8725)
1 parent 18041c0 commit 2f67a1a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

command/token_create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (c *TokenCreateCommand) Flags() *FlagSets {
123123
Default: false,
124124
Usage: "Create the token with no parent. This prevents the token from " +
125125
"being revoked when the token which created it expires. Setting this " +
126-
"value requires sudo permissions.",
126+
"value requires root or sudo permissions.",
127127
})
128128

129129
f.BoolVar(&BoolVar{

website/pages/api-docs/auth/token/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ during this call.
7474
If not specified, defaults to all the policies of the calling token.
7575
- `meta` `(map: {})` – A map of string to string valued metadata. This is
7676
passed through to the audit devices.
77-
- `no_parent` `(bool: false)` - If true and set by a root caller, the token will
78-
not have the parent token of the caller. This creates a token with no parent.
77+
- `no_parent` `(bool: false)` - This argument only has effect if used by a root
78+
or sudo caller. When set to true, the token created will not have a parent.
7979
- `no_default_policy` `(bool: false)` - If true the `default` policy will not be
8080
contained in this token's policy set.
8181
- `renewable` `(bool: true)` - Set to `false` to disable the ability of the token
@@ -99,7 +99,7 @@ during this call.
9999
limit to the number of uses.
100100
- `period` `(string: "")` - If specified, the token will be periodic; it will have
101101
no maximum TTL (unless an "explicit-max-ttl" is also set) but every renewal
102-
will use the given period. Requires a root/sudo token to use.
102+
will use the given period. Requires a root token or one with the sudo capability.
103103
- `entity_alias` `(string: "")` - Name of the entity alias to associate with
104104
during token creation. Only works in combination with `role_name` argument
105105
and used entity alias must be listed in `allowed_entity_aliases`. If this has

website/pages/docs/concepts/tokens.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ Often this behavior is not desired, so users with appropriate access can create
9191
`orphan` tokens. These tokens have no parent -- they are the root of their own
9292
token tree. These orphan tokens can be created:
9393

94-
1. Via the `auth/token/create-orphan` endpoint
95-
2. By having `sudo` capability or `root` policy when accessing
96-
`auth/token/create` and setting the `orphan` parameter to `true`
94+
1. Via `write` access to the `auth/token/create-orphan` endpoint
95+
2. By having `sudo` or `root` access to the `auth/token/create`
96+
and setting the `no_parent` parameter to `true`
9797
3. Via token store roles
9898
4. By logging in with any other (non-`token`) auth method
9999

0 commit comments

Comments
 (0)