crowdsecurity / crowdsec

CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
https://crowdsec.net
MIT License
9.1k stars 470 forks source link

Allow bouncers to share API keys #3323

Closed blotus closed 6 days ago

blotus commented 1 week ago

Fixes #3255. Also closes #3291 and #3287 as HEAD requests will no longer write anything to the database.

github-actions[bot] commented 1 week ago

@blotus: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.
github-actions[bot] commented 1 week ago

@blotus: There are no area labels on this PR. You can add as many areas as you see fit.

Details I am a bot created to help the [crowdsecurity](https://github.com/crowdsecurity) developers manage community feedback and contributions. You can check out my [manifest file](https://github.com/crowdsecurity/crowdsec/blob/master/.github/governance.yml) to understand my behavior and what I can do. If you want to use this for your project, you can check out the [BirthdayResearch/oss-governance-bot](https://github.com/BirthdayResearch/oss-governance-bot) repository.
blotus commented 1 week ago

/kind enhancement /area local-api

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 62.85714% with 39 lines in your changes missing coverage. Please review.

Project coverage is 58.36%. Comparing base (9067106) to head (f858af9). Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
pkg/apiserver/middlewares/v1/api_key.go 59.18% 15 Missing and 5 partials :warning:
cmd/crowdsec-cli/clibouncer/delete.go 60.52% 10 Missing and 5 partials :warning:
pkg/database/bouncers.go 76.92% 2 Missing and 1 partial :warning:
cmd/crowdsec-cli/clibouncer/inspect.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3323 +/- ## ========================================== - Coverage 58.41% 58.36% -0.05% ========================================== Files 351 351 Lines 37746 37827 +81 ========================================== + Hits 22049 22079 +30 - Misses 13800 13838 +38 - Partials 1897 1910 +13 ``` | [Flag](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3323/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | Coverage Δ | | |---|---|---| | [bats](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3323/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `41.16% <62.85%> (+0.02%)` | :arrow_up: | | [unit-linux](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3323/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `34.38% <26.66%> (-0.02%)` | :arrow_down: | | [unit-windows](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3323/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `29.66% <34.28%> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


🚨 Try these New Features: