Repository navigation
test(ingress): a Helm render proves the allow-list reaches every public ingress (platform#1035) - #1042
Merged
Conversation
…ic ingress (platform#1035)
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #1035
What changed
scripts/tests/test_ingress_allowlist.py— 5unittestcases over a Helm render of theumbrella chart: the allow-list annotation on every rendered Ingress (3 by default: nova, trino,
keycloak), no annotation with an empty list, the superset Ingress covered in a second render,
65 entries refused, a non-CIDR refused. Failure messages name the offending Ingress and host.
.github/workflows/ci.yml— one step at the end of thehelm-lintjob's umbrella-chart block(after
helm dependency update chart):python3 -m unittest scripts.tests.test_ingress_allowlist -v.No chart change.
One deviation from the ticket, for the same outcome
Step 3 assumes the
lintjob'sunittest discoverhas no Helm. It does:ubuntu-latestshipsHelm (3.22.1 on the current image), so
discoverthere would run the module withchart/charts/unfetched and fail. The module therefore also skips itself — with a printed
skip: chart/charts/ lacks …line — whenchart/Chart.yamldeclares a sub-chart thatchart/charts/*.tgzdoes not contain. Thehelm-lintjob fetches them first, so the check bitesthere; nothing is switched off.
Commands
Mutation check (delete the
if $allowedblock, 3 lines atchart/templates/ingress.yaml:87-89):Local Helm is 3.18.4; CI's
helm-lintjob uses 3.19.0.Not tested
curl403/200 against the lab — a maintainer action (locks out every address not in thelist), stays with design: admin network allow-list for the platform's public endpoints (PlatformInstance.spec.network.allowedCidrs) #427.