Skip to content

update the secrets output in the secrets submodule to include secret group details #210

@ocofaigh

Description

@ocofaigh

Below is a sample output of what the secrets output looks like now. I would expect the secret group name and ID to be included in the output:

  "secrets" = {
    "test-313-cred-reader" = {
      "secret_crn" = "crn:v1:bluemix:public:secrets-manager:us-south:a/abac0df06b644a9cabc6e44f55b3880e:c6698c1b-48fa-4d46-b7a9-90295fe2ca01:secret:9dc5296b-d1f0-0956-b050-5766791dc9f5"
      "secret_id" = "9dc5296b-d1f0-0956-b050-5766791dc9f5"
      "secret_next_rotation_date" = "2024-12-22T14:56:05Z"
      "secret_rotation" = true
      "secret_rotation_interval" = "89 day(s)"
    }
    "test-313-cred-writer" = {
      "secret_crn" = "crn:v1:bluemix:public:secrets-manager:us-south:a/abac0df06b644a9cabc6e44f55b3880e:c6698c1b-48fa-4d46-b7a9-90295fe2ca01:secret:26e38184-4fdb-bd89-0410-3d2c85f4cf4e"
      "secret_id" = "26e38184-4fdb-bd89-0410-3d2c85f4cf4e"
      "secret_next_rotation_date" = "2024-12-22T14:56:05Z"
      "secret_rotation" = true
      "secret_rotation_interval" = "89 day(s)"
    }
    "test-andrej-3-elasticsearch-administrator-secret2" = {
      "secret_crn" = "crn:v1:bluemix:public:secrets-manager:us-south:a/abac0df06b644a9cabc6e44f55b3880e:c6698c1b-48fa-4d46-b7a9-90295fe2ca01:secret:d17546be-26ba-5d7a-8a7f-2568a3f8aec7"
      "secret_id" = "d17546be-26ba-5d7a-8a7f-2568a3f8aec7"
      "secret_next_rotation_date" = null
      "secret_rotation" = tobool(null)
      "secret_rotation_interval" = "89 day(s)"
    }
  }

Instead it seems there is a different output called secret_groups which outputs the name and IDs of the groups, but there is no way to correlate that with the secrets that are created.

  "secret_groups" = {
    "sg1-test" = {
      "secret_group_id" = "3c8855b3-1cc3-eb4a-eea1-f88022aafdca"
    }
    "test-andrej-3-test-sg" = {
      "secret_group_id" = "3778eeae-380b-8afc-4ebe-52b51da38d6d"
    }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions