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

Unquote secret_access_key in s3CloudSender plugin #1228

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

reidsunderland
Copy link
Member

This plugin is kind of redundant because we have a built in S3 transfer class now, but we're still using it right so we might as well have the latest code in the repo. I don't think the transfer class handles URL encoded passwords.

In this change, I'm assuming the password is always URL encoded.

We have an issue to add an option to credentials.conf to let the user specify whether it's URL encoded or not. Right now most (all?) of the rest of the code assumes that passwords are not URL encoded.

#989

since we have a built in S3 transfer class now, but we're still using
it.
@petersilva
Copy link
Contributor

This one worries me... there might be unintentional escape sequences in our existing db's and also all the secrets need to be encoded... not clear how the migration works.

@petersilva
Copy link
Contributor

Is this only for s3 or for all passwords? Should we do it for all passwords?

@reidsunderland
Copy link
Member Author

This PR is just for the s3CloudSender plugin, there's no change to the S3 transfer class or any other part of the code. It should be safe. This is the version of the code that we've been using in ops for a few months from the internal plugins repo.

@reidsunderland
Copy link
Member Author

For all other parts of the code, we decided #989 that we'd add an option to allow the user to specify if a password is URL encoded or not. I still think that's a good approach

Copy link

Test Results

248 tests  ±0   247 ✅ +1   1m 33s ⏱️ -4s
  1 suites ±0     1 💤 ±0 
  1 files   ±0     0 ❌  - 1 

Results for commit 21cf2d8. ± Comparison against base commit ba9df50.

@petersilva petersilva merged commit 830009f into development Sep 23, 2024
26 of 59 checks passed
@reidsunderland reidsunderland deleted the s3cloudsender_unquote branch November 20, 2024 18: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.

2 participants