Skip to content

ability to create auth policy for service credential secrets #277

@Aashiq-J

Description

@Aashiq-J
│ Error: ---
│ id: terraform-c24f9c05
│ summary: |
│   CreateSecretWithContext failed: You do not have the required permissions for this operation. Contact the account owner to verify your access. [secrets-manager.13022E]
│   {
│       "StatusCode": 403,
│       "Headers": {
│           "Cache-Control": [
│               "no-store, no-cache, must-revalidate, proxy-revalidate,no-cache, max-age=0, no-store"
│           ],
│           "Cf-Cache-Status": [
│               "DYNAMIC"
│           ],
│           "Cf-Ray": [
│               "90711b6a28cec96f-IAD"
│           ],
│           "Content-Security-Policy": [
│               "default-src 'none'"
│           ],
│           "Content-Type": [
│               "application/json; charset=utf-8"
│           ],
│           "Correlation-Id": [
│               "7f9420d7-2e52-f8a7-0742-6de0419e5d55"
│           ],
│           "Cross-Origin-Resource-Policy": [
│               "same-origin"
│           ],
│           "Date": [
│               "Fri, 24 Jan 2025 15:37:51 GMT"
│           ],
│           "Expires": [
│               "0"
│           ],
│           "Pragma": [
│               "no-cache"
│           ],
│           "Server": [
│               "cloudflare"
│           ],
│           "Strict-Transport-Security": [
│               "max-age=31536000; includeSubDomains; preload"
│           ],
│           "Surrogate-Control": [
│               "no-store"
│           ],
│           "Vary": [
│               "Accept-Encoding"
│           ],
│           "X-Content-Type-Options": [
│               "nosniff"
│           ]
│       },
│       "Result": {
│           "errors": [
│               {
│                   "code": "access_forbidden",
│                   "message": "You do not have the required permissions for this operation. Contact the account owner to verify your access. [secrets-manager.13022E]",
│                   "more_info": "https://cloud.ibm.com/apidocs/secrets-manager"
│               }
│           ],
│           "status_code": 403,
│           "trace": "7f9420d7-2e52-f8a7-0742-6de0419e5d55"
│       },
│       "RawResult": null
│   }
│ severity: error
│ resource: ibm_sm_service_credentials_secret
│ operation: create
│ component:
│   name: github.com/IBM-Cloud/terraform-provider-ibm
│   version: 1.74.0
│ ---
│ 
│ 
│   with module.secrets_manager.module.secrets.module.secrets["secrets-mgr-upg-fiqq9j-service-credential"].ibm_sm_service_credentials_secret.service_credentials_secret[0],
│   on .terraform/modules/secrets_manager.secrets.secrets/main.tf line 114, in resource "ibm_sm_service_credentials_secret" "service_credentials_secret":
│  114: resource "ibm_sm_service_credentials_secret" "service_credentials_secret" {
│ 
╵}

Getting this error when trying to create a service credential.
If we create the necessary auth [policy this can be fixed.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions