46 lines
819 B
Plaintext
46 lines
819 B
Plaintext
include::../description-no-recommend.adoc[]
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
== Sensitive Code Example
|
|
|
|
[source,python]
|
|
----
|
|
username = 'admin'
|
|
password = 'admin' # Sensitive
|
|
usernamePassword = 'user=admin&password=admin' # Sensitive
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
[source,python]
|
|
----
|
|
import os
|
|
|
|
username = os.getenv("username") # Compliant
|
|
password = os.getenv("password") # Compliant
|
|
usernamePassword = 'user=%s&password=%s' % (username, password) # Compliant{code}
|
|
----
|
|
|
|
include::../see.adoc[]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
include::../parameters.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|