Closed mikepietruszka closed 1 year ago
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days
Can this be re-opened and reviewed by someone?
/gcbrun
Hi @mikepietruszka Here is the relevant output from the INT test:
Profile: simple_example
Version: (not specified)
Target: local://
✔ big_query_vpc_positive_test: Command: `gcloud alpha bq tables show-rows --table=example_table --dataset=dataset_vpc_sc_test_a9e1 --limit=10 --project=ci-project-policy-test-0-4cdc`
✔ Command: `gcloud alpha bq tables show-rows --table=example_table --dataset=dataset_vpc_sc_test_a9e1 --limit=10 --project=ci-project-policy-test-0-4cdc` exit_status is expected to equal 0
✔ Command: `gcloud alpha bq tables show-rows --table=example_table --dataset=dataset_vpc_sc_test_a9e1 --limit=10 --project=ci-project-policy-test-0-4cdc` stderr is expected to eq ""
× big_query_vpc_negative_test: Command: `bq query --use_legacy_sql=false --project_id=ci-project-policy-test-1-1457 'select * from `ci-project-policy-test-0-4cdc.dataset_vpc_sc_test_a9e1.example_table` limit 10'` (1 failed)
✔ Command: `bq query --use_legacy_sql=false --project_id=ci-project-policy-test-1-1457 'select * from `ci-project-policy-test-0-4cdc.dataset_vpc_sc_test_a9e1.example_table` limit 10'` exit_status is expected to equal 1
× Command: `bq query --use_legacy_sql=false --project_id=ci-project-policy-test-1-1457 'select * from `ci-project-policy-test-0-4cdc.dataset_vpc_sc_test_a9e1.example_table` limit 10'` stderr is expected to eq ""
expected: ""
got: "I0601 22:34:00.170196 139637272861512 bigquery_client.py:730] There is no apilog flag so non-critical logging is disabled.\n"
(compared using ==)
/gcbrun
/gcbrun
@apeabody Error is due to a bug in CLI which is generating extra messages. Bug is fixed in 4.29. Do you know which version of container has this CLI version?
Removed excess line of logging to stderr that was printed on most commands
@apeabody Error is due to a bug in CLI which is generating extra messages. Bug is fixed in 4.29. Do you know which version of container has this CLI version?
Removed excess line of logging to stderr that was printed on most commands
Hi @imrannayer - Looks like 1.11.6, which is curious as this repo appears to be using the most current version of 1.11?
@apeabody b/277805750 has the detail about the error in this CI.
b/277805750
@imrannayer looks like you might want to try gcloud 433 which is in dev-tools 1.12.4. I just merged https://github.com/terraform-google-modules/terraform-google-vpc-service-controls/pull/113 which will update this repo to 1.12.
/gcbrun
/gcbrun
/gcbrun
Added VPC network support to
resources
parameter since that's now allowed by the API: https://cloud.google.com/access-context-manager/docs/reference/rest/v1/accessPolicies.servicePerimeters.In this PR, I added a test condition on the
resources
parameter inregular_service_perimeter
module. The API method behind this resource now accepts a VPC network ID value forresources
parameter://compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME}
in addition toprojects/{PROJECT_NUM}
. Since the existing module already accepts{PROJECT_NUM}
and prefixesprojects/
, I followed the same convention and acceptedprojects/{PROJECT_ID}/global/networks/{NAME}
. This value can be retrieved using the most common output for data source attribute compute_network.id or passed as string.This can be tested with:
Example: