|
| 1 | +// Module is included in the following assemblies: |
| 2 | +// |
| 3 | +// * securing_openshift_gitops/masking-sensitive-annotations-in-the-argo-cd-web-ui.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="gitops_enabling_sensitive_annotations_in_the_argo_cd_web_ui_{context}"] |
| 7 | += Enabling sensitive annotations masking in the Argo CD Web UI |
| 8 | + |
| 9 | +To enable sensitive annotations masking in the Argo CD user interface (UI), you can add the annotation key, `resource.sensitive.mask.annotations`, in the Argo CD custom resource (CR). |
| 10 | + |
| 11 | +.Procedure |
| 12 | + |
| 13 | +. Log in to the {OCP} web console. |
| 14 | + |
| 15 | +. In the *Administrator* perspective of the web console, click *Operators* -> *Installed Operators*. |
| 16 | + |
| 17 | +. From the *Project* list, create or select the project where you want to install the user-defined Argo CD instance. |
| 18 | + |
| 19 | +. From the installed Operators list, select *{gitops-title}*, and then click the *Argo CD* tab. |
| 20 | + |
| 21 | +. To edit the Argo CD CR, complete the following steps: |
| 22 | +.. Under the `.spec.extraConfig` section, add the `resource.sensitive.mask.annotations` key. |
| 23 | +.. To mask a comma-separated list of values, specify the annotation key in the following YAML snippet: |
| 24 | ++ |
| 25 | +[source,yaml] |
| 26 | +---- |
| 27 | +apiVersion: argoproj.io/v1beta1 |
| 28 | +kind: ArgoCD |
| 29 | +metadata: |
| 30 | + name: example |
| 31 | +spec: |
| 32 | + extraConfig: |
| 33 | + resource.sensitive.mask.annotations: openshift.io/token-secret.value, api-key, token # <1> |
| 34 | +---- |
| 35 | +<1> Specify a comma-separated list of sensitive annotation values, such as `openshift.io/token-secret.value`, `api-key`, and `token`. |
| 36 | ++ |
| 37 | +. To verify that the value in the Argo CD resource has been updated successfully, complete the following steps: |
| 38 | +.. In the *Administrator* perspective of the web console, click *Operators* -> *Installed Operators*. |
| 39 | +.. In the *Project* option, select the `Argo CD` namespace. |
| 40 | +.. From the installed Operators list, select *{gitops-title}*, and then click the *Argo CD* tab. |
| 41 | +.. Verify that the *Status* field of the ArgoCD instance shows as *Phase: Available*. |
| 42 | + |
| 43 | +Argo CD hides the values of the specified annotation keys in the Argo CD UI. |
0 commit comments