Skip to content

Conversation

marceloneppel
Copy link
Member

@marceloneppel marceloneppel commented Mar 13, 2023

Issue

Jira issue: DPE-1489
All the passwords returned by the get and set password actions have the username as a prefix, but who requested it already knows the user, so it's not needed to have it specified in the action result, only the password.

Solution

Remove the username prefix from the password key in the actions results.

Context

Reference: canonical/mongodb-operator#172 (comment) (request from Mykola).

I also contacted Marc about the Zookeeper charms.

Testing

Fixed the existing tests.

Release Notes

Simplify password parsing in action results.

@marceloneppel marceloneppel changed the title Fix action password key Simplify password parsing for 3rd-party charms and also in tests Mar 13, 2023
@marceloneppel marceloneppel marked this pull request as ready for review March 13, 2023 20:11
@marceloneppel marceloneppel marked this pull request as draft March 13, 2023 20:15
@marceloneppel marceloneppel force-pushed the fix-action-password-key branch from 156a670 to 750d2d2 Compare March 13, 2023 20:19
@marceloneppel marceloneppel changed the title Simplify password parsing for 3rd-party charms and also in tests Simplify password parsing in action results Mar 13, 2023
@marceloneppel marceloneppel marked this pull request as ready for review March 13, 2023 21:14
@taurus-forever
Copy link
Contributor

Just for the history, mysql-k8s returns both username and password:

  results:
    password: yinx0eXkqk2tnghaVfllNZcy
    username: root

@marceloneppel marceloneppel merged commit 277fd1b into main Mar 16, 2023
@marceloneppel marceloneppel deleted the fix-action-password-key branch March 16, 2023 11:28
BON4 pushed a commit to BON4/postgresql-k8s-operator that referenced this pull request May 20, 2024
github-actions bot added a commit to canonical/test-runners-2-is-x64-postgresql-k8s-operator that referenced this pull request Jul 11, 2024
github-actions bot added a commit to canonical/test-runners-2-github-x64-postgresql-k8s-operator that referenced this pull request Jul 12, 2024
github-actions bot added a commit to canonical/test-runners-2-is-arm64-postgresql-k8s-operator that referenced this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants