Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Application Service tokens appear plain text in logs #2396

Closed
turt2live opened this issue Jul 30, 2017 · 8 comments
Closed

Application Service tokens appear plain text in logs #2396

turt2live opened this issue Jul 30, 2017 · 8 comments
Labels
A-Application-Service Related to AS support A-Logging Synapse's logs (structured or otherwise). Not metrics.

Comments

@turt2live
Copy link
Member

turt2live commented Jul 30, 2017

Bountysource

2017-07-30 08:13:13,341 - synapse.http.client - 96 - INFO - PUT-857- Sending request PUT http://localhost:9004/transactions/396191?access_token=THE_REAL_TOKEN_HERE
2017-07-30 08:13:14,417 - synapse.http.client - 96 - INFO - PUT-1865- Sending request PUT http://localhost:9004/transactions/396192?access_token=THE_REAL_TOKEN_HERE

Note: I've self-redacted the tokens in the snippet above

@ara4n
Copy link
Member

ara4n commented Oct 9, 2017

fixed by #2521

@turt2live
Copy link
Member Author

not fixed by #2521 because the request is outgoing.

Updated OP to include a bounty.

@pmg1991
Copy link

pmg1991 commented May 17, 2018

@turt2live instead of filtering inside code we should use python's logging filter. I've created a fork and used implemented a way to filtering based on patterns here pmg1991@2f652f2
It will work for both incoming and outgoing or anything that contains predefined regex patterns.
If it is good to go i'll raise a PR.

@turt2live
Copy link
Member Author

I wouldn't know if it's good or not. I recommend opening a PR so the team can review it.

@pmg1991
Copy link

pmg1991 commented May 17, 2018

@turt2live PR raised #3230

@t3chguy
Copy link
Member

t3chguy commented Jun 6, 2018

@turt2live additional fixes in #3349

@turt2live
Copy link
Member Author

@t3chguy Looks good! Thanks for fixing.

Feel free to submit a claim for the bounty, assuming there's no concerns from the NV side (otherwise I'll redirect the bounty elsewhere).

@t3chguy
Copy link
Member

t3chguy commented Jun 6, 2018

I don't think there'd be concerns RE NV but will check with immediate superior as I did not do this during my chargeable hours and thus did it as part of community

@MadLittleMods MadLittleMods added A-Application-Service Related to AS support A-Logging Synapse's logs (structured or otherwise). Not metrics. labels Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Application-Service Related to AS support A-Logging Synapse's logs (structured or otherwise). Not metrics.
Projects
None yet
Development

No branches or pull requests

5 participants