generated from terraform-ibm-modules/terraform-ibm-module-template
-
Couldn't load subscription status.
- Fork 3
add: service credential to secrets manager in DA #266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
a7f13f0
add: service credential to secrets manager in DA
Aayush-Abhyarthi b64eb7d
fix: common dev assets
Aayush-Abhyarthi d92e921
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi e76d755
add: DA-types file
Aayush-Abhyarthi 332cad0
add: DA-types file
Aayush-Abhyarthi 66e8eff
Merge branch 'store-service-credentials' of https://github.com/terraf…
Aayush-Abhyarthi 10745fa
fix: error
Aayush-Abhyarthi d613123
fix: error
Aayush-Abhyarthi ef861ad
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi 0705b42
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi 0225e76
fix: minor fix
Aayush-Abhyarthi 0ca7a3a
fix: minor changes
Aayush-Abhyarthi 55ea4cd
add: description parameter
Aayush-Abhyarthi f276c7c
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi 9a11b71
add validation
Aayush-Abhyarthi b7a75a4
Merge branch 'main' into store-service-credentials
Aashiq-J 58b0c3a
fix: cra failure
Aayush-Abhyarthi d7408b1
fix: cra fail
Aayush-Abhyarthi a7ec26d
add condition
Aayush-Abhyarthi 0395b9b
Merge branch 'main' into store-service-credentials
Soaib024 0d79077
refactor
Aayush-Abhyarthi d6774d7
fix: resolve comment
Aayush-Abhyarthi c30ae24
fix: pre commit
Aayush-Abhyarthi 0a7585e
fix: cra failure
Aayush-Abhyarthi caed0a3
add: existing database
Aayush-Abhyarthi 14e62e9
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi 1fedaf1
fix: resolve error
Aayush-Abhyarthi e9d6a8d
Merge remote-tracking branch 'origin/store-service-credentials' into …
Aayush-Abhyarthi 4def7a2
add link to documentation
Aayush-Abhyarthi ca37cf8
reference scs in scn
Aayush-Abhyarthi 9d3530c
Merge branch 'main' into store-service-credentials
Ak-sky 09fd02d
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi 2851bf4
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi 6df5b46
resolve conf
Aayush-Abhyarthi 8ffcc10
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi f419c6f
resolve some comments
Aayush-Abhyarthi e9b0435
Merge remote-tracking branch 'origin/store-service-credentials' into …
Aayush-Abhyarthi 91de09b
resolve comments
Aayush-Abhyarthi d20f632
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi 226578e
resolve conflict error
Aayush-Abhyarthi 88c09a9
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi 9484671
Merge branch 'main' into store-service-credentials
Aayush-Abhyarthi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| # Configuring complex inputs in Event Notifications | ||
|
|
||
| Several optional input variables in the IBM Cloud [Event Notifications deployable architecture](https://cloud.ibm.com/catalog/7a4d68b4-cf8b-40cd-a3d1-f49aff526eb3/architecture/deploy-arch-ibm-event-notifications-c7ac3ee6-4f48-4236-b974-b0cd8c624a46-global) use complex object types. You specify these inputs when you configure you deployable architecture. | ||
|
|
||
| - [Service credentials](#svc-credential-name) (`service_credential_names`) | ||
| - [Service credential secrets](#service-credential-secrets) (`service_credential_secrets`) | ||
|
|
||
| ## Service credentials <a name="svc-credential-name"></a> | ||
|
|
||
| You can specify a set of IAM credentials to connect to the instance with the `service_credential_names` input variable. Include a credential name and IAM service role for each key-value pair. Each role provides a specific level of access to the instance. For more information, see [Adding and viewing credentials](https://cloud.ibm.com/docs/account?topic=account-service_credentials&interface=ui). If you want to add service credentials to secret manager and to allow secret manager to manage it, you should use `service_credential_secrets` , see [Service credential secrets](#service-credential-secrets) | ||
|
|
||
| - Variable name: `service_credential_names`. | ||
| - Type: A map. The key is the name of the service credential. The value is the role that is assigned to that credential. | ||
| - Default value: An empty map (`{}`). | ||
|
|
||
| ### Options for service_credential_names | ||
|
|
||
| - Key (required): The name of the service credential. | ||
| - Value (required): The IAM service role that is assigned to the credential. The following values are valid for service credential roles: 'Manager', 'Writer', 'Reader', 'Event Source Manager', 'Channel Editor', 'Event Notification Publisher', 'Status Reporter', 'Device Manager', 'Email Sender', 'Custom Email Status Reporter'. For more information, see [IBM Cloud IAM roles](https://cloud.ibm.com/docs/account?topic=account-userroles). | ||
|
|
||
| ### Example service credentials | ||
|
|
||
| ```hcl | ||
| { | ||
| "en_manager" : "Manager", | ||
| "en_reader" : "Reader", | ||
| "en_writer" : "Writer", | ||
| "en_email_sender" : "Email Sender" | ||
| } | ||
| ``` | ||
|
|
||
| ## Service credential secrets <a name="service-credential-secrets"></a> | ||
|
|
||
| When you add an IBM Event Notification deployable architecture from the IBM Cloud catalog to IBM Cloud Project, you can configure service credentials. In edit mode for the projects configuration, from the configure panel click the optional tab. | ||
|
|
||
| To enter a custom value, use the edit action to open the "Edit Array" panel. Add the service credential secrets configurations to the array here. | ||
|
|
||
| In the configuration, specify the secret group name, whether it already exists or will be created and include all the necessary service credential secrets that need to be created within that secret group. | ||
|
|
||
| [Learn more](https://cloud.ibm.com/docs/secrets-manager?topic=secrets-manager-getting-started#getting-started) about service credential secrets. | ||
|
|
||
| - Variable name: `service_credential_secrets`. | ||
| - Type: A list of objects that represent service credential secret groups and secrets | ||
| - Default value: An empty list (`[]`) | ||
|
|
||
| ### Options for service_credential_secrets | ||
|
|
||
| - `secret_group_name` (required): A unique human-readable name that identifies this service credential secret group. | ||
| - `secret_group_description` (optional, default = `null`): A human-readable description for this secret group. | ||
| - `existing_secret_group`: (optional, default = `false`): Set to true, if secret group name provided in the variable `secret_group_name` already exists. | ||
| - `service_credentials`: (required): A list of object that represents a service credential secret. | ||
|
|
||
| #### Options for service_credentials | ||
|
|
||
| - `secret_name`: (required): A unique human-readable name of the secret to create. | ||
| - `service_credentials_source_service_role`: (required): The role to give the service credential in the Event Notification service. Acceptable values are `Writer`, `Reader`, `Manager`, `None`, `Event Source Manager`, `Channel Editor`, `Event Notification Publisher`, `Status Reporter`, `Device Manager`, `Email Sender`, `Custom Email Status Reporter` , and `Pool ID Manager` | ||
| - `secret_labels`: (optional, default = `[]`): Labels of the secret to create. Up to 30 labels can be created. Labels can be 2 - 30 characters, including spaces. Special characters that are not permitted include the angled brackets (<>), comma (,), colon (:), ampersand (&), and vertical pipe character (|). | ||
| - `secret_auto_rotation`: (optional, default = `true`): Whether to configure automatic rotation of service credential. | ||
| - `secret_auto_rotation_unit`: (optional, default = `day`): Specifies the unit of time for rotation of a secret. Acceptable values are `day` or `month`. | ||
| - `secret_auto_rotation_interval`: (optional, default = `89`): Specifies the rotation interval for the rotation unit. | ||
| - `service_credentials_ttl`: (optional, default = `7776000`): The time-to-live (TTL) to assign to generated service credentials (in seconds). | ||
| - `service_credential_secret_description`: (optional, default = `null`): Description of the secret to create. | ||
|
|
||
| The following example includes all the configuration options for four service credentials and two secret groups. | ||
| ```hcl | ||
| [ | ||
| { | ||
| "secret_group_name": "sg-1" | ||
| "existing_secret_group": true | ||
| "service_credentials": [ | ||
| { | ||
| "secret_name": "cred-1" | ||
| "service_credentials_source_service_role": "Writer" | ||
| "secret_labels": ["test-writer-1", "test-writer-2"] | ||
| "secret_auto_rotation": true | ||
| "secret_auto_rotation_unit": "day" | ||
| "secret_auto_rotation_interval": 89 | ||
| "service_credentials_ttl": 7776000 | ||
| "service_credential_secret_description": "sample description" | ||
| }, | ||
| { | ||
| "secret_name": "cred-2" | ||
| "service_credentials_source_service_role": "Reader" | ||
| } | ||
| ] | ||
| }, | ||
| { | ||
| "secret_group_name": "sg-2" | ||
| "service_credentials": [ | ||
| { | ||
| "secret_name": "cred-3" | ||
| "service_credentials_source_service_role": "Editor" | ||
| }, | ||
| { | ||
| "secret_name": "cred-4" | ||
| "service_credentials_source_service_role": "None" | ||
| } | ||
| ] | ||
| } | ||
| ] | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.