Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add sensitive url string to avoid leak in log messages #35594

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

Draft
lunny wants to merge 3 commits into go-gitea:main
base: main
Choose a base branch
Loading
from lunny:lunny/sensitive_data

Conversation

@lunny
Copy link
Member

@lunny lunny commented Oct 6, 2025

No description provided.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 6, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Oct 6, 2025
Copy link
Contributor

shashank-netapp commented Oct 7, 2025
edited
Loading

As we've already created a SensitiveString type, wouldn't it be better to do the sanitization work in .String function itself ? This way we'll avoid doing any type of calculation in the log level function call. And also any of the fmt's would already be sanitized to begin with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /