
* Update JSON schema to include STIG ASD 2023-06-08 mapping * Update rules to add STIG metadata mappings --------- Co-authored-by: Loris Sierra <loris.sierra@sonarsource.com>
50 lines
811 B
Plaintext
50 lines
811 B
Plaintext
include::../description.adoc[]
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
== Sensitive Code Example
|
|
|
|
[source,apex]
|
|
----
|
|
public class MyClient {
|
|
public void SendRequest(){
|
|
HttpRequest req = new HttpRequest();
|
|
req.setEndpoint('http://example.com'); // Sensitive
|
|
// ...
|
|
}
|
|
}
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
[source,apex]
|
|
----
|
|
public class MyClient {
|
|
public void SendRequest(){
|
|
HttpRequest req = new HttpRequest();
|
|
req.setEndpoint('https://example.com');
|
|
// ...
|
|
}
|
|
}
|
|
----
|
|
|
|
include::../exceptions.adoc[]
|
|
|
|
include::../see.adoc[]
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
=== Message
|
|
|
|
Replace this http request with an https equivalent.
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|