[Assembly] Boundary Commands (CLI) docs (#3411)
* Add 'Commands (CLI)' docs * Update index.mdx Added Environment variables section * Add 'connect' sub-folder structure * Adding listen address and port environment variables * add connect to the docs navigation * docs: Add Florin's update to index * docs: Fix links and typo * Add front-matter to resolve the PR check issue * Update postgres.mdx Boundary helper for POSTGRES * Completed 'boundary accounts' command docs * Draft connection option documentatino for kube, http, and rdp (#3455) * Style updates for consistency * Clean up using partials * Add 'ssh' doc & updated style for consistency * Fix paste error * Fix the format issue on 'connect ssh' doc * Add 'auth-methods' command doc (#3520) * Add the docs for 'logout', 'server', and 'dev' commands (#3524) * Add the docs for 'logout', 'server', and 'dev' commands * Update the front matter * Add auth-tokens and authenticate command docs (#3575) * Add config command docs (#3576) * updates to the ssh helper command docs (#3523) * updates to the ssh helper command docs * docs: Fix code block * docs: Add minor copy edits --------- Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com> * docs: Add worker commands * docs: Update workers subcommands (#3598) * docs: Update worker subcommands * docs: Update certificate-authority subcommand * doc: Fix syntax for code refererences * docs: Add `users` commands (#3599) * docs: Add `users` commands * docs: Add more subcommands * docs: Add `target` commands (#3608) * Add command docs for 'credential-libraries' (#3610) * Add 'credential-stores' command docs (#3611) * Add 'credential-stores' command docs * Add the output message * Fix a typo * Fix a typo * Update the dummy token value * docs: Add `storage-bucket` commands - update (#3615) * docs: Add `sessions` commands (#3616) * docs: Add `session-recordings` commands (#3617) * Add 'credentials' command docs (#3619) * Add 'credentials' command docs * Fix typos * docs: Add `scopes` commands (#3620) * docs: Add `scopes` commands * docs: Fix typos * docs: Add `roles` commands (#3621) * docs: Add `roles` commands * docs: Add remaining subcommands * Add 'database' command docs (#3628) * Add 'database' command docs * Update the format inconsistency * docs: Add `managed-groups` commands (#3626) * docs: Add `managed-groups` commands * docs: Clarify description * docs: Add `hosts` commands (#3629) * docs: Add `host-sets` commands (#3630) * docs: Add `host-sets` commands * docs: Copy edits * docs: Add `host-catalogs` commands (#3632) * Add 'boundary groups' command docs (#3636) --------- Co-authored-by: kevin-loehfelm <37027455+kevin-loehfelm@users.noreply.github.com> Co-authored-by: kevin-loehfelm <kevin.loehfelm@hashicorp.com> Co-authored-by: Dan Heath <76443935+Dan-Heath@users.noreply.github.com> Co-authored-by: Florin Cătălin Țiucra-Popa <106736683+FlorinTP@users.noreply.github.com> Co-authored-by: Adam Bouhmad <adbouhmad@gmail.com>
This commit is contained in:
169 files changed
+12444
-260
No files matched your search
@@ -0,0 +1,133 @@
|
||||
---
|
||||
layout: docs
|
||||
page_title: auth-methods change-state - Command
|
||||
description: |-
|
||||
The "auth-methods change-state" command lets Boundary admin change the state of an auth method.
|
||||
---
|
||||
|
||||
# auth-methods change-state
|
||||
|
||||
Command: `boundary auth-methods change-state`
|
||||
|
||||
The `auth-methods change-state` command changes the active and visibility state
|
||||
of an OIDC-type auth method given its ID.
|
||||
|
||||
An OIDC auth method can be in one of several different states: Inactive, Active
|
||||
Private, and Active Public. The current state of an OIDC auth method
|
||||
affects how endpoints respond to requests and, sometimes, whether access to
|
||||
an endpoint requires authentication.
|
||||
|
||||
- **MakeInactive** transitions an OIDC auth method from either the **Active Private**
|
||||
or the **Active Public** state into the **Inactive** state.
|
||||
- **MakePrivate** transitions an OIDC auth method from either the **Inactive** or the
|
||||
**Active Public** state into the **Active Private** state. If the transition is from the
|
||||
**Inactive** state, it will only succeed if the configuration is
|
||||
valid.
|
||||
- **MakePublic** transitions an OIDC auth method from either the **Inactive** or the
|
||||
**Active Private** state into the **Active Public** state. If the transition is from the
|
||||
**Inactive** state, it will only succeed if the configuration is
|
||||
valid.
|
||||
|
||||
Before you change the state of an auth-method, Boundary retrieves the provider’s discovery document for the auth method’s issuer and attempts to
|
||||
validate the auth-method’s configuration against this published information. If
|
||||
Boundary is unable to validate the configuration, an error is returned and the
|
||||
state change is not successful.
|
||||
|
||||
## Examples
|
||||
|
||||
The following example changes the OIDC auth method's state to `active-public`:
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods change-state oidc -id amoidc_oHt4HQFCrN \
|
||||
-state active-public
|
||||
```
|
||||
|
||||
**Example output:**
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```plaintext
|
||||
Auth Method information:
|
||||
Created Time: Fri, 09 Sep 2022 11:11:55 MDT
|
||||
ID: amoidc_oHt4HQFCrN
|
||||
Name: auth0
|
||||
Type: oidc
|
||||
Updated Time: Fri, 09 Sep 2022 11:41:33 MDT
|
||||
Version: 3
|
||||
|
||||
Scope:
|
||||
ID: global
|
||||
Name: global
|
||||
Type: global
|
||||
|
||||
Authorized Actions:
|
||||
no-op
|
||||
read
|
||||
update
|
||||
delete
|
||||
change-state
|
||||
authenticate
|
||||
|
||||
Authorized Actions on Auth Method's Collections:
|
||||
accounts:
|
||||
create
|
||||
list
|
||||
managed-groups:
|
||||
create
|
||||
list
|
||||
|
||||
Attributes:
|
||||
api_url_prefix: https://e58fe114-7624-431c-994d-b6670e90b03J.boundary.hashicorp.cloud
|
||||
callback_url: https://e58fe114-7624-431c-994d-b6670e90b03J.boundary.hashicorp.cloud/v1/auth-methods/oidc:authenticate:callback
|
||||
client_id: zbaJLTZh3n14WqSV7qQ9onuIVRDaZdzx
|
||||
client_secret_hmac: Qc3i8NdnTP6rl4JANIg-a2GXgRW5rEKTp2ReIK_BOng
|
||||
issuer: https://dev-1vdl8c0q.us.auth0.com/
|
||||
max_age: 0
|
||||
signing_algorithms: [RS256]
|
||||
state: active-public
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
## Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods change-state oidc [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
### Command options
|
||||
|
||||
- `-id` `(string: "")` - The ID of the oidc-type auth method on which to operate.
|
||||
|
||||
### OIDC auth method options
|
||||
|
||||
- `-disable-discovered-config-validation` - Disables validating
|
||||
the given auth method against configuration from the authorization server's
|
||||
discovery URL. You must specify this value every time an auth method that cannot be validated
|
||||
is updated or state changed. Not specifying a value is equivalent to setting the value to
|
||||
`false`. The default is `false`.
|
||||
|
||||
- `-state` `(string: "")` - The desired operational state of the auth method.
|
||||
Three different states exist for an authentication method:
|
||||
|
||||
- `inactive` users can not authenticate with inactive auth methods and the
|
||||
inactive auth methods are not listed for unauthenticated users.
|
||||
- `active-private` users can authenticate with active-private auth methods
|
||||
and active-private auth methods are not listed for unauthenticated users.
|
||||
- `active-public` users can authenticate with active-public auth methods and
|
||||
active-public auth methods are listed for unauthenticated users.
|
||||
|
||||
If you change an auth method from `active-public` or `active-private` to `inactive`, all
|
||||
in-flight authentications will succeed unless the auth method’s configuration is
|
||||
modified while the request is in-flight.
|
||||
|
||||
When you change an auth method's state using `boundary auth-methods change-state`,
|
||||
Boundary uses the `-disable-discovered-config-validation` flag to disable validation
|
||||
against the provider’s published discovery document. This allows for the very
|
||||
rare occurrence when the Provider has published an invalid discovery document.
|
||||
|
||||
@include 'cmd-option-note.mdx'
|
||||
@@ -0,0 +1,278 @@
|
||||
---
|
||||
layout: docs
|
||||
page_title: auth-methods create - Command
|
||||
description: |-
|
||||
The "auth-methods create" command lets Boundary admin create an auth method.
|
||||
---
|
||||
|
||||
# auth-methods create
|
||||
|
||||
Command: `boundary auth-methods create`
|
||||
|
||||
The `auth-methods create` command lets you create Boundary auth
|
||||
method resources. The available auth method types are: LDAP, OIDC, and password.
|
||||
|
||||
## Examples
|
||||
|
||||
The following example creates an OIDC auth method by passing the OIDC provider's domain (`-issuer`), client ID, and client secret:
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods create oidc \
|
||||
-issuer "https://dev-1sdl8c0z.us.auth0.com" \
|
||||
-client-id "zaxJLTZh3n14WqSQ7qQ9onuIVRDaZdzz;" \
|
||||
-client-secret "t35c9NNw1aZ8haEKFJbJF0lauMOSp5UNPovUJXo8Ea2sPZAR1DszEowX-6-lg-Xr" \
|
||||
-signing-algorithm RS256 \
|
||||
-api-url-prefix "http://localhost:9200" \
|
||||
-name "auth0"
|
||||
```
|
||||
|
||||
**Example output:**
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```plaintext
|
||||
Auth Method information:
|
||||
Created Time: Thu, 06 May 2021 16:39:33 MDT
|
||||
ID: amoidc_oHt4HQFCrN
|
||||
Name: auth0
|
||||
Type: oidc
|
||||
Updated Time: Thu, 06 May 2021 16:39:33 MDT
|
||||
Version: 1
|
||||
|
||||
Scope:
|
||||
ID: global
|
||||
Name: global
|
||||
Type: global
|
||||
|
||||
Authorized Actions:
|
||||
no-op
|
||||
read
|
||||
update
|
||||
delete
|
||||
change-state
|
||||
authenticate
|
||||
|
||||
Authorized Actions on Auth Method's Collections:
|
||||
accounts:
|
||||
create
|
||||
list
|
||||
|
||||
Attributes:
|
||||
api_url_prefix: http://localhost:9200
|
||||
callback_url: http://localhost:9200/v1/auth-methods/oidc:authenticate:callback
|
||||
client_id: zbaJLTZh3n14WqSV7qQ9onuIVRDaZdzx
|
||||
client_secret_hmac: ayJRYSCphzxcHiKJvBrnDVtz1yiR958ejQuRGdQJMeM
|
||||
issuer: https://dev-1vdl8c0q.us.auth0.com
|
||||
signing_algorithms: [RS256]
|
||||
state: inactive
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods create [type] [sub command] [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
### Command options:
|
||||
|
||||
- `-description` `(string: "")` - The description to set on the auth method.
|
||||
- `-name` `(string: "")` - The name to set on the auth method.
|
||||
- `-scope-id` `(string: "")` - The scope in which to make the request. The default
|
||||
is `global`. You can also specify the scope using the **BOUNDARY_SCOPE_ID** environment variable.
|
||||
|
||||
@include 'cmd-option-note.mdx'
|
||||
|
||||
### Usages by type
|
||||
|
||||
The available types are: `ldap`, `oidc`, and `password`.
|
||||
|
||||
<Tabs>
|
||||
<Tab heading="LDAP">
|
||||
|
||||
The `boundary auth-methods create ldap` command creates an LDAP auth method.
|
||||
|
||||
#### Example
|
||||
|
||||
The following example creates an LDAP auth method with the name `prodops` and the description `LDAP auth-method for ProdOps`:
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods create ldap -name prodops \
|
||||
-description "LDAP auth-method for ProdOps"
|
||||
```
|
||||
|
||||
#### Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods create ldap [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
#### LDAP auth method options
|
||||
|
||||
The following are LDAP-specific options in addition to the command
|
||||
options:
|
||||
|
||||
- `-anon-group-search` - Uses anon bind when performing LDAP
|
||||
group searches (optional). The default is `false`.
|
||||
|
||||
- `-bind-dn` `(string: "")` - Uses the distinguished name of entry to bind when
|
||||
performing user and group searches (optional).
|
||||
|
||||
- `-bind-password` `(string: "")` - Indicates the password to use along with bind-dn
|
||||
performing user and group searches (optional).
|
||||
|
||||
- `-certificate` `(string: "")` - Specifies a PEM-encoded X.509 CA certificate in ASN.1 DER
|
||||
form that can be used as a trust anchor when connecting to an LDAP
|
||||
server(optional). You can specify this value multiple times.
|
||||
|
||||
- `-client-certificate` `(string: "")` - Specifies a PEM-encoded X.509 client certificate in
|
||||
ASN.1 DER form that can be used to authenticate against an LDAP server
|
||||
(optional).
|
||||
|
||||
- `-client-certificate-key` `(string: "")` - Specifies a PEM-encoded X.509 client
|
||||
certificate key in PKCS #8, ASN.1 DER form used with the client certificate
|
||||
(optional).
|
||||
|
||||
- `-discover-dn` - Uses anon bind to discover the bind DN of a
|
||||
user (optional). The default value is `false`.
|
||||
|
||||
- `-enable-groups` - Finds the authenticated user's groups during
|
||||
authentication (optional). The default is `false`.
|
||||
|
||||
- `-group-attr` `(string: "")` - Indicates the attribute that enumerates a user's group
|
||||
membership from entries returned by a group search (optional).
|
||||
|
||||
- `-group-dn` `(string: "")` - Specifies the base DN under which to perform group search.
|
||||
|
||||
- `-group-filter` `(string: "")` - Indicates a go template used to construct a LDAP group
|
||||
search filter (optional).
|
||||
|
||||
- `-insecure-tls` - Skips the LDAP server SSL certificate
|
||||
validation (optional). Use this option with caution; it is insecure. The default value is `false`.
|
||||
|
||||
- `-start-tls` - Issues the StartTLS command after connecting
|
||||
(optional). The default value is `false`.
|
||||
|
||||
- `-state` `(string: "")` - Indicates the desired operational state of the auth method.
|
||||
|
||||
- `-upn-domain` `(string: "")` - Specifies the userPrincipalDomain used to construct the
|
||||
UPN string for the authenticating user (optional).
|
||||
|
||||
- `-urls` `(string: "")` - Indicates the LDAP URLs that specify LDAP servers to connect to
|
||||
(required). You can specify this value multiple times.
|
||||
|
||||
- `-use-token-groups` - Uses the Active Directory tokenGroups
|
||||
constructed attribute of the user to find the group memberships (optional).
|
||||
The default value is `false`.
|
||||
|
||||
- `-user-attr` `(string: "")` - Specifies the attribute on user entry that matches the
|
||||
username that is passed during authentication (optional).
|
||||
|
||||
- `-user-dn` `(string: "")` - Indicates the base DN under which to perform user search
|
||||
(optional).
|
||||
|
||||
- `-user-filter` `(string: "")` - Specifies a go template used to construct a LDAP user
|
||||
search filter (optional).
|
||||
|
||||
</Tab>
|
||||
<Tab heading="OIDC">
|
||||
|
||||
The `boundary auth-methods create oidc` command creates an OIDC auth method.
|
||||
|
||||
#### Example
|
||||
|
||||
The following example creates an OIDC auth method with the name `prodops` and the description `Oidc auth-method for ProdOps`:
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods create oidc -name prodops \
|
||||
-description "Oidc auth-method for ProdOps"
|
||||
```
|
||||
|
||||
#### Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods create oidc [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
#### OIDC auth method options
|
||||
|
||||
The following are OIDC-specific options in addition to the command options:
|
||||
|
||||
- `-account-claim-maps` `(string: "")` - Specifies the optional account claim maps from
|
||||
custom claims to the standard claims of sub, name and email. These maps are
|
||||
represented as key=value where the key equals the Provider from-claim and the
|
||||
value equals the Boundary to-claim. For example "oid=sub". You may specify this value
|
||||
multiple times for different to-claims.
|
||||
|
||||
- `-allowed-audience` `(string: "")` - Indicates the acceptable audience ("aud") claim.
|
||||
You may specify this value multiple times.
|
||||
|
||||
- `-api-url-prefix` `(string: "")` - Specifies the URL prefix used by the OIDC provider in
|
||||
the authentication flow.
|
||||
|
||||
- `-claims-scopes` `(tring: "")` - Indicates the optional claims scope requested. You may specify this value multiple times.
|
||||
|
||||
- `-client-id` `(string: "")` - Specifies the OAuth 2.0 Client Identifier this auth method
|
||||
should use with the provider.
|
||||
|
||||
- `-client-secret` `(string: "")` - Indicates the corresponding client secret.
|
||||
|
||||
- `-idp-ca-cert` `(string: "")` - Specifies an optional PEM-encoded X.509 CA certificate that
|
||||
can be used as trust anchors when connecting to an OIDC provider. You may specify this value multiple times.
|
||||
|
||||
- `-issuer` `(string: "")` - Indicates the provider's issuer URL.
|
||||
|
||||
- `-max-age` `(string: "")` - Indicates the OIDC "max_age" parameter that is sent to the provider.
|
||||
|
||||
- `-signing-algorithm` `(string: "")` - Indicates the allowed signing algorithm. You may specify this multiple times for multiple values.
|
||||
|
||||
|
||||
|
||||
</Tab>
|
||||
<Tab heading="Password">
|
||||
|
||||
The `boundary auth-methods create password` command creates a Password type auth method.
|
||||
|
||||
#### Example
|
||||
|
||||
The following example creates a Password type auth method with the name `prodops` and the description `Password auth-method for ProdOps`:
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods create password -name prodops \
|
||||
-description "Password auth-method for ProdOps"
|
||||
```
|
||||
#### Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary accounts create password [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
#### Password auth method options
|
||||
|
||||
The following are password auth method specific options in addition to the
|
||||
command options:
|
||||
|
||||
- `-min-login-name-length` `(string: "")` - The minimum length of login names.
|
||||
|
||||
- `-min-password-length` `(string: "")` - The minimum length of passwords.
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
@@ -0,0 +1,36 @@
|
||||
---
|
||||
layout: docs
|
||||
page_title: auth-methods delete - Command
|
||||
description: |-
|
||||
The "auth-methods delete" command lets Boundary admin delete an auth method.
|
||||
---
|
||||
|
||||
# auth-methods delete
|
||||
|
||||
Command: `boundary auth-methods delete`
|
||||
|
||||
The `auth-methods delete` command deletes an auth method given its ID.
|
||||
|
||||
## Example
|
||||
|
||||
The following example deletes an auth method with the ID, `moidc_oHt4HQFCrN`.
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods delete -id amoidc_oHt4HQFCrN
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods delete [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
### Command options
|
||||
|
||||
- `-id` `(string: "")` - The ID of the auth method to delete.
|
||||
|
||||
@include 'cmd-option-note.mdx'
|
||||
@@ -0,0 +1,109 @@
|
||||
---
|
||||
layout: docs
|
||||
page_title: auth-methods - Command
|
||||
description: |-
|
||||
The "auth-methods" command lets you create and manage Boundary authentication method configuration.
|
||||
---
|
||||
|
||||
# auth-methods
|
||||
|
||||
Command: `boundary auth-methods`
|
||||
|
||||
The `auth-methods` command lets you manage the auth method resource in Boundary. The auth
|
||||
method resource provides a mechanism for users to authenticate to
|
||||
Boundary. An auth method contains accounts which link an individual user to a
|
||||
set of credentials. They also contain managed groups which group accounts that satisfy
|
||||
specific criteria, and can be used as principals in roles.
|
||||
|
||||
## Examples
|
||||
|
||||
The following example configures an OIDC auth method where the Boundary cluster
|
||||
address is stored in the `BOUNDARY_ADDR`, the OIDC provider's client ID is
|
||||
stored in the `CLIENT_ID`, and the client secret is stored in the
|
||||
`CLIENT_SECRET` environment variables.
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods create oidc \
|
||||
-issuer "https://dev-1sdl8c0z.us.auth0.com" \
|
||||
-client-id "$CLIENT_ID" \
|
||||
-client-secret "$CLIENT_SECRET" \
|
||||
-signing-algorithm RS256 \
|
||||
-api-url-prefix "$BOUNDARY_ADDR" \
|
||||
-name "auth0"
|
||||
```
|
||||
|
||||
**Example output:**
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```plaintext
|
||||
Auth Method information:
|
||||
Created Time: Fri, 09 Sep 2022 11:11:55 MDT
|
||||
ID: amoidc_40fr5jkLpk
|
||||
Name: auth0
|
||||
Type: oidc
|
||||
Updated Time: Fri, 09 Sep 2022 11:11:55 MDT
|
||||
Version: 1
|
||||
|
||||
Scope:
|
||||
ID: global
|
||||
Name: global
|
||||
Type: global
|
||||
|
||||
Authorized Actions:
|
||||
no-op
|
||||
read
|
||||
update
|
||||
delete
|
||||
change-state
|
||||
authenticate
|
||||
|
||||
Authorized Actions on Auth Method's Collections:
|
||||
accounts:
|
||||
create
|
||||
list
|
||||
managed-groups:
|
||||
create
|
||||
list
|
||||
|
||||
Attributes:
|
||||
api_url_prefix: https://e58fe114-7624-431c-994d-b6670e90b03J.boundary.hashicorp.cloud
|
||||
callback_url: https://e58fe114-7624-431c-994d-b6670e90b03J.boundary.hashicorp.cloud/v1/auth-methods/oidc:authenticate:callback
|
||||
client_id: zaxJLTZh3n14WqSQ7qQ9onuIVRDaZdzz
|
||||
client_secret_hmac: Qc3i8NdnTP6rl4JANIg-a2GXgRW5rEKTp2ReIK_BOng
|
||||
issuer: https://dev-1sdl8c0z.us.auth0.com
|
||||
signing_algorithms: [RS256]
|
||||
state: inactive
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
## Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
Usage: boundary auth-methods [sub command] [options] [args]
|
||||
|
||||
# ...
|
||||
|
||||
Subcommands:
|
||||
change-state
|
||||
create Create an auth method
|
||||
delete Delete an auth method
|
||||
list List an auth method
|
||||
read Read an auth method
|
||||
update Update an auth method
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
For more information, examples, and usage, click on the name
|
||||
of the subcommand in the sidebar or one of the links below:
|
||||
|
||||
- [change-state](/boundary/docs/commands/auth-methods/change-state)
|
||||
- [create](/boundary/docs/commands/auth-methods/create)
|
||||
- [delete](/boundary/docs/commands/auth-methods/delete)
|
||||
- [list](/boundary/docs/commands/auth-methods/list)
|
||||
- [read](/boundary/docs/commands/auth-methods/read)
|
||||
- [update](/boundary/docs/commands/auth-methods/update)
|
||||
@@ -0,0 +1,99 @@
|
||||
---
|
||||
layout: docs
|
||||
page_title: auth-methods list - Command
|
||||
description: |-
|
||||
The "auth-methods list" command lets Boundary admin list available auth methods.
|
||||
---
|
||||
|
||||
# auth-methods list
|
||||
|
||||
Command: `boundary auth-methods list`
|
||||
|
||||
The `auth-methods list` command lists auth methods within an enclosing scope or
|
||||
resource.
|
||||
|
||||
|
||||
## Examples
|
||||
|
||||
The following example lists auth methods from the default `global` scope recursively from any child scopes, if applicable:
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods list -recursive
|
||||
```
|
||||
|
||||
**Example output:**
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```plaintext
|
||||
Auth Method information:
|
||||
ID: amoidc_1234567890
|
||||
Scope ID: global
|
||||
Version: 1
|
||||
Type: oidc
|
||||
Name: Generated global scope initial oidc auth method
|
||||
Description: Provides initial administrative and unprivileged authentication into Boundary
|
||||
Authorized Actions:
|
||||
no-op
|
||||
read
|
||||
update
|
||||
delete
|
||||
change-state
|
||||
authenticate
|
||||
|
||||
ID: ampw_1234567890
|
||||
Scope ID: global
|
||||
Version: 1
|
||||
Type: password
|
||||
Name: Generated global scope initial password auth method
|
||||
Description: Provides initial administrative and unprivileged authentication into Boundary
|
||||
Is Primary For Scope: true
|
||||
Authorized Actions:
|
||||
no-op
|
||||
read
|
||||
update
|
||||
delete
|
||||
authenticate
|
||||
|
||||
ID: ampw_ZbB6UXpW3B
|
||||
Scope ID: o_u54jrD6ydN
|
||||
Version: 1
|
||||
Type: password
|
||||
Name: org_auth_method
|
||||
Description: Org auth method
|
||||
Authorized Actions:
|
||||
no-op
|
||||
read
|
||||
update
|
||||
delete
|
||||
authenticate
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
## Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods list [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
|
||||
### Command options
|
||||
|
||||
- `-filter` `(string: "")` - If set, the list operation is filtered before
|
||||
being returned. The filter operates against each item in the list. We recommend using
|
||||
single quotes, because filters contain double quotes.
|
||||
|
||||
- `-recursive` - If set, the list operation is applied
|
||||
recursively into child scopes, if supported by the type. The default value is
|
||||
`false`.
|
||||
|
||||
- `-scope-id` `(string: "")` - The scope in which to make the request. The default
|
||||
scope is `global`. You can also specify a scope using the **BOUNDARY_SCOPE_ID** environment
|
||||
variable.
|
||||
|
||||
@include 'cmd-option-note.mdx'
|
||||
@@ -0,0 +1,81 @@
|
||||
---
|
||||
layout: docs
|
||||
page_title: auth-methods read - Command
|
||||
description: |-
|
||||
The "auth-methods read" command lets Boundary admin read an auth method.
|
||||
---
|
||||
|
||||
# auth-methods read
|
||||
|
||||
Command: `boundary auth-methods read`
|
||||
|
||||
The `auth-methods read` command reads an auth method given its ID.
|
||||
|
||||
## Examples
|
||||
|
||||
The following example reads the auth method details for an auth method with the ID `amoidc_AliCbVihqv`.
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods read -id amoidc_AliCbVihqv
|
||||
```
|
||||
|
||||
**Example output:**
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```plaintext
|
||||
Auth Method information:
|
||||
Created Time: Thu, 13 May 2021 17:01:02 MDT
|
||||
Description: OIDC auth method for Auth0
|
||||
ID: amoidc_AliCbVihqv
|
||||
Name: Auth0
|
||||
Type: oidc
|
||||
Updated Time: Thu, 13 May 2021 17:01:02 MDT
|
||||
Version: 2
|
||||
|
||||
Scope:
|
||||
ID: o_1234567890
|
||||
Name: Generated org scope
|
||||
Parent Scope ID: global
|
||||
Type: org
|
||||
|
||||
Authorized Actions:
|
||||
no-op
|
||||
read
|
||||
update
|
||||
delete
|
||||
change-state
|
||||
authenticate
|
||||
|
||||
Authorized Actions on Auth Method's Collections:
|
||||
accounts:
|
||||
create
|
||||
list
|
||||
|
||||
Attributes:
|
||||
api_url_prefix: http://localhost:9200
|
||||
callback_url: http://localhost:9200/v1/auth-methods/oidc:authenticate:callback
|
||||
client_id: zbaJLTZh3n14WqSV7qQ9onuIVRDaZdzx
|
||||
client_secret_hmac: AhyxTBqlZpnny78iA9M7QHKAKocI17bjwvS70B1ccg0
|
||||
issuer: https://dev-1vdl8c0q.us.auth0.com/
|
||||
signing_algorithms: [RS256]
|
||||
state: active-public
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
## Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods read [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
### Command options
|
||||
|
||||
- `-id` `(string: "")` - The ID of the auth method to read.
|
||||
|
||||
@include 'cmd-option-note.mdx'
|
||||
@@ -0,0 +1,293 @@
|
||||
---
|
||||
layout: docs
|
||||
page_title: auth-methods update - Command
|
||||
description: |-
|
||||
The "auth-methods update" command lets Boundary admin update an auth method.
|
||||
---
|
||||
|
||||
# auth-methods update
|
||||
|
||||
Command: `boundary auth-methods update`
|
||||
|
||||
The `auth-methods update` command lets you update Boundary auth method resources.
|
||||
|
||||
## Examples
|
||||
|
||||
The following example updates an auth method to set the `-max-age` option to `0`.
|
||||
This update forces the user to reauthenticate, if they are already logged in with the current browser session:
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods update oidc -id amoidc_oHt4HQFCrN \
|
||||
-issuer "https://dev-1vdl8c0q.us.auth0.com/" \
|
||||
-max-age 0
|
||||
```
|
||||
|
||||
**Example output:**
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```plaintext
|
||||
Auth Method information:
|
||||
Created Time: Thu, 06 May 2021 16:39:33 MDT
|
||||
ID: amoidc_oHt4HQFCrN
|
||||
Name: auth0
|
||||
Type: oidc
|
||||
Updated Time: Thu, 06 May 2021 16:58:21 MDT
|
||||
Version: 2
|
||||
|
||||
Scope:
|
||||
ID: global
|
||||
Name: global
|
||||
Type: global
|
||||
|
||||
Authorized Actions:
|
||||
no-op
|
||||
read
|
||||
update
|
||||
delete
|
||||
change-state
|
||||
authenticate
|
||||
|
||||
Authorized Actions on Auth Method's Collections:
|
||||
accounts:
|
||||
create
|
||||
list
|
||||
|
||||
Attributes:
|
||||
api_url_prefix: https://e58fe114-7624-431c-994d-b6670e90b03J.boundary.hashicorp.cloud
|
||||
callback_url: https://e58fe114-7624-431c-994d-b6670e90b03J.boundary.hashicorp.cloud/v1/auth-methods/oidc:authenticate:callback
|
||||
client_id: zbaJLTZh3n14WqSV7qQ9onuIVRDaZdzx
|
||||
client_secret_hmac: ayJRYSCphzxcHiKJvBrnDVtz1yiR958ejQuRGdQJMeM
|
||||
issuer: https://dev-1vdl8c0q.us.auth0.com/
|
||||
max_age: 0
|
||||
signing_algorithms: [RS256]
|
||||
state: inactive
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods update [type] [sub command] [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
### Command options:
|
||||
|
||||
- `-description` `(string: "")` - The description to set on the auth method.
|
||||
- `-id` `(string: "")` - The ID of the auth method to update.
|
||||
- `-name` `(string: "")` - The name to set on the auth method.
|
||||
- `-version` `(int: 0)` - The version of the auth method to update.
|
||||
If you do not specify a version, the command performs a check-and-set automatically.
|
||||
|
||||
@include 'cmd-option-note.mdx'
|
||||
|
||||
### Usages by type
|
||||
|
||||
The available types are: `ldap`, `oidc`, and `password`.
|
||||
|
||||
<Tabs>
|
||||
<Tab heading="LDAP">
|
||||
|
||||
The `boundary auth-methods update ldap` command lets you update an LDAP auth method.
|
||||
|
||||
#### Example
|
||||
|
||||
The following example updates an LDAP auth method with the ID `amldap_1234567890` to add the name `devops` and the description `LDAP auth-method for DevOps`:
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods update ldap -id amldap_1234567890 \
|
||||
-name "devops" \
|
||||
-description "LDAP auth-method for DevOps"
|
||||
```
|
||||
|
||||
#### Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods update ldap [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
#### LDAP auth method options
|
||||
|
||||
The following are LDAP-specific options in addition to the command
|
||||
options.
|
||||
|
||||
- `-anon-group-search` - Uses anon bind when performing LDAP
|
||||
group searches (optional). The default value is `false`.
|
||||
|
||||
- `-bind-dn` `(string: "")` - Uses the distinguished name of entry to bind when
|
||||
performing user and group searches (optional).
|
||||
|
||||
- `-bind-password` `(string: "")` - Indicates the password to use along with bind-dn
|
||||
when performing user and group searches (optional).
|
||||
|
||||
- `-certificate` `(string: "")` - Specifies a PEM-encoded X.509 CA certificate in ASN.1 DER
|
||||
form that can be used as a trust anchor when connecting to an LDAP
|
||||
server(optional). You can specify this value multiple times.
|
||||
|
||||
- `-client-certificate` `(string: "")` - Specifies a PEM-encoded X.509 client certificate in
|
||||
ASN.1 DER form that can be used to authenticate against an LDAP server
|
||||
(optional).
|
||||
|
||||
- `-client-certificate-key` `(string: "")` - Specifies a PEM-encoded X.509 client
|
||||
certificate key in PKCS #8, ASN.1 DER form used with the client certificate
|
||||
(optional).
|
||||
|
||||
- `-discover-dn` - Uses anon bind to discover the bind DN of a
|
||||
user (optional). The default value is `false`.
|
||||
|
||||
- `-enable-groups` - Finds the authenticated user's groups during
|
||||
authentication (optional). The default is `false`.
|
||||
|
||||
- `-group-attr` `(string: "")` - Specifies the attribute that enumerates a user's group
|
||||
membership from entries returned by a group search (optional).
|
||||
|
||||
- `-group-dn` `(string: "")` - Specifies the base DN under which to perform group search.
|
||||
|
||||
- `-group-filter` `(string: "")` - Indicates a go template used to construct a LDAP group
|
||||
search filter (optional).
|
||||
|
||||
- `-insecure-tls` - Skips the LDAP server SSL certificate
|
||||
validation (optional). Use this option with caution, it is insecure. The default value is `false`.
|
||||
|
||||
- `-start-tls` - Issues the StartTLS command after connecting
|
||||
(optional). The default is `false`.
|
||||
|
||||
- `-state` `(string: "")` - Indicates the desired operational state of the auth method.
|
||||
|
||||
- `-upn-domain` `(string: "")` - Indicates the userPrincipalDomain used to construct the
|
||||
UPN string for the authenticating user (optional).
|
||||
|
||||
- `-urls` `(string: "")` - Indicates the LDAP URLs that specify LDAP servers to connect to
|
||||
(required). You may specify this value multiple times.
|
||||
|
||||
- `-use-token-groups` - Uses the Active Directory tokenGroups
|
||||
constructed attribute of the user to find the group memberships (optional).
|
||||
The default value is `false`.
|
||||
|
||||
- `-user-attr` `(string: "")` - Indicates the attribute on user entry matching the
|
||||
username that is passed during authentication (optional).
|
||||
|
||||
- `-user-dn` `(string: "")` - Specifies the base DN under which to perform user search
|
||||
(optional).
|
||||
|
||||
- `-user-filter` `(string: "")` - Specifies a go template used to construct a LDAP user
|
||||
search filter (optional).
|
||||
|
||||
</Tab>
|
||||
<Tab heading="OIDC">
|
||||
|
||||
The `boundary auth-methods update oidc` command lets you update OIDC auth methods.
|
||||
|
||||
#### Example
|
||||
|
||||
The following example updates an OIDC auth method with the ID `amoidc_1234567890` to add the name `devops` and the description `Oidc auth-method for DevOps`:
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods update oidc -id amoidc_1234567890 \
|
||||
-name "devops" \
|
||||
-description "Oidc auth-method for DevOps"
|
||||
```
|
||||
#### Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods update oidc [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
#### OIDC auth method options
|
||||
|
||||
The following are options are specific to OIDC auth-methods in addition to the command options.
|
||||
|
||||
- `-account-claim-maps` `(string: "")` - Indicates the optional account claim maps from
|
||||
custom claims to the standard claims of sub, name and email. These maps are
|
||||
represented as key=value where the key equals the Provider from-claim and the
|
||||
value equals the Boundary to-claim. For example "oid=sub". You may specify this value
|
||||
multiple times for different to-claims.
|
||||
|
||||
- `-allowed-audience` `(string: "")` - Indicates the acceptable audience ("aud") claim.
|
||||
You may specify this value multiple times.
|
||||
|
||||
- `-api-url-prefix` `(string: "")` - Indicates the URL prefix used by the OIDC provider in
|
||||
the authentication flow.
|
||||
|
||||
- `-claims-scopes` `(tring: "")` - Specifies the optional claims scope requested. You may specify this value multiple times.
|
||||
|
||||
- `-client-id` `(string: "")` - Indicates the OAuth 2.0 Client Identifier this auth method
|
||||
should use with the provider.
|
||||
|
||||
- `-client-secret` `(string: "")` - Indicates the corresponding client secret.
|
||||
|
||||
- `-idp-ca-cert` `(string: "")` - Specifies an optional PEM-encoded X.509 CA certificate that
|
||||
can be used as trust anchors when connecting to an OIDC provider. May be
|
||||
specified multiple times.
|
||||
|
||||
- `-disable-discovered-config-validation` - Disables validating
|
||||
the given auth method against configuration from the authorization server's
|
||||
discovery URL. This must be specified every time an unvalidatable auth method
|
||||
is updated or state changed; not specifying it is equivalent to setting it to
|
||||
false. The default is false.
|
||||
|
||||
- `-dry-run` - Performs all completeness and validation checks
|
||||
with any newly-provided values without persisting the changes. The default is
|
||||
false.
|
||||
|
||||
- `-idp-ca-cert` `(tring: "")` - Indicates an optional PEM-encoded X.509 CA certificate that
|
||||
can be used as trust anchors when connecting to an OIDC provider. You may specify this value multiple times.
|
||||
|
||||
- `-issuer` `(string: "")` - Indicates the provider's Issuer URL.
|
||||
|
||||
- `-max-age` `(string: "")` - Indicates the OIDC "max_age" parameter sent to the provider.
|
||||
|
||||
- `-signing-algorithm` `(string: "")` - Indicates the allowed signing algorithm. You may specify this value multiple times for multiple values.
|
||||
|
||||
|
||||
|
||||
</Tab>
|
||||
<Tab heading="Password">
|
||||
|
||||
The `boundary auth-methods update password` command lets you update a Password-type auth method.
|
||||
|
||||
#### Example
|
||||
|
||||
The following example updates a Password-type auth method with the ID `ampw_1234567890` to add the name `devops` and the description `Password auth-method for DevOps`:
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods update password -id ampw_1234567890 \
|
||||
-name "devops" \
|
||||
-description "Password auth-method for DevOps"
|
||||
```
|
||||
|
||||
#### Usage
|
||||
|
||||
<CodeBlockConfig hideClipboard>
|
||||
|
||||
```shell-session
|
||||
$ boundary auth-methods update password [options] [args]
|
||||
```
|
||||
|
||||
</CodeBlockConfig>
|
||||
|
||||
### Password auth method options
|
||||
|
||||
The following options are specific to the Passwor-type auth method in addition to the
|
||||
command options.
|
||||
|
||||
- `-min-login-name-length` `(string: "")` - The minimum length of login names.
|
||||
|
||||
- `-min-password-length` `(string: "")` - The minimum length of passwords.
|
||||
|
||||
</Tab>
|
||||
</Tabs>
|
||||
Reference in new issue
Block a user