Skip to content

e2e no plaintext secrets#2349

Merged
ava-silver merged 3 commits into
masterfrom
ava.silver/chore/e2e-no-plaintext-secrets
Jun 15, 2026
Merged

e2e no plaintext secrets#2349
ava-silver merged 3 commits into
masterfrom
ava.silver/chore/e2e-no-plaintext-secrets

Conversation

@ava-silver

@ava-silver ava-silver commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What and why?

e2e/.env.local was the suggested way to supply secrets locally for e2e tests, which meant real API and app keys living in a plaintext file on disk. This removes that practice and points contributors to dd-auth instead.

How?

  • Strips DD_API_KEY, DATADOG_API_KEY, and DATADOG_APP_KEY from e2e/.env.local (non-secret config like DATADOG_CI_COMMAND and GCP/Azure resource IDs stays)
  • Adds a startup guard in jest.config-e2e.js that exits immediately with a clear message if no API key is present, rather than failing deep inside a test
  • Updates the comment in e2e/helpers/exec.ts to no longer imply .env.local is for credentials

To run e2e tests locally, use:

dd-auth --domain <your-org-domain> -- yarn test:e2e

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Jun 11, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 27725b0 | Docs | Datadog PR Page | Give us feedback!

@ava-silver ava-silver added the chores Related to the CI or developer experience label Jun 11, 2026
@ava-silver
ava-silver marked this pull request as ready for review June 11, 2026 20:10
@ava-silver
ava-silver requested a review from a team as a code owner June 11, 2026 20:10
@ava-silver
ava-silver merged commit 0908281 into master Jun 15, 2026
32 checks passed
@ava-silver
ava-silver deleted the ava.silver/chore/e2e-no-plaintext-secrets branch June 15, 2026 21:41
@GabrielAnca GabrielAnca mentioned this pull request Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chores Related to the CI or developer experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants