-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feat: add a flag to allow access through Google Cloud public IP addresses #2078
feat: add a flag to allow access through Google Cloud public IP addresses #2078
Conversation
/gcbrun |
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.
Thanks for the contribution @laurentgrangeau!
From the INT tests:
TestSimpleZonalPrivate 2024-09-10T20:24:48Z command.go:100: Running command gcloud with args [config get-value project --format json]
TestSimpleZonalPrivate 2024-09-10T20:24:49Z command.go:185: "cloud-foundation-cicd"
golden.go:157:
Error Trace: /builder/home/go/pkg/mod/github.com/!google!cloud!platform/cloud-foundation-toolkit/infra/[email protected]/pkg/golden/golden.go:157
/workspace/test/integration/simple_zonal_private/simple_zonal_private_test.go:70
/builder/home/go/pkg/mod/github.com/!google!cloud!platform/cloud-foundation-toolkit/infra/[email protected]/pkg/tft/terraform.go:638
/builder/home/go/pkg/mod/github.com/!google!cloud!platform/cloud-foundation-toolkit/infra/[email protected]/pkg/tft/terraform.go:670
/builder/home/go/pkg/mod/github.com/!google!cloud!platform/cloud-foundation-toolkit/infra/[email protected]/pkg/utils/stages.go:31
/builder/home/go/pkg/mod/github.com/!google!cloud!platform/cloud-foundation-toolkit/infra/[email protected]/pkg/tft/terraform.go:670
Error: Not equal:
expected: "{\n \"cidrBlocks\": [\n {\n \"cidrBlock\": \"10.0.0.0/17\",\n \"displayName\": \"VPC\"\n }\n ],\n \"enabled\": true\n }"
actual : "{\n \"cidrBlocks\": [\n {\n \"cidrBlock\": \"10.0.0.0/17\",\n \"displayName\": \"VPC\"\n }\n ],\n \"enabled\": true,\n \"gcpPublicCidrsAccessEnabled\": false\n }"
Diff:
--- Expected
+++ Actual
@@ -7,3 +7,4 @@
],
- "enabled": true
+ "enabled": true,
+ "gcpPublicCidrsAccessEnabled": false
}
Test: TestSimpleZonalPrivate
Messages: expected masterAuthorizedNetworksConfig to match fixture {
"cidrBlocks": [
{
"cidrBlock": "10.0.0.0/17",
"displayName": "VPC"
}
],
"enabled": true
}
Thanks @laurentgrangeau! Let's also add the new |
/gcbrun |
…access_enabled in not null
/gcbrun |
/gcbrun |
/gcbrun |
1 similar comment
/gcbrun |
From the test:
|
/gcbrun |
test/integration/simple_zonal_private/testdata/TestSimpleZonalPrivate.json
Outdated
Show resolved
Hide resolved
test/integration/simple_zonal_private/testdata/TestSimpleZonalPrivate.json
Outdated
Show resolved
Hide resolved
/gcbrun |
/gcbrun |
/gcbrun |
/gcbrun |
This PR add a flag to allow access through Google Cloud public IP addresses only. This is usefull to increase security in private cluster mode