Skip to content

Commit a55fd19

Browse files
authored
Merge pull request #550 from dminnear-rh/add-hide-sensitive-output-var-to-secrets-docs
add snippet about how to debug failures loading secrets
2 parents 00886b6 + f16821c commit a55fd19

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

content/learn/getting-started-secret-management.adoc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,15 @@ secrets:
112112
----
113113
$ ./pattern.sh make load-secrets
114114
----
115+
If this command fails, for whatever reason, you most likely will not get a helpful error message since we avoid logging sensitive information by default.
116+
In this situation, it's often helpful to run the following command before you try loading the secrets again in order to see a more detailed error message.
117+
[source,terminal]
118+
119+
+
120+
----
121+
$ .export EXTRA_PLAYBOOK_OPTS='-e hide_sensitive_output="false" -vvv'
122+
----
123+
*This is intended as a temporary debug measure and should not be part of a normal production workflow since it may very well log secrets to stdout.*
115124

116125
. Verify the secret in the Vault UI.
117126

@@ -259,4 +268,4 @@ image::multicloud-gitops/config-demo-mysecret.png[Secret details]
259268
[IMPORTANT]
260269
====
261270
Remember to consult the official documentation at link:https://validatedpatterns.io/[Validated Patterns] for detailed information about specific features and advanced configurations.
262-
====
271+
====

0 commit comments

Comments
 (0)