Skip to content

Why does Argo Rollouts require cluster-scoped read operations on Secrets? #863

Answered by jessesuen
agrawal93 asked this question in Q&A
Discussion options

You must be logged in to vote

@agrawal93 The rollout controller needs to operate on an AnalysisRun in any namespace. AnalysisRuns are namespaced-scoped resources, which can reference a Secret.

spec:
  args:
  - name: api-token
    valueFrom:
      secretKeyRef:
        name: token-secret
        key: apiToken

The valueFrom secret referenece is primarily intended to be used by the web metric, in order to include do things like authenticated queries. Therefore in order for the Rollout controller to make authenticated queries that require these secret, it needs cluster scoped access to query K8s for the Secret values.

NOTE: if you do not need this feature, you should be able to remove the secret access from the controlle…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jessesuen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #863 on December 11, 2020 05:36.