fix: remove trailing whitespace from secrets read from secrets file #1209
Labels
No labels
Bug
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status/Blocked
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
To-Merge
Wont fix
old/ci/cd
old/rust
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity!1209
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "charludo/continuwuity:ch/fix/newline-secrets"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After trying to debug my coturn setup for more hours than I care to admit yesterday evening, it turns out that the issue is that continuwuity reads the
turn_secretfromturn_secret_file, and then uses the file's entire contents as the secret.Even using the exact same secrets file in coturn (through
agenix, in my case) this leads to problems because both continuwuity and coturn happily start and use the key, but coturn strips the newline, and then the key supposedly shared between the two does not match.While I could see the argument that this is user error, I don't agree with it; it's unexpected behavior to have to explicitly remove newlines from the secret.
This PR adds that trimming.
LGTM, stripping trailing whitespace is usually an expected behaviour anyway
LGTM, probably something to note in the changelog as it's technically breaking.
@Jade wrote in #1209 (comment):
Sorry, I'm new here - do I need to do anything to make that happen, or is it just a label on the PR or something?
Nope, we just have to come back to this when we're writing stuff up
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.