Skip to content

Commit

Permalink
Rephrase
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardorey10 committed Mar 18, 2024
1 parent 0d76270 commit cc8c252
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,16 @@ func repositoryConfAuthResourceSchemaV0() *schema.Resource {
},
"identity_provider": {
Description: fmt.Sprintf(
"The semantics of this field are as follows:\nIf not supplied, then end-user "+
"authentication is disabled.\nIf end-user authentication with Cyral "+
"Access Token is desired, then this must be any non-empty string (the exact value is "+
"irrelevant).\nIf end-user authentication with AWS IAM is desired, then this must "+
"be the ID of an AWS IAM integration, and the <auth_type> must be set to %s.",
"The semantics of this field changed in control planes `v4.13` and later. See how "+
"it should be configured depending on your control plane version:\n"+
" - `v4.12` and below:\n - Provide the ID (Alias) of the identity provider "+
"integration to allow user authentication using an IdP.\n"+
" - `v4.13` and later:\n - If not supplied, then end-user "+
"authentication is disabled.\n - If end-user authentication "+
"with Cyral Access Token is desired, then set to `ACCESS_TOKEN` or any "+
"other non-empty string.\n - If end-user authentication with "+
"AWS IAM is desired, then this must be the ID of an AWS IAM integration, "+
"and the `auth_type` attribute must be set to `%s`.",
AwsIAMAuthType,
),
Type: schema.TypeString,
Expand Down
11 changes: 7 additions & 4 deletions docs/resources/repository_conf_auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ resource "cyral_repository_conf_auth" "some_resource_name" {
- `ACCESS_TOKEN`
- `AWS_IAM`
- `client_tls` (String) Is the repo Client using TLS? Default is "disable".
- `identity_provider` (String) The semantics of this field are as follows:
If not supplied, then end-user authentication is disabled.
If end-user authentication with Cyral Access Token is desired, then this must be any non-empty string (the exact value is irrelevant).
If end-user authentication with AWS IAM is desired, then this must be the ID of an AWS IAM integration, and the <auth_type> must be set to AWS_IAM.
- `identity_provider` (String) The semantics of this field changed in control planes `v4.13` and later. See how it should be configured depending on your control plane version:
- `v4.12` and below:
- Provide the ID (Alias) of the identity provider integration to allow user authentication using an IdP.
- `v4.13` and later:
- If not supplied, then end-user authentication is disabled.
- If end-user authentication with Cyral Access Token is desired, then set to `ACCESS_TOKEN` or any other non-empty string.
- If end-user authentication with AWS IAM is desired, then this must be the ID of an AWS IAM integration, and the `auth_type` attribute must be set to `AWS_IAM`.
- `repo_tls` (String) Is TLS enabled for the repository? Default is "disable".

### Read-Only
Expand Down

0 comments on commit cc8c252

Please sign in to comment.