Avoid hardcoded credentials used in requests to an endpoint

Impact area

Security

Severity

High

Affected element

Apex Class

Rule ID

SF-0026

Impact

Hardcoded credentials are a security risk.


Remediation

Do not hard code credentials in your code. Use Named Credentials and a callout endpoint.

Time to fix

60 min


References

This rule is linked to Common Weakness Enumeration CWE-259 Use of Hard-coded Password.




Last modified on Oct 13, 2020