Skip to content

Make AWS default CA test less dependant on real zones - #7209

Merged
amartinezfayo merged 2 commits into
spiffe:mainfrom
sorindumitru:default-ca-test-fix
Aug 13, 2026
Merged

amartinezfayo merged 2 commits into
spiffe:mainfrom
sorindumitru:default-ca-test-fix

Conversation

@sorindumitru

Copy link
Copy Markdown
Member

If we add a certificate of us-east-1 this test will fail to test what it is intended to test, so use a fake zone.

If we add a certificate of us-east-1 this test will fail
to test what it is intended to test, so use a fake zone.

Signed-off-by: Sorin Dumitru <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the AWS IID node attestor unit test to avoid depending on a real AWS region when validating RSA-1024 default CA fallback behavior, reducing brittleness as AWS regions/cert maps evolve.

Changes:

  • Parse the RSA-1024 default CA PEM directly in the test to use as the expected fallback certificate.
  • Switch the fallback test to use a non-mapped region string to exercise the fallback path deterministically.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Signed-off-by: Sorin Dumitru <[email protected]>
@github-actions github-actions Bot assigned amartinezfayo and unassigned MarcosDY Aug 13, 2026
@amartinezfayo amartinezfayo added this to the 1.15.3 milestone Aug 13, 2026
@amartinezfayo
amartinezfayo added this pull request to the merge queue Aug 13, 2026
Merged via the queue into spiffe:main with commit 24f677e Aug 13, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants