Skip to content

Commit 1ca9a61

Browse files
committed
RHDEVDOCS-6342: Content creation for sensitive annotations feature
Incorporated SME review feedback
1 parent aa10f6a commit 1ca9a61

File tree

3 files changed

+73
-0
lines changed

3 files changed

+73
-0
lines changed

_topic_maps/_topic_map.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ Topics:
147147
File: configuring-secure-communication-with-redis
148148
- Name: Managing secrets securely using Secrets Store CSI driver with GitOps
149149
File: managing-secrets-securely-using-sscsid-with-gitops
150+
- Name: Masking sensitive annotations in the Argo CD Web UI
151+
File: masking-sensitive-annotations-in-the-argo-cd-web-ui
150152
---
151153
Name: GitOps CLI (argocd) reference
152154
Dir: gitops_cli_argocd
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
:_mod-docs-content-type: ASSEMBLY
2+
include::_attributes/common-attributes.adoc[]
3+
[id="masking-sensitive-annotations-in-the-argo-cd-web-ui"]
4+
= Masking sensitive annotations in the Argo CD Web UI
5+
:context: masking-sensitive-annotations-in-the-argo-cd-web-ui
6+
7+
toc::[]
8+
9+
Argo CD hides sensitive annotation values on `Secret` resources from the Argo CD user interface (UI) and command-line interface (CLI). Users can configure this by specifying annotation keys to be masked in the Argo CD custom resource (CR). This feature enhances security by preventing accidental exposure of sensitive information, such as tokens or API keys, stored in annotations on `Secret` resources.
10+
11+
To enable this feature, add the `resource.sensitive.mask.annotations` key under `.spec.extraConfig` in the Argo CD CR. Specify a comma-separated list of annotation keys to mask.
12+
13+
[IMPORTANT]
14+
====
15+
Ensure that the annotation keys listed in `resource.sensitive.mask.annotations` are accurate and relevant to your use case. This feature does not support wildcards and requires explicit configuration in the Argo CD CR.
16+
====
17+
18+
.Prerequisites
19+
* You have created an Argo CD instance. For more information, see "Installing a user-defined Argo CD instance".
20+
21+
// Enabling sensitive annotations masking in the Argo CD Web UI
22+
include::modules/gitops_enabling_sensitive_annotations_in_the_argo_cd_web_ui.adoc[leveloffset=+1]
23+
24+
[role="_additional-resources"]
25+
[id="additional-resources_{context}"]
26+
== Additional resources
27+
28+
* xref:../argocd_instance/setting-up-argocd-instance.adoc#gitops-argo-cd-installation[Installing a user-defined Argo CD instance]

0 commit comments

Comments
 (0)