refactor(auth): one home for the legacy test/test credential pair (#7858)

SigV4RequestValidator now exposes LEGACY_ACCESS_KEY_ID and LEGACY_SECRET_KEY,
and every site that honors the local-dev test/test pair reads it from there
instead of keeping its own private constant or "test".equals(...) literal.
No behaviour change.
This commit is contained in:
Allen Sanborn authored and GitHub committed 2026-11-21 13:29:50 -04:00
1 parent 4d9c5faf56
commit 6e6d4eaf53
12 files changed
+42 -34

No files matched your search

@@ -28,6 +28,8 @@ import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.Base64;
import static io.floci.aws.core.common.auth.SigV4RequestValidator.LEGACY_ACCESS_KEY_ID;
import static io.floci.aws.core.common.auth.SigV4RequestValidator.LEGACY_SECRET_KEY;
import static io.floci.aws.testing.EnforcementFixtures.createUser;
import static io.floci.aws.testing.EnforcementFixtures.removeBucket;
import static io.restassured.RestAssured.given;
@@ -48,8 +50,6 @@ import static org.hamcrest.Matchers.notNullValue;
class S3PresignedPostAuthEnforcementIntegrationTest {
private static final String BUCKET = "presigned-post-auth-bucket";
private static final String LEGACY_ACCESS_KEY_ID = "test";
private static final String LEGACY_SECRET_KEY = "test";
// Matches the "20260101" date embedded in every credential scope built by this test class.
private static final String AMZ_DATE = "20260101T000000Z";