GabinL21 cd6491db81
SONARTEXT-418 Create rules S7209 to S7402 (#4801)
* SONARTEXT-418 Create rules S7209 to S7402

* SONARTEXT-418 Create rules S7209 to S7402

* SONARTEXT-418 Add PKCE to OAuth2 secrets

* SONARTEXT-418 Fix validation
2025-03-19 20:11:43 +00:00

41 lines
998 B
Plaintext

:example_env: SOURCEGRAPH_ACCESS_TOKEN
:example_name: sourcegraph_access_token
:example_secret: sgp_e26991654c1e0ef2_c42f9da5cec76231a8f5f0e85b619c6b2a9b4754
:secret_type: secret
include::../../../shared_content/secrets/description.adoc[]
== Why is this an issue?
include::../../../shared_content/secrets/rationale.adoc[]
=== What is the potential impact?
include::../../../shared_content/secrets/impact/generic_impact.adoc[]
== How to fix it
// 1. Revoke leaked secrets
include::../../../shared_content/secrets/fix/revoke.adoc[]
// 2. Analyze recent use to identify misuse
include::../../../shared_content/secrets/fix/recent_use.adoc[]
// 3. Use a secret vault in the future
include::../../../shared_content/secrets/fix/vault.adoc[]
// 4. Never hard-code secrets
include::../../../shared_content/secrets/fix/default.adoc[]
=== Code examples
include::../../../shared_content/secrets/examples.adoc[]
== Resources
include::../../../shared_content/secrets/resources/standards.adoc[]