linode / linode/cloud-firewall-controller
Specifying a additional inbound rule without any outbound rules will fail deployment
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 16
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Specifying
firewall:
inbound:
- action: ACCEPT
addresses:
ipv4:
- 192.168.128.0/17
description: Node exporter is exposed (by design) on the host network. Prometheus
needs access to scrape.
label: ALLOW-prometheus-to-scrape-node-exporter
ports: "9100"
protocol: TCP
in the values.yaml file without any outbound rules, results in the following error while deploying:
helm_release.linode_firewall_controller: Creating...
╷
│ Error: template: cloud-firewall-controller/templates/firewall.yaml:10:15: executing "cloud-firewall-controller/templates/firewall.yaml" at <len .Values.firewall.outbound>: error calling len: len of nil pointer
│
│ with helm_release.linode_firewall_controller,
│ on main.tf line 70, in resource "helm_release" "linode_firewall_controller":
│ 70: resource "helm_release" "linode_firewall_controller" {
│
╵
Obviously, it's easily fixed by adding a [] as outbound rules as well.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the deployment with only the inbound rule shown in values.yaml, then inspect cloud-firewall-controller/templates/firewall.yaml at the len .Values.firewall.outbound expression. Check the related Helm values and main.tf deployment configuration; done means an omitted outbound section no longer causes the template rendering error while explicit outbound rules still work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, helm, terraform
- Domain
- cloud, devops, infrastructure
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100