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

misc: Strip environment variables related to third-party credentials #1650

Merged
merged 1 commit into from
Feb 22, 2025

Conversation

adamantike
Copy link
Contributor

Description

For client_id/client_secret combinations, and API keys, we are certain that they should not have leading/trailing whitespaces. We can strip them to avoid any potential issues for users who might have added them incorrectly in their Docker Compose configuration.

This change does NOT affect users/passwords, where leading/trailing whitespaces might be intentional and valid.

Checklist

Please check all that apply.

  • I've tested the changes locally
  • I've updated the wiki accordingly
  • I've have updated relevant comments
  • I've assigned reviewers for this PR
  • I've added unit tests that cover the changes
  • All existing tests are passing

For client_id/client_secret combinations, and API keys, we are certain
that they should not have leading/trailing whitespaces. We can strip
them to avoid any potential issues for users who might have added them
incorrectly in their Docker Compose configuration.

This change does NOT affect users/passwords, where leading/trailing
whitespaces might be intentional and valid.
Copy link

Test Results

93 tests   93 ✅  28s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit fac3686.

Copy link
Member

@gantoine gantoine left a comment

Choose a reason for hiding this comment

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

💯

@adamantike adamantike merged commit 3d8342f into master Feb 22, 2025
8 checks passed
@adamantike adamantike deleted the misc/strip-credential-envvars branch February 22, 2025 23:39
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