-
Notifications
You must be signed in to change notification settings - Fork 16.8k
WIP: [stable/traefik] Keep basic auth user/passwd data in secret #726
Conversation
Hi @krancour. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Great! Let's hope they merge that in soon. I wonder if we could cut down on some of the conditionals and always create the secret but with empty users if non are defined? We could always mount the secret too which keeps deployment.yaml simpler. |
@@ -7,3 +7,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this | |||
{{- define "fullname" -}} | |||
{{- printf "%s-%s" .Release.Name .Chart.Name | trunc 63 | trimSuffix "-" -}} | |||
{{- end -}} | |||
|
|||
{{- define "dashboardUsers" -}} | |||
{{- range $key, $value := .Values.dashboard.auth.basic -}}{{- printf "%s:%s\n" $key $value -}}{{- end -}} |
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.
Does this need to be wrapped in {{- if .Values.dashboard.auth }}
?
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.
Not really. The only thing that calls this is wrapped in those conditionals already and I don't foresee this being reused in this chart. (I didn't do it this way for the sake of reuse... this "sub-template" was the only way I could think of, at the time, to build a string by ranging over an array, and then get that string into a pipeline so I can base64 encode it... but I think I've thought of a more straightforward way to do that now, so I'll be updating this on Monday.)
@c-knowles What's the latest on this? |
It looks like @krancour's PR above has been merged so I hope they include that with 1.2.0 GA. Otherwise the change looks good to me. |
@c-knowles do we need to wait for that release for these changes to work? |
I have some modifications I want to make to this chart still. I don't have a real sense of urgency about it because, as noted by @c-knowles I'm waiting for my PR to Traefik to make it into a GA release. |
@krancour @c-knowles shall we close this for now? |
@lachie83 depends how much it bothers you to leave it open. Personally, for me, it's better to leave it open because then it doesn't fall off my own radar. Up to you tho. |
@krancour just checking in, we still waiting for an upstream release here? |
@krancour ping |
Closing as this has now been marked stale for 17 days: https://github.com/kubernetes/charts#stale-pull-requests |
I'll have another look at this. I'm sure the feature I contributed to Traefik (which this chart depends on) must be included in 1.3.x. Not sure when I will get to this though. |
@c-knowles you will be interested in this, I think. It's the follow-up to #414
This depends on traefik/traefik#1189 being merged and included in a future Traefik release.
@c-knowles if you want to test drive, the Docker image
krancour/traefik:usersfile
is built from my fork of Traefik.