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
066e51675c
fix(grpc): check proxy list length in policies ( #7512 )
2025-09-03 16:24:44 -07:00
Yong Tang
aa7818e1d3
Update to avoid pseudo-random number ( #5225 )
...
* Update to avoid pseudo-random number
This PR update the usage of rand so that non-global seed is used.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
* Add concurrency-safe random source
See https://stackoverflow.com/questions/48958886/how-to-create-a-thread-safe-rand-source
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
2022-03-16 12:24:58 -04:00
Chris O'Haver
54fb2112ac
plugin/forward/grpc: Revert forward/grpc policy dedup ( #3919 )
...
* revert de-dup
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* unit test
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* use roundrobin policy in test
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
2020-05-29 18:30:26 +02:00
Zou Nengren
5e04c27238
Dedup policy implement between grpc and proxy plugin ( #3537 )
...
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com >
2019-12-17 08:15:31 +00:00
Iñigo
7b6cb76237
plugin/grpc: New gRPC plugin ( #2667 )
...
* plugin/grpc: New gRPC plugin
* some changes after the first review:
- remove healthcheck. gRPC already has this implicitly implemented
- some naming and stetic changes
- fix some comments
- other minor fixes
* plugin/grpc: New gRPC plugin
* some changes after the first review:
- remove healthcheck. gRPC already has this implicitly implemented
- some naming and stetic changes
- fix some comments
- other minor fixes
* add OWNERS file and change plugin order
* remove Rcode checker
2019-03-14 07:12:28 +00:00