hashicorp / hashicorp/vault-helm

alb Ingress - http to https redirection.

Open
#361 1 comment 5 reactions 0 assignees View on GitHub
enhancement
Dominant language
Shell
Stars
1.3k
Forks
898
Avg merge
3d 1h
Merged PRs (30d)
1

Description

**Is your feature request related to a problem? Please describe.**
I can't create alb ingress with the ssl redirection. Currently after deploying with this in my vaules file
```
ingress:
enabled: true
labels: {}
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/scheme: ${ingress_scheme}
alb.ingress.kubernetes.io/healthcheck-path: /v1/sys/health
alb.ingress.kubernetes.io/success-codes: 429,200
alb.ingress.kubernetes.io/security-groups: ${ingress_security_group}
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP":80,"HTTPS":443}]'
alb.ingress.kubernetes.io/certificate-arn: ${ingress_certificate_arn}
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
alb.ingress.kubernetes.io/tags: ${ingress_tags}
hosts:
- host: ${ingress_host}
paths: ["/*"]
service:
type: NodePort
```
... there is no redirection from http to https

**Describe the solution you'd like**
I want to have possibility to add one more path in rules for SSL redirection.
Currently code is
```
rules:
{{- range .Values.server.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range (.paths | default (list "/")) }}
- path: {{ . }}
backend:
serviceName: {{ $serviceName }}
servicePort: {{ $servicePort }}
{{- end }}
{{- end }}
```
and I don't see the way to add
```
- path: /*
backend:
serviceName: ssl-redirect
servicePort: use-annotation
```
as a second path to the same host.

Contributor guide

Open the contributing guide

Research direction

Start with the Helm template that renders server.ingress.rules and compare it with the values shown in the issue. Check how the existing host paths are generated and how an additional ssl-redirect backend path would be represented. Done means the chart can render the requested ALB HTTP-to-HTTPS redirect configuration for the same host.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, helm, kubernetes
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.