ArgoCD
Learn more about ArgoCD.
Allowed fields (limited to a max of 4): ["apps", "synced", "outOfSync", "healthy", "progressing", "degraded", "suspended", "missing"]
You can generate an API key either by creating a bearer token for an existing account, see Authorization (not recommended) or create a new local user account with limited privileges and generate an authentication token for this account. To do this the steps are:
- Create a new local user and give it the
apiKey
capability - Setup RBAC configuration for your the user and give it readonly access to your ArgoCD resources, e.g. by giving it the
role:readonly
role. - In your ArgoCD project under Settings / Accounts open the newly created account and in the Tokens section click on Generate New to generate an access token, optionally specifying an expiry date.
If you installed ArgoCD via the official Helm chart, the account creation and rbac config can be achived by overriding these helm values:
This creates a new account called readonly
and attaches the role:readonly
role to it.