rspec/rules/S6783/secrets/rule.adoc
github-actions[bot] 4e18d867c2
Create rule S6783(secrets): Infura API keys should not be disclosed (#3125)
You can preview this rule
[here](https://sonarsource.github.io/rspec/#/rspec/S6783/secrets)
(updated a few minutes after each push).

## Review

A dedicated reviewer checked the rule description successfully for:

- [ ] logical errors and incorrect information
- [ ] information gaps and missing content
- [ ] text style and tone
- [ ] PR summary and labels follow [the
guidelines](https://github.com/SonarSource/rspec/#to-modify-an-existing-rule)

---------

Co-authored-by: loris-s-sonarsource <loris-s-sonarsource@users.noreply.github.com>
Co-authored-by: Loris Sierra <loris.sierra@sonarsource.com>
2023-09-22 14:49:05 +02:00

43 lines
1.0 KiB
Plaintext

include::../../../shared_content/secrets/description.adoc[]
== Why is this an issue?
include::../../../shared_content/secrets/rationale.adoc[]
=== What is the potential impact?
Below are some real-world scenarios that illustrate some impacts of an attacker
exploiting the secret.
include::../../../shared_content/secrets/impact/blockchain_data_exposure.adoc[]
include::../../../shared_content/secrets/impact/non_repudiation.adoc[]
include::../../../shared_content/secrets/impact/banking_financial_loss.adoc[]
== How to fix it
include::../../../shared_content/secrets/fix/revoke.adoc[]
include::../../../shared_content/secrets/fix/vault.adoc[]
=== Code examples
:example_secret: https://mainnet.infura.io/v3/f6fc4aa25abb16e901876269d01f2ec5
:example_name: infura_api_key
:example_env: INFURA_API_KEY
include::../../../shared_content/secrets/examples.adoc[]
//=== How does this work?
//=== Pitfalls
//=== Going the extra mile
== Resources
include::../../../shared_content/secrets/resources/standards.adoc[]
//=== Benchmarks