Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed credentials from set_result event handlers #27

Merged
merged 9 commits into from
Jan 29, 2024

Conversation

a-velasco
Copy link
Contributor

@a-velasco a-velasco commented Jan 12, 2024

Issue

Credentials get printed to the terminal in plaintext when using s3-integrator. This causes a security issue during demos and video recordings.

(see DPE-3198 for more details)

Solution

Update event handlers/observers that print the credentials.

  • Functions handling secrets (e.g. _on_sync_s3_credentials() will instead display a message related to the action (e.g. "Credentials successfully updated")
  • Functions that print other parameters along with secrets (i.e. on_get_connection_info_action() will replace the secrets with asterisks.

Copy link
Contributor

@taurus-forever taurus-forever left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we merge this fix... it affects demo (by leaking credentials..... )

@a-velasco a-velasco marked this pull request as ready for review January 19, 2024 12:13
@a-velasco a-velasco requested a review from welpaolo January 22, 2024 10:43
Copy link
Contributor

@welpaolo welpaolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT. Please @taurus-forever check if the current output messages are fine with you.

@@ -42,7 +42,9 @@ jobs:

build:
name: Build charms
uses: canonical/data-platform-workflows/.github/workflows/build_charms_with_cache.yaml@v2
uses: canonical/data-platform-workflows/.github/workflows/build_charms_with_cache.yaml@v8.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have already version 11 of shared workflows... but we need to have here renovate anyway... will be updated later. LGTM.

@a-velasco a-velasco merged commit 640f1e8 into main Jan 29, 2024
7 checks passed
@a-velasco a-velasco deleted the DPE-3198-Stop-printing-secrets-to-STDOUT branch January 29, 2024 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants