Skip to content

Commit

Permalink
fix: secret keys cannot contain underscores
Browse files Browse the repository at this point in the history
Renaming role_id to role-id and role_secret_id to role-secret-id
  • Loading branch information
gboutry committed Aug 25, 2023
1 parent b41853e commit 780a0a9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/json_schemas/vault_kv/v0/provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"credentials": {
"title": "Credentials",
"description": "Mapping of unit name and credentials for that unit. Credentials are a juju secret containing a role_id and role_secret_id.",
"description": "Mapping of unit name and credentials for that unit. Credentials are a juju secret containing a role-id and role-secret-id.",
"type": "object",
"additionalProperties": {
"type": "string"
Expand Down
6 changes: 3 additions & 3 deletions interfaces/vault_kv/v0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Provider expectations

- Must provide the vault url
- Must provide a key value mount, the mount name shall respect the following pattern: charm-<requirer app>-<user provided suffix>
- Must provide a role_id and role_secret_id for each unit.
The role_id and role_secret_id shall be provided in the form of a Juju secret.
Usage of role_id and role_secret_id to access the KV backend shall be restricted to the unit's egress_subnet.
- Must provide a role-id and role-secret-id for each unit.
The role-id and role-secret-id shall be provided in the form of a Juju secret.
Usage of role-id and role-secret-id to access the KV backend shall be restricted to the unit's egress_subnet.

### Requirer

Expand Down
2 changes: 1 addition & 1 deletion interfaces/vault_kv/v0/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class VaultKvProviderSchema(BaseModel):
credentials: Json[Mapping[str, str]] = Field(
description=(
"Mapping of unit name and credentials for that unit."
" Credentials are a juju secret containing a role_id and role_secret_id."
" Credentials are a juju secret containing a role-id and role-secret-id."
)
)

Expand Down

0 comments on commit 780a0a9

Please sign in to comment.