-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[Test] Increase test secret key length #117675
Conversation
Running with FIPS approved mode requires secret keys to be at least 114 bits long. Resolves: elastic#117596
Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination) |
randomIdentifier(), | ||
randomAlphaOfLengthBetween(14, 20).toLowerCase(Locale.ROOT), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not really needed to fix the test failure. But I think might as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha nice catch, thanks for working this one out.
Could you do the same to RepositoryS3RestReloadCredentialsIT
and remove the assumeFalse("doesn't work in a FIPS JVM, but that's ok", inFipsJvm());
line there too?
Actually could we also extract this to a |
Added the suggested
This requires a bit extra fix. It's working now 0809994 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks Yang - one optional suggestion
...javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3RestReloadCredentialsIT.java
Outdated
Show resolved
Hide resolved
…repositories/s3/RepositoryS3RestReloadCredentialsIT.java Co-authored-by: David Turner <david.turner@elastic.co>
@elasticmachine update branch |
💔 Backport failed
You can use sqren/backport to manually backport by running |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Running with FIPS approved mode requires secret keys to be at least 114 bits long. Relates: elastic#117324 Resolves: elastic#117596 Resolves: elastic#117709 Resolves: elastic#117710 Resolves: elastic#117711 Resolves: elastic#117712 (cherry picked from commit 24bc505) # Conflicts: # modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3RestReloadCredentialsIT.java # muted-tests.yml # test/fixtures/s3-fixture/src/main/java/fixture/s3/S3HttpFixtureWithSTS.java
Running with FIPS approved mode requires secret keys to be at least 114 bits long. Relates: #117324 Resolves: #117596 Resolves: #117709 Resolves: #117710 Resolves: #117711 Resolves: #117712 (cherry picked from commit 24bc505) # Conflicts: # modules/repository-s3/src/javaRestTest/java/org/elasticsearch/repositories/s3/RepositoryS3RestReloadCredentialsIT.java # muted-tests.yml # test/fixtures/s3-fixture/src/main/java/fixture/s3/S3HttpFixtureWithSTS.java
The initial backport elastic#117738 did not contain the change for AwsStsHttpHandler from elastic#117675. This PR adds it. Backport of elastic#117675
Running with FIPS approved mode requires secret keys to be at least 114 bits long.
Relates: #117324
Resolves: #117596
Resolves: #117709
Resolves: #117710
Resolves: #117711
Resolves: #117712