openshift-pipelines / pipelines-as-code

Pipelines-as-Code for Tekton
https://pipelinesascode.com
Apache License 2.0
130 stars 80 forks source link

Increase the entropy in generated pac secrets #1664

Closed chmouel closed 5 months ago

chmouel commented 5 months ago

we would hit some conflicts when generating the pac secrets, by increasing the entropy of 6. The secret is composed of 62 characters (26 uppercase+ 26 lowercase + 10 digits) so the total number of combinations for a string of length nn would be 62n62n.

With a length of 6 there are approximately 56.8 billion possible combinations which would not conflict anymore.

Fixes #1663

Jira: https://issues.redhat.com/browse/SRVKP-4407

Changes

Submitter Checklist

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 64.33%. Comparing base (d291f32) to head (5d4eaae). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1664 +/- ## ========================================== + Coverage 64.30% 64.33% +0.03% ========================================== Files 141 141 Lines 10922 10922 ========================================== + Hits 7023 7027 +4 + Misses 3382 3380 -2 + Partials 517 515 -2 ```

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