-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Fix gosec warnings in all packages #31310
Labels
type/enhancement
The issue or PR belongs to an enhancement.
Comments
1 task
ti-chi-bot
pushed a commit
that referenced
this issue
Jan 10, 2022
4 tasks
ti-chi-bot
pushed a commit
that referenced
this issue
Jan 22, 2022
12 tasks
ti-chi-bot
pushed a commit
that referenced
this issue
Feb 8, 2022
YuJuncen
pushed a commit
to pingcap/br
that referenced
this issue
Mar 1, 2022
YuJuncen
pushed a commit
to pingcap/br
that referenced
this issue
Mar 1, 2022
ti-chi-bot
pushed a commit
that referenced
this issue
Mar 30, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gosec
is a static analysis tool which can help us automatically identify some basic security issues. We use some rules to scan TiDB (some rules are temporarily disabled and will be selectively enabled in the future), and the warning messages are summarized as follows:G101
-CWE 798
(8 warnings): hardcoded credentialsG102
-CWE 200
(1 warning): bind to all interfacesG107
-CWE 88
(1 warning): url provided to HTTP request as taint inputG109
-CWE 190
(1 warning): converting strconv.Atoi result to int32/int16G201/G202
-CWE 89
(8 warnings): insecure sql query construction using format string/concatenationG301/G302
-CWE 276
(12 warnings): poor file permissions used when creating a directory/fileG402
-CWE 295
(1 warning): bad TLS connection settingsFixing these warnings will help improve security, and these fixing tasks are relatively simple, which is suitable for who would like to start contributing to TiDB. The maintainers of related modules and community members are welcome to join in and help resolve these warnings.
Scan using specific rules, for example G101:
The text was updated successfully, but these errors were encountered: