Skip to content
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

"cscli bouncers add": increase key size, deprecate and ignore --length option #2531

Merged
merged 1 commit into from
Nov 24, 2023

Conversation

mmetc
Copy link
Contributor

@mmetc mmetc commented Oct 10, 2023

the switch to base64 made the keys shorter (24 characters), this PR increases their size to 32 bytes, 42 chars once encoded

Also deprecate the --length option, users can already provide a key

@mmetc mmetc marked this pull request as ready for review October 10, 2023 09:28
@github-actions
Copy link

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

  • /kind feature
  • /kind enhancement
  • /kind fix
  • /kind chore
  • /kind dependencies
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file 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 repository.

@github-actions
Copy link

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

  • /area agent
  • /area local-api
  • /area cscli
  • /area security
  • /area configuration
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file 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 repository.

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (92f923c) 56.94% compared to head (d3b9385) 57.00%.

Files Patch % Lines
cmd/crowdsec-cli/bouncers.go 92.85% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2531      +/-   ##
==========================================
+ Coverage   56.94%   57.00%   +0.05%     
==========================================
  Files         195      195              
  Lines       26675    26674       -1     
==========================================
+ Hits        15191    15205      +14     
+ Misses       9901     9890      -11     
+ Partials     1583     1579       -4     
Flag Coverage Δ
bats 37.80% <92.85%> (+0.01%) ⬆️
unit-linux 55.42% <ø> (+0.01%) ⬆️
unit-windows 51.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mmetc mmetc removed the needs/area label Oct 10, 2023
@mmetc mmetc marked this pull request as draft October 13, 2023 08:20
@mmetc
Copy link
Contributor Author

mmetc commented Oct 13, 2023

we'll also deprecate / ignore the -l flag

@mmetc mmetc self-assigned this Oct 13, 2023
@mmetc mmetc changed the title increase default size of the bouncer keys cscli bouncers: increase key size, deprecate and ignore --length option Nov 7, 2023
@mmetc mmetc changed the title cscli bouncers: increase key size, deprecate and ignore --length option "cscli bouncers add": increase key size, deprecate and ignore --length option Nov 7, 2023
@mmetc mmetc marked this pull request as ready for review November 7, 2023 12:58
@mmetc mmetc added this to the 1.5.6 milestone Nov 7, 2023
@mmetc mmetc merged commit 76d4bc7 into master Nov 24, 2023
14 checks passed
@mmetc mmetc deleted the bouncer-key-size branch November 24, 2023 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants