-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
queryservice: add allowlist configuration #165
Conversation
@@ -30,6 +30,10 @@ spec: | |||
volumeMounts: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the volume mount of allowlist-static missing here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The query service doesn't directly use allowlist-static.txt
. In the past, we manually created allowlist.txt
by combining the endpoints in allowlist-static.txt
with our Wikibase Cloud endpoints. It's still in the ConfigMap because this process will now be automated by the Platform API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear, if I understand correctly:
- the static list is set here
- this static list is added to the dynamic list generated by the api and stored in the main allowlist
charts/argocd-config/Chart.yaml
Outdated
@@ -2,7 +2,7 @@ apiVersion: v2 | |||
name: argocd-config | |||
description: Chart to deploy ArgoCD configuration (including the argocd-apps chart) | |||
type: application | |||
version: 1.0.5 | |||
version: 1.1.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this was inadvertently bumped?
Approve but assuming you'll fix this argcd-config oversight (can't even merge without doing so :) ) |
name: {{ include "wdqs.fullname" . }}-allowlist | ||
data: | ||
allowlist-static.txt: | ||
{{- .Values.allowListStatic | toYaml | indent 2 }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't have been surprised if you'd either hardcoded the list here but I think having the list in the deploy repo is way cleaner for when we need to update it.
I could also have seen the static list in it's own configmap separate configmap rather than a key of this map. No need to do this though.
This reverts commit 8808044.
Bug: T375384