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

Hide studentIds and tokens in logs #181

Merged
merged 2 commits into from
Dec 1, 2024

Conversation

Tschonti
Copy link
Contributor

Previously:
image

With this PR:
image

also, I fixed the clone url in the README

README.md Show resolved Hide resolved
Comment on lines +105 to +110
manyXes := strings.Repeat("X", 12)
tokenReplaced := pToken[:4] + manyXes
if pStud != "" {
return fmt.Sprintf("/?pStud=%s&pToken=%s", pStud[:4]+manyXes, tokenReplaced)
}
return fmt.Sprintf("/?pPers=%s&pToken=%s", pPers[:4]+manyXes, tokenReplaced)
Copy link
Member

Choose a reason for hiding this comment

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

IMO, just dropping all query parameters from the logs works just as well

Copy link
Member

@CommanderStorm CommanderStorm left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution 🎉

@CommanderStorm CommanderStorm merged commit 59beb57 into TUM-Dev:master Dec 1, 2024
1 check passed
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