Ville Vesilehto
3080ec0448
lint(errorlint): handle wrapped errors
...
Enable errorlint and preserve wrapped error chains so runtime checks
and tests classify failures correctly. This also makes Route53
surface insert failures instead of silently dropping them.
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi >
2026-04-25 11:57:32 +03:00
Syed Azeez
7b38eb8625
plugin: fix gosec G115 integer overflow warnings ( #7799 )
...
Fix integer overflow conversion warnings (G115) by adding appropriate
suppressions where values are provably bounded.
Fixes: https://github.com/coredns/coredns/issues/7793
Changes:
- Updated 56 G115 annotations to use consistent // #nosec G115 format
- Added 2 //nolint:gosec suppressions for conditional expressions
- Removed G115 exclusion from golangci.yml (now explicitly handled per-line)
Suppressions justify why each conversion is safe (e.g., port numbers
are bounded 1-65535, DNS TTL limits, pool lengths, etc.)
Signed-off-by: Azeez Syed <syedazeez337@gmail.com >
2026-01-01 10:20:29 +02:00
Ville Vesilehto
b21c752d7f
chore(lint): enable gosec ( #7792 )
...
Enable "gosec" linter.
Exclude:
- All G115 (integer overflow) findings, to be fixed separately.
Add targeted gosec annotations for:
- non-crypto math/rand usage
- md5 used only for file change detection
- G114 ("net/http serve with no timeout settings"), to be fixed
separately.
Other findings fixed.
Signed-off-by: Ville Vesilehto <ville@vesilehto.fi >
2025-12-29 14:01:27 -08:00
Manuel Rüger
76ba39ffe9
chore: Upgrade to golangci-lint v2 ( #7236 )
...
Signed-off-by: Manuel Rüger <manuel@rueg.eu >
2025-04-04 14:27:39 -04:00
Zhizhen He
5de473da1c
fix: remove unnecessary conversion ( #6258 )
...
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
2023-08-14 15:14:09 +02:00
Zhizhen He
2fe5890d8b
Fix typos ( #6235 )
...
* Fix typos and add todo to fix spelling of dnsutil.MaximumDefaulTTL
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com >
2023-08-10 11:06:48 -04:00
Gabor Dozsa
52f1c64e7d
plugin/loadbalance: Improve weights update ( #5906 )
...
Don't lock weights for duration of parsing weight file. Add
missing check to reject zero weight values.
Signed-off-by: Gabor Dozsa <gabor.dozsa@ibm.com >
2023-02-15 12:43:19 -05:00
Fish-pro
1b001ec229
fix typo for log output ( #5909 )
...
Signed-off-by: Fish-pro <zechun.chen@daocloud.io >
2023-02-10 09:39:55 -05:00
Gabor Dozsa
7da2cedaf0
Add weighted-round-robin policy to loadbalance plugin ( #5662 )
...
* Add weighted-round-robin policy to loadbalance plugin
Signed-off-by: Gabor Dozsa <gabor.dozsa@ibm.com >
2023-01-27 11:36:56 -05:00