terraform-ibm-modules / terraform-ibm-devsecops-alm

This is the DevSecOps Application Lifecycle Management Deployable Architecture
Apache License 2.0
2 stars 3 forks source link

Identity of the apikey created in prereq #457

Open in-1911 opened 3 months ago

in-1911 commented 3 months ago

When using the module with create_ibmcloud_api_key = true, the new apikey always assumes the identity of the credentials used to run the terraform. In a context of Cloud Project that may lead to unintended results, especially when using trusted profiles authorization. https://github.com/terraform-ibm-modules/terraform-ibm-devsecops-alm/blob/869f353d766be278f0f50ee2430a9b5a95523dcf/prereqs/main.tf#L86

The credentials / identity designated for the pipelines may need to be different from the one used to deploy the ALM components.

It would be helpful if the user can supply a combination of parameters to use one of the following options:

padraic-edwards commented 2 months ago

Will consider including additional variables to parameterize the creation of the API key for use in the pipeline.