diff --git a/docs/jupiterone.md b/docs/jupiterone.md index fd2320fa..1e8f883d 100644 --- a/docs/jupiterone.md +++ b/docs/jupiterone.md @@ -422,6 +422,7 @@ The following entities are created: | Organization | `google_cloud_organization` | `Organization` | | Private CA Certificate | `google_privateca_certificate` | `Certificate` | | Private CA Certificate Authority | `google_privateca_certificate_authority` | `Service` | +| Private CA Pool | `google_privateca_pool` | `Group` | | Project | `google_cloud_project` | `Account` | | PubSub Subscription | `google_pubsub_subscription` | `Service` | | PubSub Topic | `google_pubsub_topic` | `Channel` | @@ -560,6 +561,7 @@ The following relationships are created: | `google_cloud_organization` | **HAS** | `google_cloud_project` | | `google_privateca_certificate_authority` | **CREATED** | `google_privateca_certificate` | | `google_privateca_certificate_authority` | **USES** | `google_storage_bucket` | +| `google_privateca_pool` | **HAS** | `google_privateca_certificate_authority` | | `google_pubsub_subscription` | **USES** | `google_pubsub_topic` | | `google_pubsub_topic` | **USES** | `google_kms_crypto_key` | | `google_redis_instance` | **USES** | `google_compute_network` | @@ -596,7 +598,7 @@ permissions can be used to provision only the required ones: -| Permissions List (110) | +| Permissions List (111) | | ------------------------------------------------------- | | `accesscontextmanager.accessLevels.list` | | `accesscontextmanager.accessPolicies.list` | @@ -683,6 +685,7 @@ permissions can be used to provision only the required ones: | `monitoring.alertPolicies.list` | | `orgpolicy.policies.list` | | `orgpolicy.policy.get` | +| `privateca.caPools.list` | | `privateca.certificateAuthorities.getIamPolicy` | | `privateca.certificateAuthorities.list` | | `privateca.certificates.list` | diff --git a/src/getStepStartStates.ts b/src/getStepStartStates.ts index f0477262..f1d66222 100644 --- a/src/getStepStartStates.ts +++ b/src/getStepStartStates.ts @@ -158,11 +158,7 @@ import { import { monitoringSteps } from './steps/monitoring'; import { STEP_MONITORING_ALERT_POLICIES } from './steps/monitoring/constants'; import { privateCaSteps } from './steps/privateca'; -import { - STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS, - STEP_PRIVATE_CA_CERTIFICATES, - STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES, -} from './steps/privateca/constants'; +import { PrivatecaSteps } from './steps/privateca/constants'; import { pubSubSteps } from './steps/pub-sub'; import { STEP_CREATE_PUBSUB_TOPIC_KMS_RELATIONSHIPS, @@ -413,11 +409,15 @@ function getDefaultStepStartStates(params: { [STEP_API_GATEWAY_APIS]: { disabled: false }, [STEP_API_GATEWAY_API_CONFIGS]: { disabled: false }, [STEP_API_GATEWAY_GATEWAYS]: { disabled: false }, - [STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES]: { disabled: false }, - [STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS]: { + [PrivatecaSteps.STEP_PRIVATE_CA_POOLS.id]: { disabled: false }, + [PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id]: { + disabled: false, + }, + [PrivatecaSteps + .STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS.id]: { disabled: false, }, - [STEP_PRIVATE_CA_CERTIFICATES]: { disabled: false }, + [PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATES.id]: { disabled: false }, [STEP_DATAPROC_CLUSTERS]: { disabled: false }, [STEP_DATAPROC_CLUSTER_KMS_RELATIONSHIPS]: { disabled: false }, [STEP_CREATE_CLUSTER_STORAGE_RELATIONSHIPS]: { disabled: false }, @@ -806,12 +806,15 @@ async function getStepStartStatesUsingServiceEnablements(params: { [STEP_API_GATEWAY_GATEWAYS]: createStepStartState( ServiceUsageName.API_GATEWAY, ), - [STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES]: createStepStartState( + [PrivatecaSteps.STEP_PRIVATE_CA_POOLS.id]: createStepStartState( ServiceUsageName.PRIVATE_CA, ), - [STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS]: + [PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id]: + createStepStartState(ServiceUsageName.PRIVATE_CA), + [PrivatecaSteps + .STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS.id]: createStepStartState(ServiceUsageName.PRIVATE_CA), - [STEP_PRIVATE_CA_CERTIFICATES]: createStepStartState( + [PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATES.id]: createStepStartState( ServiceUsageName.PRIVATE_CA, ), [STEP_DATAPROC_CLUSTERS]: createStepStartState( diff --git a/src/index.test.ts b/src/index.test.ts index d32c06d0..b79e8e2d 100644 --- a/src/index.test.ts +++ b/src/index.test.ts @@ -134,11 +134,7 @@ import { STEP_MEMCACHE_INSTANCES, } from './steps/memcache/constants'; import { STEP_MONITORING_ALERT_POLICIES } from './steps/monitoring/constants'; -import { - STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS, - STEP_PRIVATE_CA_CERTIFICATES, - STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES, -} from './steps/privateca/constants'; +import { PrivatecaSteps } from './steps/privateca/constants'; import { STEP_CREATE_PUBSUB_TOPIC_KMS_RELATIONSHIPS, STEP_PUBSUB_SUBSCRIPTIONS, @@ -477,15 +473,16 @@ describe('#getStepStartStates success', () => { [STEP_API_GATEWAY_GATEWAYS]: { disabled: false, }, - [STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES]: { - disabled: false, - }, - [STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS]: { + [PrivatecaSteps.STEP_PRIVATE_CA_POOLS.id]: { disabled: false }, + [PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id]: { disabled: false, }, - [STEP_PRIVATE_CA_CERTIFICATES]: { + [PrivatecaSteps + .STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS + .id]: { disabled: false, }, + [PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATES.id]: { disabled: false }, [STEP_IAM_BINDINGS]: { disabled: false, }, diff --git a/src/steps/privateca/__recordings__/fetchAuthorityCertificates_2784150724/recording.har b/src/steps/privateca/__recordings__/fetchAuthorityCertificates_2784150724/recording.har deleted file mode 100644 index b3e8219d..00000000 --- a/src/steps/privateca/__recordings__/fetchAuthorityCertificates_2784150724/recording.har +++ /dev/null @@ -1,843 +0,0 @@ -{ - "log": { - "_recordingName": "fetchAuthorityCertificates", - "creator": { - "comment": "persister:JupiterOneIntegationFSPersister", - "name": "Polly.JS", - "version": "4.3.0" - }, - "entries": [ - { - "_id": "acea721c8193b51ced888cae721cc423", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 739, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "content-type", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "content-length", - "value": "739" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip,deflate" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "www.googleapis.com" - } - ], - "headersSize": 283, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "[REDACTED]" - }, - "queryString": [], - "url": "https://www.googleapis.com/oauth2/v4/token" - }, - "response": { - "bodySize": 566, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 566, - "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Fri, 09 Apr 2021 16:46:43 GMT" - }, - { - "name": "server", - "value": "scaffolding on HTTPServer2" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 511, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2021-04-09T16:46:43.225Z", - "time": 175, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 175 - } - }, - { - "_id": "13f6c47fe7ac729ab3416f92e5668202", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.1 gl-node/14.15.4 auth/7.0.2" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.1 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "privateca.googleapis.com" - } - ], - "headersSize": 582, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://privateca.googleapis.com/v1beta1/projects/j1-gc-integration-dev-v2/locations/-/certificateAuthorities" - }, - "response": { - "bodySize": 9426, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 9426, - "text": "{\"certificateAuthorities\":[{\"name\":\"projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/Test-CA-Name\",\"type\":\"SELF_SIGNED\",\"tier\":\"ENTERPRISE\",\"config\":{\"subjectConfig\":{\"subject\":{\"organization\":\"Test Organization Name\"},\"commonName\":\"Test CA Name\"},\"reusableConfig\":{\"reusableConfigValues\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true,\"maxIssuerPathLength\":1}}}},\"lifetime\":\"314496000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_4096_SHA256\"},\"issuingOptions\":{\"includeCaCertUrl\":true,\"includeCrlAccessUrl\":true},\"pemCaCertificates\":[],\"state\":\"ENABLED\",\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"organization\":\"Test Organization Name\"},\"commonName\":\"Test CA Name\",\"subjectAltName\":{},\"hexSerialNumber\":\"00b38cb1619dfd6a5fdc5542a97ab9bb09abab0f\",\"lifetime\":\"314496000s\",\"notBeforeTime\":\"2021-04-01T19:08:06.481768813Z\",\"notAfterTime\":\"2031-03-20T19:08:06.481768813Z\"},\"configValues\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true,\"maxIssuerPathLength\":1}},\"publicKey\":{\"type\":\"PEM_RSA_KEY\",\"key\":\"[REDACTED]\"},\"subjectKeyId\":{\"keyId\":\"f4c932216ac01039c8f3c952fab0c2f7db202315\"},\"authorityKeyId\":{\"keyId\":\"f4c932216ac01039c8f3c952fab0c2f7db202315\"},\"certFingerprint\":{\"sha256Hash\":\"f9998966e551d9000710508f33b4d50a6b2282473c913de3e5e0057391be909e\"}}],\"accessUrls\":{\"caCertificateAccessUrl\":\"http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/ca.crt\",\"crlAccessUrl\":\"http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/crl.crl\"},\"createTime\":\"2021-04-01T19:08:05.695936998Z\",\"updateTime\":\"2021-04-07T14:18:36.760073627Z\"},{\"name\":\"projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName\",\"type\":\"SELF_SIGNED\",\"tier\":\"ENTERPRISE\",\"config\":{\"subjectConfig\":{\"subject\":{\"organization\":\"Acme\"},\"commonName\":\"acmeName\"},\"reusableConfig\":{\"reusableConfig\":\"projects/568668481468/locations/us-central1/reusableConfigs/root-unconstrained\"}},\"lifetime\":\"314496000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_2048_SHA256\"},\"issuingOptions\":{\"includeCaCertUrl\":true,\"includeCrlAccessUrl\":true},\"pemCaCertificates\":[],\"state\":\"ENABLED\",\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"organization\":\"Acme\"},\"commonName\":\"acmeName\",\"subjectAltName\":{},\"hexSerialNumber\":\"008a51de1d92de213728c7733b74700f4a684513\",\"lifetime\":\"314496000s\",\"notBeforeTime\":\"2021-04-08T14:44:07.900172684Z\",\"notAfterTime\":\"2031-03-27T14:44:07.900172684Z\"},\"configValues\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}},\"publicKey\":{\"type\":\"PEM_RSA_KEY\",\"key\":\"[REDACTED]\"},\"subjectKeyId\":{\"keyId\":\"ec21738d89c6020cfab46e73b1a001d7fb24d34c\"},\"authorityKeyId\":{\"keyId\":\"ec21738d89c6020cfab46e73b1a001d7fb24d34c\"},\"certFingerprint\":{\"sha256Hash\":\"d7de957b8c0903c662332fc8ec4966c5dc01b7426ed778dc389aaa545a37064a\"}}],\"gcsBucket\":\"test-bucket-with-labels\",\"accessUrls\":{\"caCertificateAccessUrl\":\"http://test-bucket-with-labels.storage.googleapis.com/f1cc34b5b7e8fa026582/ca.crt\",\"crlAccessUrl\":\"http://test-bucket-with-labels.storage.googleapis.com/f1cc34b5b7e8fa026582/crl.crl\"},\"createTime\":\"2021-04-08T14:44:07.215539285Z\",\"updateTime\":\"2021-04-08T14:44:09.263990183Z\"}]}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Fri, 09 Apr 2021 16:46:44 GMT" - }, - { - "name": "server", - "value": "ESF" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 488, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2021-04-09T16:46:43.412Z", - "time": 1060, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 1060 - } - }, - { - "_id": "4e9a03ab59ab6c6d63ad970c0bdeabf8", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.1 gl-node/14.15.4 auth/7.0.2" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.1 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "privateca.googleapis.com" - } - ], - "headersSize": 618, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://privateca.googleapis.com/v1beta1/projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/Test-CA-Name:getIamPolicy" - }, - "response": { - "bodySize": 337, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 337, - "text": "{\"version\":1,\"etag\":\"BwW/YptMiiU=\",\"bindings\":[{\"role\":\"roles/privateca.auditor\",\"members\":[\"user:viragsf@gmail.com\"]}]}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Fri, 09 Apr 2021 16:46:45 GMT" - }, - { - "name": "server", - "value": "ESF" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 488, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2021-04-09T16:46:44.477Z", - "time": 798, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 798 - } - }, - { - "_id": "40b16c3acef970d1d90875186322eed4", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.1 gl-node/14.15.4 auth/7.0.2" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.1 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "privateca.googleapis.com" - } - ], - "headersSize": 614, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://privateca.googleapis.com/v1beta1/projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName:getIamPolicy" - }, - "response": { - "bodySize": 92, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 92, - "text": "{\"etag\":\"ACAB\"}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Fri, 09 Apr 2021 16:46:46 GMT" - }, - { - "name": "server", - "value": "ESF" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 488, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2021-04-09T16:46:45.288Z", - "time": 887, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 887 - } - }, - { - "_id": "acea721c8193b51ced888cae721cc423", - "_order": 1, - "cache": {}, - "request": { - "bodySize": 739, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "content-type", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "content-length", - "value": "739" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip,deflate" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "www.googleapis.com" - } - ], - "headersSize": 283, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/json", - "params": [], - "text": "[REDACTED]" - }, - "queryString": [], - "url": "https://www.googleapis.com/oauth2/v4/token" - }, - "response": { - "bodySize": 541, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 541, - "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Fri, 09 Apr 2021 16:46:46 GMT" - }, - { - "name": "server", - "value": "scaffolding on HTTPServer2" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 511, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2021-04-09T16:46:46.181Z", - "time": 138, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 138 - } - }, - { - "_id": "975669a76a730cfe731f1daadd53c185", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.1 gl-node/14.15.4 auth/7.0.2" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.1 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "privateca.googleapis.com" - } - ], - "headersSize": 618, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://privateca.googleapis.com/v1beta1/projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates" - }, - "response": { - "bodySize": 8208, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 8208, - "text": "{\"certificates\":[{\"name\":\"projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03\",\"config\":{\"subjectConfig\":{\"subjectAltName\":{\"dnsNames\":[\"google.com\"]}},\"reusableConfig\":{\"reusableConfigValues\":{\"keyUsage\":{\"baseKeyUsage\":{\"digitalSignature\":true,\"keyEncipherment\":true},\"extendedKeyUsage\":{}},\"caOptions\":{\"isCa\":false}}},\"publicKey\":{\"type\":\"PEM_RSA_KEY\",\"key\":\"[REDACTED]\"}},\"lifetime\":\"2592000s\",\"pemCertificate\":\"[REDACTED]\",\"certificateDescription\":{\"subjectDescription\":{\"subjectAltName\":{\"dnsNames\":[\"google.com\"]},\"hexSerialNumber\":\"ec41a22274884f34272ea3dabe37a42daffe41\",\"lifetime\":\"2592000s\",\"notBeforeTime\":\"2021-04-01T19:17:48Z\",\"notAfterTime\":\"2021-05-01T19:17:48Z\"},\"configValues\":{\"keyUsage\":{\"baseKeyUsage\":{\"digitalSignature\":true,\"keyEncipherment\":true}},\"caOptions\":{\"isCa\":false}},\"publicKey\":{\"type\":\"PEM_RSA_KEY\",\"key\":\"[REDACTED]\"},\"subjectKeyId\":{\"keyId\":\"abb01889d84091201b6c09b3f4f6cf04d0a91c13\"},\"authorityKeyId\":{\"keyId\":\"f4c932216ac01039c8f3c952fab0c2f7db202315\"},\"crlDistributionPoints\":[\"http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/crl.crl\"],\"aiaIssuingCertificateUrls\":[\"http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/ca.crt\"],\"certFingerprint\":{\"sha256Hash\":\"7aeb434082c0ea73d819c1e4fab7a3e31f027a9d4440f666af2e3ac38a26039b\"}},\"pemCertificateChain\":[],\"createTime\":\"2021-04-01T19:17:48.319675789Z\",\"updateTime\":\"2021-04-01T19:17:48.319675789Z\"}]}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Fri, 09 Apr 2021 16:46:47 GMT" - }, - { - "name": "server", - "value": "ESF" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 488, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2021-04-09T16:46:46.323Z", - "time": 870, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 870 - } - }, - { - "_id": "7f5aee3db838bc4952f854b795800886", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.1 gl-node/14.15.4 auth/7.0.2" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.1 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "privateca.googleapis.com" - } - ], - "headersSize": 614, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://privateca.googleapis.com/v1beta1/projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName/certificates" - }, - "response": { - "bodySize": 104, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 104, - "text": "{}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Fri, 09 Apr 2021 16:46:47 GMT" - }, - { - "name": "server", - "value": "ESF" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3-29=\":443\"; ma=2592000,h3-T051=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 488, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2021-04-09T16:46:47.200Z", - "time": 793, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 793 - } - } - ], - "pages": [], - "version": "1.2" - } -} diff --git a/src/steps/privateca/__recordings__/fetchCertificateAuthorities_4032991643/recording.har b/src/steps/privateca/__recordings__/fetchCertificateAuthorities_4032991643/recording.har deleted file mode 100644 index 92ddadf7..00000000 --- a/src/steps/privateca/__recordings__/fetchCertificateAuthorities_4032991643/recording.har +++ /dev/null @@ -1,1946 +0,0 @@ -{ - "log": { - "_recordingName": "fetchCertificateAuthorities", - "creator": { - "comment": "persister:JupiterOneIntegationFSPersister", - "name": "Polly.JS", - "version": "5.1.1" - }, - "entries": [ - { - "_id": "acea721c8193b51ced888cae721cc423", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 739, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "content-type", - "value": "application/x-www-form-urlencoded" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "content-length", - "value": "739" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip,deflate" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "www.googleapis.com" - } - ], - "headersSize": 300, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/x-www-form-urlencoded", - "params": [], - "text": "[REDACTED]" - }, - "queryString": [], - "url": "https://www.googleapis.com/oauth2/v4/token" - }, - "response": { - "bodySize": 584, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 584, - "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:25 GMT" - }, - { - "name": "server", - "value": "scaffolding on HTTPServer2" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 506, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:25.562Z", - "time": 144, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 144 - } - }, - { - "_id": "7109c375aded16ca2d1083cd0aa7d706", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "orgpolicy.googleapis.com" - } - ], - "headersSize": 1402, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://orgpolicy.googleapis.com/v2/projects/j1-gc-integration-dev-v3/policies/storage.publicAccessPrevention:getEffectivePolicy" - }, - "response": { - "bodySize": 301, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 301, - "text": "{\"name\":\"projects/167984947943/policies/storage.publicAccessPrevention\",\"spec\":{\"rules\":[{\"enforce\":false}]}}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:27 GMT" - }, - { - "name": "server", - "value": "ESF" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 483, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:25.727Z", - "time": 1452, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 1452 - } - }, - { - "_id": "acea721c8193b51ced888cae721cc423", - "_order": 1, - "cache": {}, - "request": { - "bodySize": 739, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "content-type", - "value": "application/x-www-form-urlencoded" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "content-length", - "value": "739" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip,deflate" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "www.googleapis.com" - } - ], - "headersSize": 300, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/x-www-form-urlencoded", - "params": [], - "text": "[REDACTED]" - }, - "queryString": [], - "url": "https://www.googleapis.com/oauth2/v4/token" - }, - "response": { - "bodySize": 629, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 629, - "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:27 GMT" - }, - { - "name": "server", - "value": "scaffolding on HTTPServer2" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 506, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:27.196Z", - "time": 108, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 108 - } - }, - { - "_id": "7acf0c9bb840f15466eeca7e82f34b42", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1348, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [ - { - "name": "project", - "value": "j1-gc-integration-dev-v3" - } - ], - "url": "https://storage.googleapis.com/storage/v1/b?project=j1-gc-integration-dev-v3" - }, - "response": { - "bodySize": 8859, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 8859, - "text": "{\n \"kind\": \"storage#buckets\",\n \"items\": [\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"id\": \"dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"name\": \"dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"EUROPE-NORTH1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-07-20T12:47:31.280Z\",\n \"updated\": \"2021-07-20T12:47:31.280Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-staging-us-central1-167984947943-okmnuod7\",\n \"id\": \"dataproc-staging-us-central1-167984947943-okmnuod7\",\n \"name\": \"dataproc-staging-us-central1-167984947943-okmnuod7\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"7\",\n \"location\": \"US-CENTRAL1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAc=\",\n \"timeCreated\": \"2021-07-20T12:47:10.911Z\",\n \"updated\": \"2021-09-08T17:19:48.039Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-temp-europe-north1-167984947943-0quq0oz0\",\n \"id\": \"dataproc-temp-europe-north1-167984947943-0quq0oz0\",\n \"name\": \"dataproc-temp-europe-north1-167984947943-0quq0oz0\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"EUROPE-NORTH1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-07-20T12:47:31.407Z\",\n \"updated\": \"2021-07-20T12:47:31.407Z\",\n \"lifecycle\": {\n \"rule\": [\n {\n \"action\": {\n \"type\": \"Delete\"\n },\n \"condition\": {\n \"age\": 90\n }\n }\n ]\n },\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-temp-us-central1-167984947943-c8nlqeyo\",\n \"id\": \"dataproc-temp-us-central1-167984947943-c8nlqeyo\",\n \"name\": \"dataproc-temp-us-central1-167984947943-c8nlqeyo\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US-CENTRAL1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-07-20T12:47:10.793Z\",\n \"updated\": \"2021-07-20T12:47:10.793Z\",\n \"lifecycle\": {\n \"rule\": [\n {\n \"action\": {\n \"type\": \"Delete\"\n },\n \"condition\": {\n \"age\": 90\n }\n }\n ]\n },\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/gcf-sources-167984947943-us-central1\",\n \"id\": \"gcf-sources-167984947943-us-central1\",\n \"name\": \"gcf-sources-167984947943-us-central1\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US-CENTRAL1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-05-31T16:26:23.272Z\",\n \"updated\": \"2021-05-31T16:26:23.272Z\",\n \"cors\": [\n {\n \"origin\": [\n \"https://*.cloud.google.com\",\n \"https://*.corp.google.com\",\n \"https://*.corp.google.com:*\"\n ],\n \"method\": [\n \"GET\"\n ]\n }\n ],\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": true,\n \"lockedTime\": \"2021-08-29T16:26:23.272Z\"\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": true,\n \"lockedTime\": \"2021-08-29T16:26:23.272Z\"\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"id\": \"j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"name\": \"j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-05-31T16:25:51.614Z\",\n \"updated\": \"2021-05-31T16:25:51.614Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-super-secret-stuff\",\n \"id\": \"j1-gc-integration-dev-v3-super-secret-stuff\",\n \"name\": \"j1-gc-integration-dev-v3-super-secret-stuff\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"12\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAw=\",\n \"defaultEventBasedHold\": false,\n \"timeCreated\": \"2021-09-13T22:56:02.534Z\",\n \"updated\": \"2021-10-27T18:29:52.571Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"satisfiesPZS\": false,\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-test-tf-bucket\",\n \"id\": \"j1-gc-integration-dev-v3-test-tf-bucket\",\n \"name\": \"j1-gc-integration-dev-v3-test-tf-bucket\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"2\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAI=\",\n \"timeCreated\": \"2021-07-22T13:15:31.543Z\",\n \"updated\": \"2022-02-07T12:41:33.448Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"enforced\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3cloudfunctions\",\n \"id\": \"j1-gc-integration-dev-v3cloudfunctions\",\n \"name\": \"j1-gc-integration-dev-v3cloudfunctions\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"5\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAU=\",\n \"timeCreated\": \"2021-05-31T16:25:44.251Z\",\n \"updated\": \"2021-09-13T17:25:24.390Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"id\": \"us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"name\": \"us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-05-31T16:35:42.461Z\",\n \"updated\": \"2021-05-31T16:35:42.461Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:27 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:27 GMT" - }, - { - "name": "content-length", - "value": "8859" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 567, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:27.316Z", - "time": 423, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 423 - } - }, - { - "_id": "752af354bf22611a0b56f66a85fd7c09", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1372, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/dataproc-staging-europe-north1-167984947943-oqqo30p7/iam" - }, - "response": { - "bodySize": 502, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 502, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "etag", - "value": "CAE=" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:27 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:27 GMT" - }, - { - "name": "content-length", - "value": "502" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 578, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:27.744Z", - "time": 197, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 197 - } - }, - { - "_id": "e6207f653440e7c1aac11b385e419f4a", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1370, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/dataproc-staging-us-central1-167984947943-okmnuod7/iam" - }, - "response": { - "bodySize": 620, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 620, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/dataproc-staging-us-central1-167984947943-okmnuod7\",\n \"version\": 1,\n \"etag\": \"CAc=\",\n \"bindings\": [\n {\n \"role\": \"roles/composer.environmentAndStorageObjectViewer\",\n \"members\": [\n \"user:michael.knoedel@jupiterone.com\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"allUsers\",\n \"user:michael.knoedel@jupiterone.com\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "etag", - "value": "CAc=" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:28 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:28 GMT" - }, - { - "name": "content-length", - "value": "620" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 578, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:28.016Z", - "time": 273, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 273 - } - }, - { - "_id": "f1146ec93342aa07ef810b7f0f492852", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1369, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/dataproc-temp-europe-north1-167984947943-0quq0oz0/iam" - }, - "response": { - "bodySize": 499, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 499, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/dataproc-temp-europe-north1-167984947943-0quq0oz0\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "etag", - "value": "CAE=" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:28 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:28 GMT" - }, - { - "name": "content-length", - "value": "499" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 578, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:28.299Z", - "time": 243, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 243 - } - }, - { - "_id": "d32b5df4e7bf4dd8f9f2b3cc465fd7b7", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1367, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/dataproc-temp-us-central1-167984947943-c8nlqeyo/iam" - }, - "response": { - "bodySize": 497, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 497, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/dataproc-temp-us-central1-167984947943-c8nlqeyo\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "etag", - "value": "CAE=" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:28 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:28 GMT" - }, - { - "name": "content-length", - "value": "497" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 578, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:28.548Z", - "time": 331, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 331 - } - }, - { - "_id": "6527f0bc704c7473ac6eb93da2ee38b3", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1356, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/gcf-sources-167984947943-us-central1/iam" - }, - "response": { - "bodySize": 812, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 812, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/gcf-sources-167984947943-us-central1\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyObjectOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyObjectReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "etag", - "value": "CAE=" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:29 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:29 GMT" - }, - { - "name": "content-length", - "value": "812" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 578, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:28.886Z", - "time": 295, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 295 - } - }, - { - "_id": "e0f9ddbf50e9e5dbc87e9ec94af04262", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1364, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-sink-logging-bucket/iam" - }, - "response": { - "bodySize": 494, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 494, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "etag", - "value": "CAE=" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:29 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:29 GMT" - }, - { - "name": "content-length", - "value": "494" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 578, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:29.188Z", - "time": 354, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 354 - } - }, - { - "_id": "b424fd4818c26854f527b565fe455137", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1363, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-super-secret-stuff/iam" - }, - "response": { - "bodySize": 669, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 669, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3-super-secret-stuff\",\n \"version\": 1,\n \"etag\": \"CAw=\",\n \"bindings\": [\n {\n \"role\": \"organizations/958457776463/roles/NothingToSeeHere\",\n \"members\": [\n \"allUsers\",\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "etag", - "value": "CAw=" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:29 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:29 GMT" - }, - { - "name": "content-length", - "value": "669" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 578, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:29.548Z", - "time": 283, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 283 - } - }, - { - "_id": "8d85e19b8f96dbb23b04b36ce15313f2", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1359, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-test-tf-bucket/iam" - }, - "response": { - "bodySize": 489, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 489, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3-test-tf-bucket\",\n \"version\": 1,\n \"etag\": \"CAI=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "etag", - "value": "CAI=" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:30 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:30 GMT" - }, - { - "name": "content-length", - "value": "489" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 578, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:29.838Z", - "time": 298, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 298 - } - }, - { - "_id": "dfe939f74ed54a9d42ab204fbeb724ed", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1358, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3cloudfunctions/iam" - }, - "response": { - "bodySize": 488, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 488, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3cloudfunctions\",\n \"version\": 1,\n \"etag\": \"CAU=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "etag", - "value": "CAU=" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:30 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:30 GMT" - }, - { - "name": "content-length", - "value": "488" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 578, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:30.144Z", - "time": 262, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 262 - } - }, - { - "_id": "e6a47336fda03771ef2a23c1c54f6521", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "storage.googleapis.com" - } - ], - "headersSize": 1369, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/us.artifacts.j1-gc-integration-dev-v3.appspot.com/iam" - }, - "response": { - "bodySize": 499, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 499, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" - }, - "cookies": [], - "headers": [ - { - "name": "x-guploader-uploadid", - "value": "[REDACTED]" - }, - { - "name": "etag", - "value": "CAE=" - }, - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:30 GMT" - }, - { - "name": "vary", - "value": "Origin, X-Origin" - }, - { - "name": "cache-control", - "value": "private, max-age=0, must-revalidate, no-transform" - }, - { - "name": "expires", - "value": "Mon, 28 Feb 2022 18:28:30 GMT" - }, - { - "name": "content-length", - "value": "499" - }, - { - "name": "server", - "value": "UploadServer" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 578, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:30.417Z", - "time": 318, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 318 - } - }, - { - "_id": "acea721c8193b51ced888cae721cc423", - "_order": 2, - "cache": {}, - "request": { - "bodySize": 739, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "content-type", - "value": "application/x-www-form-urlencoded" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "content-length", - "value": "739" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip,deflate" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "www.googleapis.com" - } - ], - "headersSize": 300, - "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/x-www-form-urlencoded", - "params": [], - "text": "[REDACTED]" - }, - "queryString": [], - "url": "https://www.googleapis.com/oauth2/v4/token" - }, - "response": { - "bodySize": 630, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 630, - "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:30 GMT" - }, - { - "name": "server", - "value": "scaffolding on HTTPServer2" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 506, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:30.745Z", - "time": 119, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 119 - } - }, - { - "_id": "3d9ed69941e0a8bbb740f8f44dc81de2", - "_order": 0, - "cache": {}, - "request": { - "bodySize": 0, - "cookies": [], - "headers": [ - { - "_fromType": "array", - "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" - }, - { - "_fromType": "array", - "name": "accept-encoding", - "value": "gzip" - }, - { - "_fromType": "array", - "name": "user-agent", - "value": "google-api-nodejs-client/5.0.2 (gzip)" - }, - { - "_fromType": "array", - "name": "authorization", - "value": "[REDACTED]" - }, - { - "_fromType": "array", - "name": "accept", - "value": "application/json" - }, - { - "_fromType": "array", - "name": "connection", - "value": "close" - }, - { - "name": "host", - "value": "privateca.googleapis.com" - } - ], - "headersSize": 1383, - "httpVersion": "HTTP/1.1", - "method": "GET", - "queryString": [], - "url": "https://privateca.googleapis.com/v1beta1/projects/j1-gc-integration-dev-v3/locations/-/certificateAuthorities" - }, - "response": { - "bodySize": 50, - "content": { - "mimeType": "application/json; charset=UTF-8", - "size": 50, - "text": "{}" - }, - "cookies": [], - "headers": [ - { - "name": "content-type", - "value": "application/json; charset=UTF-8" - }, - { - "name": "vary", - "value": "Origin, X-Origin, Referer" - }, - { - "name": "date", - "value": "Mon, 28 Feb 2022 18:28:31 GMT" - }, - { - "name": "server", - "value": "ESF" - }, - { - "name": "cache-control", - "value": "private" - }, - { - "name": "x-xss-protection", - "value": "0" - }, - { - "name": "x-frame-options", - "value": "SAMEORIGIN" - }, - { - "name": "x-content-type-options", - "value": "nosniff" - }, - { - "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" - }, - { - "name": "connection", - "value": "close" - } - ], - "headersSize": 483, - "httpVersion": "HTTP/1.1", - "redirectURL": "", - "status": 200, - "statusText": "OK" - }, - "startedDateTime": "2022-02-28T18:28:30.874Z", - "time": 1075, - "timings": { - "blocked": -1, - "connect": -1, - "dns": -1, - "receive": 0, - "send": 0, - "ssl": -1, - "wait": 1075 - } - } - ], - "pages": [], - "version": "1.2" - } -} diff --git a/src/steps/privateca/__snapshots__/converters.test.ts.snap b/src/steps/privateca/__snapshots__/converters.test.ts.snap deleted file mode 100644 index 7a997329..00000000 --- a/src/steps/privateca/__snapshots__/converters.test.ts.snap +++ /dev/null @@ -1,254 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`#createCertificateAuthorityEntity should convert to entity 1`] = ` -Object { - "_class": Array [ - "Service", - ], - "_key": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "accessUrls": Object { - "caCertificateAccessUrl": "http://test-bucket-with-labels.storage.googleapis.com/f1cc34b5b7e8fa026582/ca.crt", - "crlAccessUrl": "http://test-bucket-with-labels.storage.googleapis.com/f1cc34b5b7e8fa026582/crl.crl", - }, - "caCertificateDescriptions": Array [ - Object { - "authorityKeyId": Object { - "keyId": "ec21738d89c6020cfab46e73b1a001d7fb24d34c", - }, - "certFingerprint": Object { - "sha256Hash": "d7de957b8c0903c662332fc8ec4966c5dc01b7426ed778dc389aaa545a37064a", - }, - "configValues": Object { - "caOptions": Object { - "isCa": true, - }, - "keyUsage": Object { - "baseKeyUsage": Object { - "certSign": true, - "crlSign": true, - }, - }, - }, - "subjectDescription": Object { - "commonName": "acmeName", - "hexSerialNumber": "008a51de1d92de213728c7733b74700f4a684513", - "lifetime": "314496000s", - "notAfterTime": "2031-03-27T14:44:07.900172684Z", - "notBeforeTime": "2021-04-08T14:44:07.900172684Z", - "subject": Object { - "organization": "Acme", - }, - "subjectAltName": Object {}, - }, - "subjectKeyId": Object { - "keyId": "ec21738d89c6020cfab46e73b1a001d7fb24d34c", - }, - }, - ], - "config": Object { - "reusableConfig": Object {}, - "subjectConfig": Object { - "commonName": "acmeName", - "subject": Object { - "organization": "Acme", - }, - }, - }, - "createTime": "2021-04-08T14:44:07.215539285Z", - "issuingOptions": Object { - "includeCaCertUrl": true, - "includeCrlAccessUrl": true, - }, - "keySpec": Object { - "algorithm": "RSA_PKCS1_2048_SHA256", - }, - "lifetime": "314496000s", - "name": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName", - "state": "ENABLED", - "tier": "ENTERPRISE", - "type": "SELF_SIGNED", - "updateTime": "2021-04-08T14:44:09.263990183Z", - }, - }, - ], - "_type": "google_privateca_certificate_authority", - "caCertificateAccessUrl": "http://test-bucket-with-labels.storage.googleapis.com/f1cc34b5b7e8fa026582/ca.crt", - "category": Array [ - "security", - ], - "createdOn": 1617893047215, - "crlAccessUrl": "http://test-bucket-with-labels.storage.googleapis.com/f1cc34b5b7e8fa026582/crl.crl", - "deletedOn": undefined, - "displayName": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName", - "extendedKeyUsage.clientAuth": undefined, - "extendedKeyUsage.codeSigning": undefined, - "extendedKeyUsage.emailProtection": undefined, - "extendedKeyUsage.ocspSigning": undefined, - "extendedKeyUsage.serverAuth": undefined, - "extendedKeyUsage.timeStamping": undefined, - "function": Array [ - "certificate-management", - ], - "keyAlgorithm": "RSA_PKCS1_2048_SHA256", - "keyUsage.certSign": undefined, - "keyUsage.contentCommitment": undefined, - "keyUsage.crlSign": undefined, - "keyUsage.dataEncipherment": undefined, - "keyUsage.decipherOnly": undefined, - "keyUsage.digitalSignature": undefined, - "keyUsage.encipherOnly": undefined, - "keyUsage.keyAgreement": undefined, - "keyUsage.keyEncipherment": undefined, - "lifetime": "314496000s", - "name": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName", - "public": false, - "state": "ENABLED", - "subject": "acmeName", - "subject.countryCode": undefined, - "subject.locality": undefined, - "subject.organization": "Acme", - "subject.organizationalUnit": undefined, - "subject.postalCode": undefined, - "subject.province": undefined, - "subject.streetAddress": undefined, - "subjectAltName.dnsNames": undefined, - "subjectAltName.emailAddresses": undefined, - "subjectAltName.ipAddresses": undefined, - "subjectAltName.uris": undefined, - "tier": "ENTERPRISE", - "type": "SELF_SIGNED", - "updatedOn": 1617893049263, - "webLink": "https://console.cloud.google.com/security/cas/manage/locations/us-central1/certificateAuthorities/acmeName/details?project=j1-gc-integration-dev-v2", -} -`; - -exports[`#createCertificateEntity should convert to entity 1`] = ` -Object { - "_class": Array [ - "Certificate", - ], - "_key": "projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "certificateDescription": Object { - "aiaIssuingCertificateUrls": Array [ - "http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/ca.crt", - ], - "authorityKeyId": Object { - "keyId": "f4c932216ac01039c8f3c952fab0c2f7db202315", - }, - "certFingerprint": Object { - "sha256Hash": "7aeb434082c0ea73d819c1e4fab7a3e31f027a9d4440f666af2e3ac38a26039b", - }, - "configValues": Object { - "caOptions": Object { - "isCa": false, - }, - "keyUsage": Object { - "baseKeyUsage": Object { - "digitalSignature": true, - "keyEncipherment": true, - }, - }, - }, - "crlDistributionPoints": Array [ - "http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/crl.crl", - ], - "subjectDescription": Object { - "hexSerialNumber": "ec41a22274884f34272ea3dabe37a42daffe41", - "lifetime": "2592000s", - "notAfterTime": "2021-05-01T19:17:48Z", - "notBeforeTime": "2021-04-01T19:17:48Z", - "subjectAltName": Object { - "dnsNames": Array [ - "google.com", - ], - }, - }, - "subjectKeyId": Object { - "keyId": "abb01889d84091201b6c09b3f4f6cf04d0a91c13", - }, - }, - "config": Object { - "reusableConfig": Object { - "reusableConfigValues": Object { - "caOptions": Object { - "isCa": false, - }, - "keyUsage": Object { - "baseKeyUsage": Object { - "digitalSignature": true, - "keyEncipherment": true, - }, - "extendedKeyUsage": Object {}, - }, - }, - }, - "subjectConfig": Object { - "subjectAltName": Object { - "dnsNames": Array [ - "google.com", - ], - }, - }, - }, - "createTime": "2021-04-01T19:17:48.319675789Z", - "lifetime": "2592000s", - "name": "projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03", - "updateTime": "2021-04-01T19:17:48.319675789Z", - }, - }, - ], - "_type": "google_privateca_certificate", - "alternativeNames": Array [ - "google.com", - ], - "createdOn": 1617304668319, - "displayName": "projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03", - "extendedKeyUsage.clientAuth": undefined, - "extendedKeyUsage.codeSigning": undefined, - "extendedKeyUsage.emailProtection": undefined, - "extendedKeyUsage.ocspSigning": undefined, - "extendedKeyUsage.serverAuth": undefined, - "extendedKeyUsage.timeStamping": undefined, - "hexSerial": "ec41a22274884f34272ea3dabe37a42daffe41", - "issuer": "Test-CA-Name", - "keyAlgorithm": "RSA_PKCS1_2048_SHA256", - "keyUsage.certSign": undefined, - "keyUsage.contentCommitment": undefined, - "keyUsage.crlSign": undefined, - "keyUsage.dataEncipherment": undefined, - "keyUsage.decipherOnly": undefined, - "keyUsage.digitalSignature": true, - "keyUsage.encipherOnly": undefined, - "keyUsage.keyAgreement": undefined, - "keyUsage.keyEncipherment": true, - "lifetime": "2592000s", - "name": "projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03", - "notAfterTime": 1619896668000, - "notBeforeTime": 1617304668000, - "publicKeyType": undefined, - "subject": undefined, - "subject.countryCode": undefined, - "subject.locality": undefined, - "subject.organization": undefined, - "subject.organizationalUnit": undefined, - "subject.postalCode": undefined, - "subject.province": undefined, - "subject.streetAddress": undefined, - "subjectAltName.dnsNames": Array [ - "google.com", - ], - "subjectAltName.emailAddresses": undefined, - "subjectAltName.ipAddresses": undefined, - "subjectAltName.uris": undefined, - "updatedOn": 1617304668319, - "webLink": "https://console.cloud.google.com/security/cas/certificate/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03?project=j1-gc-integration-dev-v2", -} -`; diff --git a/src/steps/privateca/__snapshots__/index.test.ts.snap b/src/steps/privateca/__snapshots__/index.test.ts.snap deleted file mode 100644 index c2732fe9..00000000 --- a/src/steps/privateca/__snapshots__/index.test.ts.snap +++ /dev/null @@ -1,1210 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`#buildCertificateAuthorityBucketRelationships should collect data 1`] = ` -Object { - "collectedEntities": Array [ - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:dataproc-staging-europe-north1-167984947943-oqqo30p7", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "etag": "CAE=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "dataproc-staging-europe-north1-167984947943-oqqo30p7", - "kind": "storage#bucket", - "location": "EUROPE-NORTH1", - "locationType": "region", - "metageneration": "1", - "name": "dataproc-staging-europe-north1-167984947943-oqqo30p7", - "projectNumber": "167984947943", - "selfLink": "https://www.googleapis.com/storage/v1/b/dataproc-staging-europe-north1-167984947943-oqqo30p7", - "storageClass": "STANDARD", - "timeCreated": "2021-07-20T12:47:31.280Z", - "updated": "2021-07-20T12:47:31.280Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1626785251280, - "displayName": "dataproc-staging-europe-north1-167984947943-oqqo30p7", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAE=", - "id": "dataproc-staging-europe-north1-167984947943-oqqo30p7", - "kmsKeyName": undefined, - "location": "EUROPE-NORTH1", - "name": "dataproc-staging-europe-north1-167984947943-oqqo30p7", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1626785251280, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/dataproc-staging-europe-north1-167984947943-oqqo30p7;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:dataproc-staging-us-central1-167984947943-okmnuod7", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "etag": "CAc=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "dataproc-staging-us-central1-167984947943-okmnuod7", - "kind": "storage#bucket", - "location": "US-CENTRAL1", - "locationType": "region", - "metageneration": "7", - "name": "dataproc-staging-us-central1-167984947943-okmnuod7", - "projectNumber": "167984947943", - "selfLink": "https://www.googleapis.com/storage/v1/b/dataproc-staging-us-central1-167984947943-okmnuod7", - "storageClass": "STANDARD", - "timeCreated": "2021-07-20T12:47:10.911Z", - "updated": "2021-09-08T17:19:48.039Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1626785230911, - "displayName": "dataproc-staging-us-central1-167984947943-okmnuod7", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAc=", - "id": "dataproc-staging-us-central1-167984947943-okmnuod7", - "kmsKeyName": undefined, - "location": "US-CENTRAL1", - "name": "dataproc-staging-us-central1-167984947943-okmnuod7", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1631121588039, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/dataproc-staging-us-central1-167984947943-okmnuod7;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:dataproc-temp-europe-north1-167984947943-0quq0oz0", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "etag": "CAE=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "dataproc-temp-europe-north1-167984947943-0quq0oz0", - "kind": "storage#bucket", - "lifecycle": Object { - "rule": Array [ - Object { - "action": Object { - "type": "Delete", - }, - "condition": Object { - "age": 90, - }, - }, - ], - }, - "location": "EUROPE-NORTH1", - "locationType": "region", - "metageneration": "1", - "name": "dataproc-temp-europe-north1-167984947943-0quq0oz0", - "projectNumber": "167984947943", - "selfLink": "https://www.googleapis.com/storage/v1/b/dataproc-temp-europe-north1-167984947943-0quq0oz0", - "storageClass": "STANDARD", - "timeCreated": "2021-07-20T12:47:31.407Z", - "updated": "2021-07-20T12:47:31.407Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1626785251407, - "displayName": "dataproc-temp-europe-north1-167984947943-0quq0oz0", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAE=", - "id": "dataproc-temp-europe-north1-167984947943-0quq0oz0", - "kmsKeyName": undefined, - "location": "EUROPE-NORTH1", - "name": "dataproc-temp-europe-north1-167984947943-0quq0oz0", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1626785251407, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/dataproc-temp-europe-north1-167984947943-0quq0oz0;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:dataproc-temp-us-central1-167984947943-c8nlqeyo", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "etag": "CAE=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "dataproc-temp-us-central1-167984947943-c8nlqeyo", - "kind": "storage#bucket", - "lifecycle": Object { - "rule": Array [ - Object { - "action": Object { - "type": "Delete", - }, - "condition": Object { - "age": 90, - }, - }, - ], - }, - "location": "US-CENTRAL1", - "locationType": "region", - "metageneration": "1", - "name": "dataproc-temp-us-central1-167984947943-c8nlqeyo", - "projectNumber": "167984947943", - "selfLink": "https://www.googleapis.com/storage/v1/b/dataproc-temp-us-central1-167984947943-c8nlqeyo", - "storageClass": "STANDARD", - "timeCreated": "2021-07-20T12:47:10.793Z", - "updated": "2021-07-20T12:47:10.793Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1626785230793, - "displayName": "dataproc-temp-us-central1-167984947943-c8nlqeyo", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAE=", - "id": "dataproc-temp-us-central1-167984947943-c8nlqeyo", - "kmsKeyName": undefined, - "location": "US-CENTRAL1", - "name": "dataproc-temp-us-central1-167984947943-c8nlqeyo", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1626785230793, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/dataproc-temp-us-central1-167984947943-c8nlqeyo;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:example-backend-bucket-1", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "defaultEventBasedHold": false, - "etag": "CAE=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": true, - "lockedTime": "2022-06-14T11:31:39.964Z", - }, - "publicAccessPrevention": "enforced", - "uniformBucketLevelAccess": Object { - "enabled": true, - "lockedTime": "2022-06-14T11:31:39.964Z", - }, - }, - "id": "example-backend-bucket-1", - "kind": "storage#bucket", - "location": "US", - "locationType": "multi-region", - "metageneration": "1", - "name": "example-backend-bucket-1", - "projectNumber": "167984947943", - "rpo": "DEFAULT", - "satisfiesPZS": false, - "selfLink": "https://www.googleapis.com/storage/v1/b/example-backend-bucket-1", - "storageClass": "STANDARD", - "timeCreated": "2022-03-16T11:31:39.964Z", - "updated": "2022-03-16T11:31:39.964Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1647430299964, - "displayName": "example-backend-bucket-1", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAE=", - "id": "example-backend-bucket-1", - "kmsKeyName": undefined, - "location": "US", - "name": "example-backend-bucket-1", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": true, - "updatedOn": 1647430299964, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/example-backend-bucket-1;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:gcf-sources-167984947943-us-central1", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "cors": Array [ - Object { - "method": Array [ - "GET", - ], - "origin": Array [ - "https://*.cloud.google.com", - "https://*.corp.google.com", - "https://*.corp.google.com:*", - ], - }, - ], - "etag": "CAE=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": true, - "lockedTime": "2021-08-29T16:26:23.272Z", - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": true, - "lockedTime": "2021-08-29T16:26:23.272Z", - }, - }, - "id": "gcf-sources-167984947943-us-central1", - "kind": "storage#bucket", - "location": "US-CENTRAL1", - "locationType": "region", - "metageneration": "1", - "name": "gcf-sources-167984947943-us-central1", - "projectNumber": "167984947943", - "selfLink": "https://www.googleapis.com/storage/v1/b/gcf-sources-167984947943-us-central1", - "storageClass": "STANDARD", - "timeCreated": "2021-05-31T16:26:23.272Z", - "updated": "2021-05-31T16:26:23.272Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1622478383272, - "displayName": "gcf-sources-167984947943-us-central1", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAE=", - "id": "gcf-sources-167984947943-us-central1", - "kmsKeyName": undefined, - "location": "US-CENTRAL1", - "name": "gcf-sources-167984947943-us-central1", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": true, - "updatedOn": 1622478383272, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/gcf-sources-167984947943-us-central1;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:j1-gc-integration-dev-v3-sink-logging-bucket", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "etag": "CAE=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "j1-gc-integration-dev-v3-sink-logging-bucket", - "kind": "storage#bucket", - "location": "US", - "locationType": "multi-region", - "metageneration": "1", - "name": "j1-gc-integration-dev-v3-sink-logging-bucket", - "projectNumber": "167984947943", - "rpo": "DEFAULT", - "selfLink": "https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-sink-logging-bucket", - "storageClass": "STANDARD", - "timeCreated": "2021-05-31T16:25:51.614Z", - "updated": "2021-05-31T16:25:51.614Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1622478351614, - "displayName": "j1-gc-integration-dev-v3-sink-logging-bucket", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAE=", - "id": "j1-gc-integration-dev-v3-sink-logging-bucket", - "kmsKeyName": undefined, - "location": "US", - "name": "j1-gc-integration-dev-v3-sink-logging-bucket", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1622478351614, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/j1-gc-integration-dev-v3-sink-logging-bucket;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:j1-gc-integration-dev-v3-super-secret-stuff", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "defaultEventBasedHold": false, - "etag": "CAw=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "j1-gc-integration-dev-v3-super-secret-stuff", - "kind": "storage#bucket", - "location": "US", - "locationType": "multi-region", - "metageneration": "12", - "name": "j1-gc-integration-dev-v3-super-secret-stuff", - "projectNumber": "167984947943", - "rpo": "DEFAULT", - "satisfiesPZS": false, - "selfLink": "https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-super-secret-stuff", - "storageClass": "STANDARD", - "timeCreated": "2021-09-13T22:56:02.534Z", - "updated": "2021-10-27T18:29:52.571Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1631573762534, - "displayName": "j1-gc-integration-dev-v3-super-secret-stuff", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAw=", - "id": "j1-gc-integration-dev-v3-super-secret-stuff", - "kmsKeyName": undefined, - "location": "US", - "name": "j1-gc-integration-dev-v3-super-secret-stuff", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1635359392571, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/j1-gc-integration-dev-v3-super-secret-stuff;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:j1-gc-integration-dev-v3-test-tf-bucket", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "etag": "CAI=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "enforced", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "j1-gc-integration-dev-v3-test-tf-bucket", - "kind": "storage#bucket", - "location": "US", - "locationType": "multi-region", - "metageneration": "2", - "name": "j1-gc-integration-dev-v3-test-tf-bucket", - "projectNumber": "167984947943", - "rpo": "DEFAULT", - "selfLink": "https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-test-tf-bucket", - "storageClass": "STANDARD", - "timeCreated": "2021-07-22T13:15:31.543Z", - "updated": "2022-02-07T12:41:33.448Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1626959731543, - "displayName": "j1-gc-integration-dev-v3-test-tf-bucket", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAI=", - "id": "j1-gc-integration-dev-v3-test-tf-bucket", - "kmsKeyName": undefined, - "location": "US", - "name": "j1-gc-integration-dev-v3-test-tf-bucket", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1644237693448, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/j1-gc-integration-dev-v3-test-tf-bucket;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:j1-gc-integration-dev-v3.appspot.com", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "etag": "CAE=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "j1-gc-integration-dev-v3.appspot.com", - "kind": "storage#bucket", - "location": "US", - "locationType": "multi-region", - "metageneration": "1", - "name": "j1-gc-integration-dev-v3.appspot.com", - "projectNumber": "167984947943", - "rpo": "DEFAULT", - "selfLink": "https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3.appspot.com", - "storageClass": "STANDARD", - "timeCreated": "2022-03-16T10:53:36.805Z", - "updated": "2022-03-16T10:53:36.805Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1647428016805, - "displayName": "j1-gc-integration-dev-v3.appspot.com", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAE=", - "id": "j1-gc-integration-dev-v3.appspot.com", - "kmsKeyName": undefined, - "location": "US", - "name": "j1-gc-integration-dev-v3.appspot.com", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1647428016805, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/j1-gc-integration-dev-v3.appspot.com;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:j1-gc-integration-dev-v3cloudfunctions", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "etag": "CAU=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "j1-gc-integration-dev-v3cloudfunctions", - "kind": "storage#bucket", - "location": "US", - "locationType": "multi-region", - "metageneration": "5", - "name": "j1-gc-integration-dev-v3cloudfunctions", - "projectNumber": "167984947943", - "rpo": "DEFAULT", - "selfLink": "https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3cloudfunctions", - "storageClass": "STANDARD", - "timeCreated": "2021-05-31T16:25:44.251Z", - "updated": "2021-09-13T17:25:24.390Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1622478344251, - "displayName": "j1-gc-integration-dev-v3cloudfunctions", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAU=", - "id": "j1-gc-integration-dev-v3cloudfunctions", - "kmsKeyName": undefined, - "location": "US", - "name": "j1-gc-integration-dev-v3cloudfunctions", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1631553924390, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/j1-gc-integration-dev-v3cloudfunctions;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:staging.j1-gc-integration-dev-v3.appspot.com", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "etag": "CAE=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "staging.j1-gc-integration-dev-v3.appspot.com", - "kind": "storage#bucket", - "lifecycle": Object { - "rule": Array [ - Object { - "action": Object { - "type": "Delete", - }, - "condition": Object { - "age": 15, - }, - }, - ], - }, - "location": "US", - "locationType": "multi-region", - "metageneration": "1", - "name": "staging.j1-gc-integration-dev-v3.appspot.com", - "projectNumber": "167984947943", - "rpo": "DEFAULT", - "selfLink": "https://www.googleapis.com/storage/v1/b/staging.j1-gc-integration-dev-v3.appspot.com", - "storageClass": "STANDARD", - "timeCreated": "2022-03-16T10:53:36.905Z", - "updated": "2022-03-16T10:53:36.905Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1647428016905, - "displayName": "staging.j1-gc-integration-dev-v3.appspot.com", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAE=", - "id": "staging.j1-gc-integration-dev-v3.appspot.com", - "kmsKeyName": undefined, - "location": "US", - "name": "staging.j1-gc-integration-dev-v3.appspot.com", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1647428016905, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/staging.j1-gc-integration-dev-v3.appspot.com;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - Object { - "_class": Array [ - "DataStore", - ], - "_key": "bucket:us.artifacts.j1-gc-integration-dev-v3.appspot.com", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "etag": "CAE=", - "iamConfiguration": Object { - "bucketPolicyOnly": Object { - "enabled": false, - }, - "publicAccessPrevention": "inherited", - "uniformBucketLevelAccess": Object { - "enabled": false, - }, - }, - "id": "us.artifacts.j1-gc-integration-dev-v3.appspot.com", - "kind": "storage#bucket", - "location": "US", - "locationType": "multi-region", - "metageneration": "1", - "name": "us.artifacts.j1-gc-integration-dev-v3.appspot.com", - "projectNumber": "167984947943", - "rpo": "DEFAULT", - "selfLink": "https://www.googleapis.com/storage/v1/b/us.artifacts.j1-gc-integration-dev-v3.appspot.com", - "storageClass": "STANDARD", - "timeCreated": "2021-05-31T16:35:42.461Z", - "updated": "2021-05-31T16:35:42.461Z", - }, - }, - ], - "_type": "google_storage_bucket", - "classification": null, - "createdOn": 1622478942461, - "displayName": "us.artifacts.j1-gc-integration-dev-v3.appspot.com", - "encrypted": true, - "encryptionKeyRef": undefined, - "etag": "CAE=", - "id": "us.artifacts.j1-gc-integration-dev-v3.appspot.com", - "kmsKeyName": undefined, - "location": "US", - "name": "us.artifacts.j1-gc-integration-dev-v3.appspot.com", - "public": false, - "retentionDate": undefined, - "retentionPeriod": undefined, - "retentionPolicyEnabled": undefined, - "storageClass": "STANDARD", - "uniformBucketLevelAccess": false, - "updatedOn": 1622478942461, - "versioningEnabled": false, - "webLink": "https://console.cloud.google.com/storage/browser/us.artifacts.j1-gc-integration-dev-v3.appspot.com;tab=objects?forceOnBucketsSortingFiltering=false&project=j1-gc-integration-dev-v3", - }, - ], - "collectedRelationships": Array [], - "encounteredTypes": Array [ - "google_storage_bucket", - ], - "numCollectedEntities": 13, - "numCollectedRelationships": 0, -} -`; - -exports[`#fetchAuthorityCertificates should collect data 1`] = ` -Object { - "collectedEntities": Array [ - Object { - "_class": Array [ - "Service", - ], - "_key": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/Test-CA-Name", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "accessUrls": Object { - "caCertificateAccessUrl": "http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/ca.crt", - "crlAccessUrl": "http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/crl.crl", - }, - "caCertificateDescriptions": Array [ - Object { - "authorityKeyId": Object { - "keyId": "f4c932216ac01039c8f3c952fab0c2f7db202315", - }, - "certFingerprint": Object { - "sha256Hash": "f9998966e551d9000710508f33b4d50a6b2282473c913de3e5e0057391be909e", - }, - "configValues": Object { - "caOptions": Object { - "isCa": true, - "maxIssuerPathLength": 1, - }, - "keyUsage": Object { - "baseKeyUsage": Object { - "certSign": true, - "crlSign": true, - }, - }, - }, - "publicKey": Object { - "type": "PEM_RSA_KEY", - }, - "subjectDescription": Object { - "commonName": "Test CA Name", - "hexSerialNumber": "00b38cb1619dfd6a5fdc5542a97ab9bb09abab0f", - "lifetime": "314496000s", - "notAfterTime": "2031-03-20T19:08:06.481768813Z", - "notBeforeTime": "2021-04-01T19:08:06.481768813Z", - "subject": Object { - "organization": "Test Organization Name", - }, - "subjectAltName": Object {}, - }, - "subjectKeyId": Object { - "keyId": "f4c932216ac01039c8f3c952fab0c2f7db202315", - }, - }, - ], - "config": Object { - "reusableConfig": Object { - "reusableConfigValues": Object { - "caOptions": Object { - "isCa": true, - "maxIssuerPathLength": 1, - }, - "keyUsage": Object { - "baseKeyUsage": Object { - "certSign": true, - "crlSign": true, - }, - }, - }, - }, - "subjectConfig": Object { - "commonName": "Test CA Name", - "subject": Object { - "organization": "Test Organization Name", - }, - }, - }, - "createTime": "2021-04-01T19:08:05.695936998Z", - "issuingOptions": Object { - "includeCaCertUrl": true, - "includeCrlAccessUrl": true, - }, - "keySpec": Object { - "algorithm": "RSA_PKCS1_4096_SHA256", - }, - "lifetime": "314496000s", - "name": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/Test-CA-Name", - "state": "ENABLED", - "tier": "ENTERPRISE", - "type": "SELF_SIGNED", - "updateTime": "2021-04-07T14:18:36.760073627Z", - }, - }, - ], - "_type": "google_privateca_certificate_authority", - "caCertificateAccessUrl": "http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/ca.crt", - "category": Array [ - "security", - ], - "createdOn": 1617304085695, - "crlAccessUrl": "http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/crl.crl", - "deletedOn": undefined, - "displayName": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/Test-CA-Name", - "extendedKeyUsage.clientAuth": undefined, - "extendedKeyUsage.codeSigning": undefined, - "extendedKeyUsage.emailProtection": undefined, - "extendedKeyUsage.ocspSigning": undefined, - "extendedKeyUsage.serverAuth": undefined, - "extendedKeyUsage.timeStamping": undefined, - "function": Array [ - "certificate-management", - ], - "keyAlgorithm": "RSA_PKCS1_4096_SHA256", - "keyUsage.certSign": true, - "keyUsage.contentCommitment": undefined, - "keyUsage.crlSign": true, - "keyUsage.dataEncipherment": undefined, - "keyUsage.decipherOnly": undefined, - "keyUsage.digitalSignature": undefined, - "keyUsage.encipherOnly": undefined, - "keyUsage.keyAgreement": undefined, - "keyUsage.keyEncipherment": undefined, - "lifetime": "314496000s", - "name": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/Test-CA-Name", - "public": false, - "state": "ENABLED", - "subject": "Test CA Name", - "subject.countryCode": undefined, - "subject.locality": undefined, - "subject.organization": "Test Organization Name", - "subject.organizationalUnit": undefined, - "subject.postalCode": undefined, - "subject.province": undefined, - "subject.streetAddress": undefined, - "subjectAltName.dnsNames": undefined, - "subjectAltName.emailAddresses": undefined, - "subjectAltName.ipAddresses": undefined, - "subjectAltName.uris": undefined, - "tier": "ENTERPRISE", - "type": "SELF_SIGNED", - "updatedOn": 1617805116760, - "webLink": "https://console.cloud.google.com/security/cas/manage/locations/us-central1/certificateAuthorities/Test-CA-Name/details?project=j1-gc-integration-dev-v2", - }, - Object { - "_class": Array [ - "Service", - ], - "_key": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "accessUrls": Object { - "caCertificateAccessUrl": "http://test-bucket-with-labels.storage.googleapis.com/f1cc34b5b7e8fa026582/ca.crt", - "crlAccessUrl": "http://test-bucket-with-labels.storage.googleapis.com/f1cc34b5b7e8fa026582/crl.crl", - }, - "caCertificateDescriptions": Array [ - Object { - "authorityKeyId": Object { - "keyId": "ec21738d89c6020cfab46e73b1a001d7fb24d34c", - }, - "certFingerprint": Object { - "sha256Hash": "d7de957b8c0903c662332fc8ec4966c5dc01b7426ed778dc389aaa545a37064a", - }, - "configValues": Object { - "caOptions": Object { - "isCa": true, - }, - "keyUsage": Object { - "baseKeyUsage": Object { - "certSign": true, - "crlSign": true, - }, - }, - }, - "publicKey": Object { - "type": "PEM_RSA_KEY", - }, - "subjectDescription": Object { - "commonName": "acmeName", - "hexSerialNumber": "008a51de1d92de213728c7733b74700f4a684513", - "lifetime": "314496000s", - "notAfterTime": "2031-03-27T14:44:07.900172684Z", - "notBeforeTime": "2021-04-08T14:44:07.900172684Z", - "subject": Object { - "organization": "Acme", - }, - "subjectAltName": Object {}, - }, - "subjectKeyId": Object { - "keyId": "ec21738d89c6020cfab46e73b1a001d7fb24d34c", - }, - }, - ], - "config": Object { - "reusableConfig": Object { - "reusableConfig": "projects/568668481468/locations/us-central1/reusableConfigs/root-unconstrained", - }, - "subjectConfig": Object { - "commonName": "acmeName", - "subject": Object { - "organization": "Acme", - }, - }, - }, - "createTime": "2021-04-08T14:44:07.215539285Z", - "gcsBucket": "test-bucket-with-labels", - "issuingOptions": Object { - "includeCaCertUrl": true, - "includeCrlAccessUrl": true, - }, - "keySpec": Object { - "algorithm": "RSA_PKCS1_2048_SHA256", - }, - "lifetime": "314496000s", - "name": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName", - "state": "ENABLED", - "tier": "ENTERPRISE", - "type": "SELF_SIGNED", - "updateTime": "2021-04-08T14:44:09.263990183Z", - }, - }, - ], - "_type": "google_privateca_certificate_authority", - "caCertificateAccessUrl": "http://test-bucket-with-labels.storage.googleapis.com/f1cc34b5b7e8fa026582/ca.crt", - "category": Array [ - "security", - ], - "createdOn": 1617893047215, - "crlAccessUrl": "http://test-bucket-with-labels.storage.googleapis.com/f1cc34b5b7e8fa026582/crl.crl", - "deletedOn": undefined, - "displayName": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName", - "extendedKeyUsage.clientAuth": undefined, - "extendedKeyUsage.codeSigning": undefined, - "extendedKeyUsage.emailProtection": undefined, - "extendedKeyUsage.ocspSigning": undefined, - "extendedKeyUsage.serverAuth": undefined, - "extendedKeyUsage.timeStamping": undefined, - "function": Array [ - "certificate-management", - ], - "keyAlgorithm": "RSA_PKCS1_2048_SHA256", - "keyUsage.certSign": undefined, - "keyUsage.contentCommitment": undefined, - "keyUsage.crlSign": undefined, - "keyUsage.dataEncipherment": undefined, - "keyUsage.decipherOnly": undefined, - "keyUsage.digitalSignature": undefined, - "keyUsage.encipherOnly": undefined, - "keyUsage.keyAgreement": undefined, - "keyUsage.keyEncipherment": undefined, - "lifetime": "314496000s", - "name": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/acmeName", - "public": false, - "state": "ENABLED", - "subject": "acmeName", - "subject.countryCode": undefined, - "subject.locality": undefined, - "subject.organization": "Acme", - "subject.organizationalUnit": undefined, - "subject.postalCode": undefined, - "subject.province": undefined, - "subject.streetAddress": undefined, - "subjectAltName.dnsNames": undefined, - "subjectAltName.emailAddresses": undefined, - "subjectAltName.ipAddresses": undefined, - "subjectAltName.uris": undefined, - "tier": "ENTERPRISE", - "type": "SELF_SIGNED", - "updatedOn": 1617893049263, - "webLink": "https://console.cloud.google.com/security/cas/manage/locations/us-central1/certificateAuthorities/acmeName/details?project=j1-gc-integration-dev-v2", - }, - Object { - "_class": Array [ - "Certificate", - ], - "_key": "projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03", - "_rawData": Array [ - Object { - "name": "default", - "rawData": Object { - "certificateDescription": Object { - "aiaIssuingCertificateUrls": Array [ - "http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/ca.crt", - ], - "authorityKeyId": Object { - "keyId": "f4c932216ac01039c8f3c952fab0c2f7db202315", - }, - "certFingerprint": Object { - "sha256Hash": "7aeb434082c0ea73d819c1e4fab7a3e31f027a9d4440f666af2e3ac38a26039b", - }, - "configValues": Object { - "caOptions": Object { - "isCa": false, - }, - "keyUsage": Object { - "baseKeyUsage": Object { - "digitalSignature": true, - "keyEncipherment": true, - }, - }, - }, - "crlDistributionPoints": Array [ - "http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/crl.crl", - ], - "publicKey": Object { - "type": "PEM_RSA_KEY", - }, - "subjectDescription": Object { - "hexSerialNumber": "ec41a22274884f34272ea3dabe37a42daffe41", - "lifetime": "2592000s", - "notAfterTime": "2021-05-01T19:17:48Z", - "notBeforeTime": "2021-04-01T19:17:48Z", - "subjectAltName": Object { - "dnsNames": Array [ - "google.com", - ], - }, - }, - "subjectKeyId": Object { - "keyId": "abb01889d84091201b6c09b3f4f6cf04d0a91c13", - }, - }, - "config": Object { - "reusableConfig": Object { - "reusableConfigValues": Object { - "caOptions": Object { - "isCa": false, - }, - "keyUsage": Object { - "baseKeyUsage": Object { - "digitalSignature": true, - "keyEncipherment": true, - }, - "extendedKeyUsage": Object {}, - }, - }, - }, - "subjectConfig": Object { - "subjectAltName": Object { - "dnsNames": Array [ - "google.com", - ], - }, - }, - }, - "createTime": "2021-04-01T19:17:48.319675789Z", - "lifetime": "2592000s", - "name": "projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03", - "updateTime": "2021-04-01T19:17:48.319675789Z", - }, - }, - ], - "_type": "google_privateca_certificate", - "alternativeNames": Array [ - "google.com", - ], - "createdOn": 1617304668319, - "displayName": "projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03", - "extendedKeyUsage.clientAuth": undefined, - "extendedKeyUsage.codeSigning": undefined, - "extendedKeyUsage.emailProtection": undefined, - "extendedKeyUsage.ocspSigning": undefined, - "extendedKeyUsage.serverAuth": undefined, - "extendedKeyUsage.timeStamping": undefined, - "hexSerial": "ec41a22274884f34272ea3dabe37a42daffe41", - "issuer": "Test-CA-Name", - "keyAlgorithm": "RSA_PKCS1_4096_SHA256", - "keyUsage.certSign": undefined, - "keyUsage.contentCommitment": undefined, - "keyUsage.crlSign": undefined, - "keyUsage.dataEncipherment": undefined, - "keyUsage.decipherOnly": undefined, - "keyUsage.digitalSignature": true, - "keyUsage.encipherOnly": undefined, - "keyUsage.keyAgreement": undefined, - "keyUsage.keyEncipherment": true, - "lifetime": "2592000s", - "name": "projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03", - "notAfterTime": 1619896668000, - "notBeforeTime": 1617304668000, - "publicKeyType": "PEM_RSA_KEY", - "subject": undefined, - "subject.countryCode": undefined, - "subject.locality": undefined, - "subject.organization": undefined, - "subject.organizationalUnit": undefined, - "subject.postalCode": undefined, - "subject.province": undefined, - "subject.streetAddress": undefined, - "subjectAltName.dnsNames": Array [ - "google.com", - ], - "subjectAltName.emailAddresses": undefined, - "subjectAltName.ipAddresses": undefined, - "subjectAltName.uris": undefined, - "updatedOn": 1617304668319, - "webLink": "https://console.cloud.google.com/security/cas/certificate/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03?project=j1-gc-integration-dev-v2", - }, - ], - "collectedRelationships": Array [ - Object { - "_class": "CREATED", - "_fromEntityKey": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/Test-CA-Name", - "_key": "projects/j1-gc-integration-dev-v2/locations/us-central1/certificateAuthorities/Test-CA-Name|created|projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03", - "_toEntityKey": "projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03", - "_type": "google_privateca_certificate_authority_created_certificate", - "displayName": "CREATED", - }, - ], - "encounteredTypes": Array [ - "google_privateca_certificate_authority", - "google_privateca_certificate", - "google_privateca_certificate_authority_created_certificate", - ], - "numCollectedEntities": 3, - "numCollectedRelationships": 1, -} -`; - -exports[`#fetchCertificateAuthorities should collect data 1`] = ` -Object { - "collectedEntities": Array [], - "collectedRelationships": Array [], - "encounteredTypes": Array [], - "numCollectedEntities": 0, - "numCollectedRelationships": 0, -} -`; diff --git a/src/steps/privateca/client.ts b/src/steps/privateca/client.ts index 1b905b58..5dae0bf9 100644 --- a/src/steps/privateca/client.ts +++ b/src/steps/privateca/client.ts @@ -1,67 +1,85 @@ -import { google, privateca_v1beta1 } from 'googleapis'; +import { google, privateca_v1 } from 'googleapis'; import { Client } from '../../google-cloud/client'; export class PrivateCaClient extends Client { - private client = google.privateca({ version: 'v1beta1', retry: false }); + private client = google.privateca({ version: 'v1', retry: false }); async getAuthorityPolicy( - authorityId: string, + caPoolId: string, location: string, - ): Promise { + ): Promise { const auth = await this.getAuthenticatedServiceClient(); - const result = - await this.client.projects.locations.certificateAuthorities.getIamPolicy({ - resource: `projects/${this.projectId}/locations/${location}/certificateAuthorities/${authorityId}`, - auth, - }); + const result = await this.client.projects.locations.caPools.getIamPolicy({ + resource: `projects/${this.projectId}/locations/${location}/caPools/${caPoolId}`, + auth, + }); return result.data; } - async iterateCertificateAuthorities( - callback: ( - data: privateca_v1beta1.Schema$CertificateAuthority, - ) => Promise, + async iterateCaPools( + callback: (data: privateca_v1.Schema$CaPool) => Promise, ): Promise { const auth = await this.getAuthenticatedServiceClient(); await this.iterateApi( async (nextPageToken) => { - return this.client.projects.locations.certificateAuthorities.list({ + return this.client.projects.locations.caPools.list({ parent: `projects/${this.projectId}/locations/-`, auth, pageToken: nextPageToken, }); }, - async ( - data: privateca_v1beta1.Schema$ListCertificateAuthoritiesResponse, - ) => { - for (const certificateAuthority of data.certificateAuthorities || []) { + async (data: privateca_v1.Schema$ListCaPoolsResponse) => { + for (const certificateAuthority of data.caPools || []) { await callback(certificateAuthority); } }, ); } - async iterateAuthorityCertificates( - caId: string, - caLocation: string, - callback: (data: privateca_v1beta1.Schema$Certificate) => Promise, + async iterateCertificateAuthorities( + caPoolId: string, + location: string, + callback: (data: privateca_v1.Schema$CertificateAuthority) => Promise, ): Promise { const auth = await this.getAuthenticatedServiceClient(); await this.iterateApi( async (nextPageToken) => { - return this.client.projects.locations.certificateAuthorities.certificates.list( + return this.client.projects.locations.caPools.certificateAuthorities.list( { - parent: `projects/${this.projectId}/locations/${caLocation}/certificateAuthorities/${caId}`, + parent: `projects/${this.projectId}/locations/${location}/caPools/${caPoolId}`, auth, pageToken: nextPageToken, }, ); }, - async (data: privateca_v1beta1.Schema$ListCertificatesResponse) => { + async (data: privateca_v1.Schema$ListCertificateAuthoritiesResponse) => { + for (const certificateAuthority of data.certificateAuthorities || []) { + await callback(certificateAuthority); + } + }, + ); + } + + async iterateAuthorityCertificates( + caPoolId: string, + caLocation: string, + callback: (data: privateca_v1.Schema$Certificate) => Promise, + ): Promise { + const auth = await this.getAuthenticatedServiceClient(); + + await this.iterateApi( + async (nextPageToken) => { + return this.client.projects.locations.caPools.certificates.list({ + parent: `projects/${this.projectId}/locations/${caLocation}/caPools/${caPoolId}`, + auth, + pageToken: nextPageToken, + }); + }, + async (data: privateca_v1.Schema$ListCertificatesResponse) => { for (const certificate of data.certificates || []) { await callback(certificate); } diff --git a/src/steps/privateca/constants.ts b/src/steps/privateca/constants.ts index f3513930..4ca8ea9c 100644 --- a/src/steps/privateca/constants.ts +++ b/src/steps/privateca/constants.ts @@ -1,18 +1,60 @@ -export const STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES = - 'fetch-private-ca-certificate-authorities'; -export const STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS = - 'build-private-ca-certificate-authority-bucket-relationships'; -export const STEP_PRIVATE_CA_CERTIFICATES = 'fetch-private-ca-certificates'; +import { RelationshipClass } from '@jupiterone/integration-sdk-core'; +import { StorageEntitiesSpec } from '../storage/constants'; -export const ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY = - 'google_privateca_certificate_authority'; -export const ENTITY_CLASS_PRIVATE_CA_CERTIFICATE_AUTHORITY = 'Service'; +export const PrivatecaSteps = { + STEP_PRIVATE_CA_POOLS: { + id: 'fetch-private-ca-pools', + name: 'Private CA Pool', + }, + STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES: { + id: 'fetch-private-ca-certificate-authorities', + name: 'Private CA Certificate Authorities', + }, + STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS: { + id: 'build-private-ca-certificate-authority-bucket-relationships', + name: 'Build Private CA Certificate Authoritity Bucket Relationships', + }, + STEP_PRIVATE_CA_CERTIFICATES: { + id: 'fetch-private-ca-certificates', + name: 'Private CA Certificates', + }, +}; -export const ENTITY_TYPE_PRIVATE_CA_CERTIFICATE = - 'google_privateca_certificate'; -export const ENTITY_CLASS_PRIVATE_CA_CERTIFICATE = 'Certificate'; +export const PrivatecaEntities = { + PRIVATE_CA_POOL: { + resourceName: 'Private CA Pool', + _type: 'google_privateca_pool', + _class: ['Group'], + }, + PRIVATE_CA_CERTIFICATE_AUTHORITY: { + resourceName: 'Private CA Certificate Authority', + _type: 'google_privateca_certificate_authority', + _class: ['Service'], + }, + PRIVATE_CA_CERTIFICATE: { + resourceName: 'Private CA Certificate', + _type: 'google_privateca_certificate', + _class: ['Certificate'], + }, +}; -export const RELATIONSHIP_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY_CREATED_CERTIFICATE = - 'google_privateca_certificate_authority_created_certificate'; -export const RELATIONSHIP_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY_USES_STORAGE_BUCKET = - 'google_privateca_certificate_authority_uses_storage_bucket'; +export const PrivatecaRelationships = { + PRIVATE_CA_POOL_CERTIFICATE_AUTHORITY: { + _type: 'google_privateca_pool_has_certificate_authority', + _class: RelationshipClass.HAS, + sourceType: PrivatecaEntities.PRIVATE_CA_POOL._type, + targetType: PrivatecaEntities.PRIVATE_CA_CERTIFICATE_AUTHORITY._type, + }, + PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET: { + _type: 'google_privateca_certificate_authority_uses_storage_bucket', + _class: RelationshipClass.USES, + sourceType: PrivatecaEntities.PRIVATE_CA_CERTIFICATE_AUTHORITY._type, + targetType: StorageEntitiesSpec.STORAGE_BUCKET._type, + }, + PRIVATE_CA_CERTIFICATE_AUTHORITY_CERTIFICATE: { + _type: 'google_privateca_certificate_authority_created_certificate', + _class: RelationshipClass.CREATED, + sourceType: PrivatecaEntities.PRIVATE_CA_CERTIFICATE_AUTHORITY._type, + targetType: PrivatecaEntities.PRIVATE_CA_CERTIFICATE._type, + }, +}; diff --git a/src/steps/privateca/converters.test.ts b/src/steps/privateca/converters.test.ts deleted file mode 100644 index 1ff87901..00000000 --- a/src/steps/privateca/converters.test.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { - createCertificateAuthorityEntity, - createCertificateEntity, -} from './converters'; -import { DEFAULT_INTEGRATION_CONFIG_PROJECT_ID } from '../../../test/config'; -import { - getMockCertificate, - getMockCertificateAuthority, -} from '../../../test/mocks'; - -describe('#createCertificateAuthorityEntity', () => { - test('should convert to entity', () => { - expect( - createCertificateAuthorityEntity({ - data: getMockCertificateAuthority(), - projectId: DEFAULT_INTEGRATION_CONFIG_PROJECT_ID, - isPublic: false, - }), - ).toMatchSnapshot(); - }); -}); - -describe('#createCertificateEntity', () => { - test('should convert to entity', () => { - expect( - createCertificateEntity({ - data: getMockCertificate(), - keyAlgorithm: 'RSA_PKCS1_2048_SHA256', - projectId: DEFAULT_INTEGRATION_CONFIG_PROJECT_ID, - }), - ).toMatchSnapshot(); - }); -}); diff --git a/src/steps/privateca/converters.ts b/src/steps/privateca/converters.ts index 751a199f..910a7914 100644 --- a/src/steps/privateca/converters.ts +++ b/src/steps/privateca/converters.ts @@ -1,20 +1,15 @@ import { parseTimePropertyValue } from '@jupiterone/integration-sdk-core'; -import { privateca_v1beta1 } from 'googleapis'; +import { privateca_v1 } from 'googleapis'; import { createGoogleCloudIntegrationEntity } from '../../utils/entity'; import { getGoogleCloudConsoleWebLink } from '../../utils/url'; -import { - ENTITY_CLASS_PRIVATE_CA_CERTIFICATE_AUTHORITY, - ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, - ENTITY_CLASS_PRIVATE_CA_CERTIFICATE, - ENTITY_TYPE_PRIVATE_CA_CERTIFICATE, -} from './constants'; +import { PrivatecaEntities } from './constants'; export function createCertificateAuthorityEntity({ data, projectId, isPublic, }: { - data: privateca_v1beta1.Schema$CertificateAuthority; + data: privateca_v1.Schema$CertificateAuthority; projectId: string; isPublic: boolean; }) { @@ -30,8 +25,8 @@ export function createCertificateAuthorityEntity({ entityData: { source: data, assign: { - _type: ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, - _class: ENTITY_CLASS_PRIVATE_CA_CERTIFICATE_AUTHORITY, + _type: PrivatecaEntities.PRIVATE_CA_CERTIFICATE_AUTHORITY._type, + _class: PrivatecaEntities.PRIVATE_CA_CERTIFICATE_AUTHORITY._class, _key: data.name as string, name: data.name, displayName: data.name as string, @@ -41,7 +36,7 @@ export function createCertificateAuthorityEntity({ type: data.type, tier: data.tier, lifetime: data.lifetime, - subject: data.config?.subjectConfig?.commonName, + subject: data.config?.subjectConfig?.subject?.commonName, 'subject.countryCode': data.config?.subjectConfig?.subject?.countryCode, 'subject.locality': data.config?.subjectConfig?.subject?.locality, 'subject.organization': @@ -60,53 +55,38 @@ export function createCertificateAuthorityEntity({ data.config?.subjectConfig?.subjectAltName?.ipAddresses, 'subjectAltName.uris': data.config?.subjectConfig?.subjectAltName?.uris, 'keyUsage.certSign': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.certSign, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.certSign, 'keyUsage.contentCommitment': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.contentCommitment, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.contentCommitment, 'keyUsage.crlSign': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.crlSign, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.crlSign, 'keyUsage.dataEncipherment': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.dataEncipherment, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.dataEncipherment, 'keyUsage.decipherOnly': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.decipherOnly, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.decipherOnly, 'keyUsage.digitalSignature': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.digitalSignature, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.digitalSignature, 'keyUsage.encipherOnly': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.encipherOnly, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.encipherOnly, 'keyUsage.keyAgreement': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.keyAgreement, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.keyAgreement, 'keyUsage.keyEncipherment': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.keyEncipherment, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.keyEncipherment, 'extendedKeyUsage.clientAuth': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.clientAuth, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.clientAuth, 'extendedKeyUsage.codeSigning': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.codeSigning, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.codeSigning, 'extendedKeyUsage.emailProtection': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.emailProtection, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.emailProtection, 'extendedKeyUsage.ocspSigning': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.ocspSigning, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.ocspSigning, 'extendedKeyUsage.serverAuth': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.serverAuth, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.serverAuth, 'extendedKeyUsage.timeStamping': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.timeStamping, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.timeStamping, keyAlgorithm: data.keySpec?.algorithm, caCertificateAccessUrl: data.accessUrls?.caCertificateAccessUrl, - crlAccessUrl: data.accessUrls?.crlAccessUrl, + crlAccessUrl: data.accessUrls?.crlAccessUrls, state: data.state, webLink: getGoogleCloudConsoleWebLink( `/security/cas/manage/locations/${location}/certificateAuthorities/${authorityId}/details?project=${projectId}`, @@ -124,7 +104,7 @@ export function createCertificateEntity({ keyAlgorithm, projectId, }: { - data: privateca_v1beta1.Schema$Certificate; + data: privateca_v1.Schema$Certificate; keyAlgorithm: string; projectId: string; }) { @@ -141,21 +121,22 @@ export function createCertificateEntity({ entityData: { source: data, assign: { - _type: ENTITY_TYPE_PRIVATE_CA_CERTIFICATE, - _class: ENTITY_CLASS_PRIVATE_CA_CERTIFICATE, + _type: PrivatecaEntities.PRIVATE_CA_CERTIFICATE._type, + _class: PrivatecaEntities.PRIVATE_CA_CERTIFICATE._class, _key: data.name as string, name: data.name, displayName: data.name as string, issuer: data.name?.split('/')[5], + issuerCertificateAuthority: data.issuerCertificateAuthority, alternativeNames: data.certificateDescription?.subjectDescription?.subjectAltName ?.dnsNames, - subject: data.certificateDescription?.subjectDescription?.commonName, + subject: + data.certificateDescription?.subjectDescription?.subject?.commonName, hexSerial: data.certificateDescription?.subjectDescription?.hexSerialNumber, lifetime: data.certificateDescription?.subjectDescription?.lifetime, keyAlgorithm: keyAlgorithm, - publicKeyType: data.certificateDescription?.publicKey?.type, notBeforeTime: parseTimePropertyValue( data.certificateDescription?.subjectDescription?.notBeforeTime, ), @@ -191,50 +172,35 @@ export function createCertificateEntity({ 'subjectAltName.uris': data.certificateDescription?.subjectDescription?.subjectAltName?.uris, 'keyUsage.certSign': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.certSign, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.certSign, 'keyUsage.contentCommitment': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.contentCommitment, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.contentCommitment, 'keyUsage.crlSign': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.crlSign, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.crlSign, 'keyUsage.dataEncipherment': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.dataEncipherment, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.dataEncipherment, 'keyUsage.decipherOnly': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.decipherOnly, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.decipherOnly, 'keyUsage.digitalSignature': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.digitalSignature, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.digitalSignature, 'keyUsage.encipherOnly': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.encipherOnly, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.encipherOnly, 'keyUsage.keyAgreement': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.keyAgreement, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.keyAgreement, 'keyUsage.keyEncipherment': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.baseKeyUsage?.keyEncipherment, + data.config?.x509Config?.keyUsage?.baseKeyUsage?.keyEncipherment, 'extendedKeyUsage.clientAuth': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.clientAuth, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.clientAuth, 'extendedKeyUsage.codeSigning': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.codeSigning, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.codeSigning, 'extendedKeyUsage.emailProtection': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.emailProtection, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.emailProtection, 'extendedKeyUsage.ocspSigning': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.ocspSigning, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.ocspSigning, 'extendedKeyUsage.serverAuth': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.serverAuth, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.serverAuth, 'extendedKeyUsage.timeStamping': - data.config?.reusableConfig?.reusableConfigValues?.keyUsage - ?.extendedKeyUsage?.timeStamping, + data.config?.x509Config?.keyUsage?.extendedKeyUsage?.timeStamping, webLink: getGoogleCloudConsoleWebLink( `/security/cas/certificate/locations/${location}/certificateAuthorities/${authorityId}/certificates/${ceritificateId}?project=${projectId}`, ), @@ -244,3 +210,38 @@ export function createCertificateEntity({ }, }); } + +export const createCaPoolEntity = (caPool: privateca_v1.Schema$CaPool) => { + return createGoogleCloudIntegrationEntity(caPool, { + entityData: { + source: caPool, + assign: { + _class: PrivatecaEntities.PRIVATE_CA_POOL._class, + _type: PrivatecaEntities.PRIVATE_CA_POOL._type, + _key: caPool.name as string, + 'issuancePolicy.allowedIssuanceModes.allowConfigBasedIssuance': + caPool.issuancePolicy?.allowedIssuanceModes?.allowConfigBasedIssuance, + 'issuancePolicy.allowedIssuanceModes.allowCsrBasedIssuance': + caPool.issuancePolicy?.allowedIssuanceModes?.allowCsrBasedIssuance, + 'issuancePolicy.allowedKeyTypes': + caPool.issuancePolicy?.allowedKeyTypes?.map((allowedKeyType) => + JSON.stringify(allowedKeyType), + ), + 'issuancePolicy.baselineValues.additionalExtensions': + caPool.issuancePolicy?.baselineValues?.additionalExtensions?.map( + (additionalExtension) => JSON.stringify(additionalExtension), + ), + 'issuancePolicy.baselineValues.aiaOcspServers': + caPool.issuancePolicy?.baselineValues?.aiaOcspServers, + 'issuancePolicy.baselineValues.caOptions.isCa': + caPool.issuancePolicy?.baselineValues?.caOptions?.isCa, + 'issuancePolicy.maximumLifetime': + caPool.issuancePolicy?.maximumLifetime, + 'publishingOptions.publishCaCert': + caPool.publishingOptions?.publishCaCert, + 'publishingOptions.publishCrl': caPool.publishingOptions?.publishCrl, + tier: caPool.tier, + }, + }, + }); +}; diff --git a/src/steps/privateca/index.test.ts b/src/steps/privateca/index.test.ts deleted file mode 100644 index df833e08..00000000 --- a/src/steps/privateca/index.test.ts +++ /dev/null @@ -1,384 +0,0 @@ -import { - createMockStepExecutionContext, - Recording, -} from '@jupiterone/integration-sdk-testing'; -import { integrationConfig } from '../../../test/config'; -import { setupGoogleCloudRecording } from '../../../test/recording'; -import { IntegrationConfig } from '../../types'; -import { - buildCertificateAuthorityBucketRelationships, - fetchAuthorityCertificates, - fetchCertificateAuthorities, -} from '.'; -import { fetchStorageBuckets } from '../storage'; -import { - ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, - ENTITY_TYPE_PRIVATE_CA_CERTIFICATE, - RELATIONSHIP_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY_USES_STORAGE_BUCKET, - RELATIONSHIP_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY_CREATED_CERTIFICATE, -} from './constants'; - -const tempNewAccountConfig = { - ...integrationConfig, - serviceAccountKeyFile: integrationConfig.serviceAccountKeyFile.replace( - 'j1-gc-integration-dev-v2', - 'j1-gc-integration-dev-v3', - ), - serviceAccountKeyConfig: { - ...integrationConfig.serviceAccountKeyConfig, - project_id: 'j1-gc-integration-dev-v3', - }, -}; - -describe('#fetchCertificateAuthorities', () => { - let recording: Recording; - - beforeEach(() => { - recording = setupGoogleCloudRecording({ - directory: __dirname, - name: 'fetchCertificateAuthorities', - }); - }); - - afterEach(async () => { - await recording.stop(); - }); - - test('should collect data', async () => { - const context = createMockStepExecutionContext({ - instanceConfig: tempNewAccountConfig, - }); - - await fetchCertificateAuthorities(context); - - expect({ - numCollectedEntities: context.jobState.collectedEntities.length, - numCollectedRelationships: context.jobState.collectedRelationships.length, - collectedEntities: context.jobState.collectedEntities, - collectedRelationships: context.jobState.collectedRelationships, - encounteredTypes: context.jobState.encounteredTypes, - }).toMatchSnapshot(); - - expect( - context.jobState.collectedEntities.filter( - (e) => e._type === ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, - ), - ).toMatchGraphObjectSchema({ - _class: ['Service'], - schema: { - additionalProperties: false, - properties: { - _type: { const: 'google_privateca_certificate_authority' }, - _rawData: { - type: 'array', - items: { type: 'object' }, - }, - name: { type: 'string' }, - displayName: { type: 'string' }, - public: { type: 'boolean' }, - category: { - type: 'array', - items: { type: 'string' }, - }, - type: { type: 'string' }, - tier: { type: 'string' }, - lifetime: { type: 'string' }, - subject: { type: 'string' }, - 'subject.countryCode': { type: 'string' }, - 'subject.locality': { type: 'string' }, - 'subject.organization': { type: 'string' }, - 'subject.organizationalUnit': { type: 'string' }, - 'subject.postalCode': { type: 'string' }, - 'subject.province': { type: 'string' }, - 'subject.streetAddress': { type: 'string' }, - 'subjectAltName.dnsNames': { - type: 'array', - items: { type: 'string' }, - }, - 'subjectAltName.emailAddresses': { - type: 'array', - items: { type: 'string' }, - }, - 'subjectAltName.ipAddresses': { - type: 'array', - items: { type: 'string' }, - }, - 'subjectAltName.uris': { - type: 'array', - items: { type: 'string' }, - }, - 'keyUsage.certSign': { type: 'boolean' }, - 'keyUsage.contentCommitment': { type: 'boolean' }, - 'keyUsage.crlSign': { type: 'boolean' }, - 'keyUsage.dataEncipherment': { type: 'boolean' }, - 'keyUsage.decipherOnly': { type: 'boolean' }, - 'keyUsage.digitalSignature': { type: 'boolean' }, - 'keyUsage.encipherOnly': { type: 'boolean' }, - 'keyUsage.keyAgreement': { type: 'boolean' }, - 'keyUsage.keyEncipherment': { type: 'boolean' }, - 'extendedKeyUsage.clientAuth': { type: 'boolean' }, - 'extendedKeyUsage.codeSigning': { type: 'boolean' }, - 'extendedKeyUsage.emailProtection': { type: 'boolean' }, - 'extendedKeyUsage.ocspSigning': { type: 'boolean' }, - 'extendedKeyUsage.serverAuth': { type: 'boolean' }, - 'extendedKeyUsage.timeStamping': { type: 'boolean' }, - keyAlgorithm: { type: 'string' }, - caCertificateAccessUrl: { type: 'string' }, - crlAccessUrl: { type: 'string' }, - state: { type: 'string' }, - webLink: { type: 'string' }, - createdOn: { type: 'number' }, - updatedOn: { type: 'number' }, - deletedOn: { type: 'number' }, - }, - }, - }); - }); -}); - -describe('#buildCertificateAuthorityBucketRelationships', () => { - let recording: Recording; - - beforeEach(() => { - recording = setupGoogleCloudRecording({ - directory: __dirname, - name: 'buildCertificateAuthorityBucketRelationships', - }); - }); - - afterEach(async () => { - await recording.stop(); - }); - - test('should collect data', async () => { - const context = createMockStepExecutionContext({ - instanceConfig: tempNewAccountConfig, - }); - - await fetchStorageBuckets(context); - await fetchCertificateAuthorities(context); - await buildCertificateAuthorityBucketRelationships(context); - - expect({ - numCollectedEntities: context.jobState.collectedEntities.length, - numCollectedRelationships: context.jobState.collectedRelationships.length, - collectedEntities: context.jobState.collectedEntities, - collectedRelationships: context.jobState.collectedRelationships, - encounteredTypes: context.jobState.encounteredTypes, - }).toMatchSnapshot(); - - expect( - context.jobState.collectedRelationships.filter( - (e) => - e._type === - RELATIONSHIP_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY_USES_STORAGE_BUCKET, - ), - ).toMatchDirectRelationshipSchema({ - schema: { - properties: { - _class: { const: 'USES' }, - _type: { - const: 'google_privateca_certificate_authority_uses_storage_bucket', - }, - }, - }, - }); - }); -}); - -describe('#fetchAuthorityCertificates', () => { - let recording: Recording; - - beforeEach(() => { - recording = setupGoogleCloudRecording({ - directory: __dirname, - name: 'fetchAuthorityCertificates', - }); - }); - - afterEach(async () => { - await recording.stop(); - }); - - test('should collect data', async () => { - const context = createMockStepExecutionContext({ - instanceConfig: integrationConfig, - }); - - await fetchCertificateAuthorities(context); - await fetchAuthorityCertificates(context); - - expect({ - numCollectedEntities: context.jobState.collectedEntities.length, - numCollectedRelationships: context.jobState.collectedRelationships.length, - collectedEntities: context.jobState.collectedEntities, - collectedRelationships: context.jobState.collectedRelationships, - encounteredTypes: context.jobState.encounteredTypes, - }).toMatchSnapshot(); - - expect( - context.jobState.collectedEntities.filter( - (e) => e._type === ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, - ), - ).toMatchGraphObjectSchema({ - _class: ['Service'], - schema: { - additionalProperties: false, - properties: { - _type: { const: 'google_privateca_certificate_authority' }, - _rawData: { - type: 'array', - items: { type: 'object' }, - }, - name: { type: 'string' }, - displayName: { type: 'string' }, - public: { type: 'boolean' }, - category: { - type: 'array', - items: { type: 'string' }, - }, - type: { type: 'string' }, - tier: { type: 'string' }, - lifetime: { type: 'string' }, - subject: { type: 'string' }, - 'subject.countryCode': { type: 'string' }, - 'subject.locality': { type: 'string' }, - 'subject.organization': { type: 'string' }, - 'subject.organizationalUnit': { type: 'string' }, - 'subject.postalCode': { type: 'string' }, - 'subject.province': { type: 'string' }, - 'subject.streetAddress': { type: 'string' }, - 'subjectAltName.dnsNames': { - type: 'array', - items: { type: 'string' }, - }, - 'subjectAltName.emailAddresses': { - type: 'array', - items: { type: 'string' }, - }, - 'subjectAltName.ipAddresses': { - type: 'array', - items: { type: 'string' }, - }, - 'subjectAltName.uris': { - type: 'array', - items: { type: 'string' }, - }, - 'keyUsage.certSign': { type: 'boolean' }, - 'keyUsage.contentCommitment': { type: 'boolean' }, - 'keyUsage.crlSign': { type: 'boolean' }, - 'keyUsage.dataEncipherment': { type: 'boolean' }, - 'keyUsage.decipherOnly': { type: 'boolean' }, - 'keyUsage.digitalSignature': { type: 'boolean' }, - 'keyUsage.encipherOnly': { type: 'boolean' }, - 'keyUsage.keyAgreement': { type: 'boolean' }, - 'keyUsage.keyEncipherment': { type: 'boolean' }, - 'extendedKeyUsage.clientAuth': { type: 'boolean' }, - 'extendedKeyUsage.codeSigning': { type: 'boolean' }, - 'extendedKeyUsage.emailProtection': { type: 'boolean' }, - 'extendedKeyUsage.ocspSigning': { type: 'boolean' }, - 'extendedKeyUsage.serverAuth': { type: 'boolean' }, - 'extendedKeyUsage.timeStamping': { type: 'boolean' }, - keyAlgorithm: { type: 'string' }, - caCertificateAccessUrl: { type: 'string' }, - crlAccessUrl: { type: 'string' }, - state: { type: 'string' }, - webLink: { type: 'string' }, - createdOn: { type: 'number' }, - updatedOn: { type: 'number' }, - deletedOn: { type: 'number' }, - }, - }, - }); - - expect( - context.jobState.collectedEntities.filter( - (e) => e._type === ENTITY_TYPE_PRIVATE_CA_CERTIFICATE, - ), - ).toMatchGraphObjectSchema({ - _class: ['Certificate'], - schema: { - additionalProperties: false, - properties: { - _type: { const: 'google_privateca_certificate' }, - _rawData: { - type: 'array', - items: { type: 'object' }, - }, - name: { type: 'string' }, - displayName: { type: 'string' }, - issuer: { type: 'string' }, - alternativeNames: { - type: 'array', - items: { type: 'string' }, - }, - subject: { type: 'string' }, - hexSerial: { type: 'string' }, - lifetime: { type: 'string' }, - keyAlgorithm: { type: 'string' }, - publicKeyType: { type: 'string' }, - notBeforeTime: { type: 'number' }, - notAfterTime: { type: 'number' }, - 'subject.countryCode': { type: 'string' }, - 'subject.locality': { type: 'string' }, - 'subject.organization': { type: 'string' }, - 'subject.organizationalUnit': { type: 'string' }, - 'subject.postalCode': { type: 'string' }, - 'subject.province': { type: 'string' }, - 'subject.streetAddress': { type: 'string' }, - 'subjectAltName.dnsNames': { - type: 'array', - items: { type: 'string' }, - }, - 'subjectAltName.emailAddresses': { - type: 'array', - items: { type: 'string' }, - }, - 'subjectAltName.ipAddresses': { - type: 'array', - items: { type: 'string' }, - }, - 'subjectAltName.uris': { - type: 'array', - items: { type: 'string' }, - }, - 'keyUsage.certSign': { type: 'boolean' }, - 'keyUsage.contentCommitment': { type: 'boolean' }, - 'keyUsage.crlSign': { type: 'boolean' }, - 'keyUsage.dataEncipherment': { type: 'boolean' }, - 'keyUsage.decipherOnly': { type: 'boolean' }, - 'keyUsage.digitalSignature': { type: 'boolean' }, - 'keyUsage.encipherOnly': { type: 'boolean' }, - 'keyUsage.keyAgreement': { type: 'boolean' }, - 'keyUsage.keyEncipherment': { type: 'boolean' }, - 'extendedKeyUsage.clientAuth': { type: 'boolean' }, - 'extendedKeyUsage.codeSigning': { type: 'boolean' }, - 'extendedKeyUsage.emailProtection': { type: 'boolean' }, - 'extendedKeyUsage.ocspSigning': { type: 'boolean' }, - 'extendedKeyUsage.serverAuth': { type: 'boolean' }, - 'extendedKeyUsage.timeStamping': { type: 'boolean' }, - webLink: { type: 'string' }, - createdOn: { type: 'number' }, - updatedOn: { type: 'number' }, - }, - }, - }); - - expect( - context.jobState.collectedRelationships.filter( - (e) => - e._type === - RELATIONSHIP_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY_CREATED_CERTIFICATE, - ), - ).toMatchDirectRelationshipSchema({ - schema: { - properties: { - _class: { const: 'CREATED' }, - _type: { - const: 'google_privateca_certificate_authority_created_certificate', - }, - }, - }, - }); - }); -}); diff --git a/src/steps/privateca/index.ts b/src/steps/privateca/index.ts index 63f0fe98..87f98853 100644 --- a/src/steps/privateca/index.ts +++ b/src/steps/privateca/index.ts @@ -1,226 +1,16 @@ -import { - createDirectRelationship, - getRawData, - RelationshipClass, -} from '@jupiterone/integration-sdk-core'; -import { privateca_v1beta1 } from 'googleapis'; -import { - GoogleCloudIntegrationStep, - IntegrationStepContext, -} from '../../types'; -import { isMemberPublic } from '../../utils/iam'; -import { PrivateCaClient } from './client'; -import { - STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES, - STEP_PRIVATE_CA_CERTIFICATES, - ENTITY_CLASS_PRIVATE_CA_CERTIFICATE_AUTHORITY, - ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, - ENTITY_CLASS_PRIVATE_CA_CERTIFICATE, - ENTITY_TYPE_PRIVATE_CA_CERTIFICATE, - RELATIONSHIP_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY_CREATED_CERTIFICATE, - RELATIONSHIP_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY_USES_STORAGE_BUCKET, - STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS, -} from './constants'; -import { - createCertificateAuthorityEntity, - createCertificateEntity, -} from './converters'; -import { getCloudStorageBucketKey } from '../storage/converters'; -import { StorageEntitiesSpec, StorageStepsSpec } from '../storage/constants'; - -function isCertificateAuthorityPolicyPublicAccess( - caPolicy: privateca_v1beta1.Schema$Policy, -): boolean { - for (const binding of caPolicy.bindings || []) { - for (const member of binding.members || []) { - if (isMemberPublic(member)) { - return true; - } - } - } - - return false; -} - -export async function fetchCertificateAuthorities( - context: IntegrationStepContext, -): Promise { - const { - jobState, - instance: { config }, - } = context; - - const client = new PrivateCaClient({ config }); - - await client.iterateCertificateAuthorities(async (certificateAuthority) => { - const authorityId = certificateAuthority.name?.split('/')[5]; - const location = certificateAuthority.name?.split('/')[3]; - - const policy = await client.getAuthorityPolicy( - authorityId as string, - location as string, - ); - - const caEntity = createCertificateAuthorityEntity({ - data: certificateAuthority, - projectId: client.projectId, - isPublic: isCertificateAuthorityPolicyPublicAccess(policy), - }); - await jobState.addEntity(caEntity); - }); -} - -export async function buildCertificateAuthorityBucketRelationships( - context: IntegrationStepContext, -): Promise { - const { jobState, logger } = context; +import { IntegrationStep } from '@jupiterone/integration-sdk-core'; - await jobState.iterateEntities( - { _type: ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY }, - async (caAuthorityEntity) => { - const instance = - getRawData( - caAuthorityEntity, - ); - if (!instance) { - logger.warn( - { - _key: caAuthorityEntity._key, - }, - 'Could not find raw data on certificate authority entity', - ); - return; - } - - const bucketName = instance.gcsBucket; - if (!bucketName) { - return; - } - - const storageBucketEntity = await jobState.findEntity( - getCloudStorageBucketKey(bucketName), - ); - if (!storageBucketEntity) { - return; - } - - await jobState.addRelationship( - createDirectRelationship({ - _class: RelationshipClass.USES, - from: caAuthorityEntity, - to: storageBucketEntity, - }), - ); - }, - ); -} - -export async function fetchAuthorityCertificates( - context: IntegrationStepContext, -): Promise { - const { - jobState, - instance: { config }, - } = context; - - const client = new PrivateCaClient({ config }); - - await jobState.iterateEntities( - { - _type: ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, - }, - async (certificateAuthorityEntity) => { - const caId = (certificateAuthorityEntity.name as string).split('/')[5]; - const caLocation = (certificateAuthorityEntity.name as string).split( - '/', - )[3]; - - await client.iterateAuthorityCertificates( - caId, - caLocation, - async (certificate) => { - const certificateEntity = createCertificateEntity({ - data: certificate, - keyAlgorithm: certificateAuthorityEntity.keyAlgorithm as string, - projectId: client.projectId, - }); - - await jobState.addEntity(certificateEntity); - - await jobState.addRelationship( - createDirectRelationship({ - _class: RelationshipClass.CREATED, - from: certificateAuthorityEntity, - to: certificateEntity, - }), - ); - }, - ); - }, - ); -} - -export const privateCaSteps: GoogleCloudIntegrationStep[] = [ - { - id: STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES, - name: 'Private CA Certificate Authorities', - entities: [ - { - resourceName: 'Private CA Certificate Authority', - _type: ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, - _class: ENTITY_CLASS_PRIVATE_CA_CERTIFICATE_AUTHORITY, - }, - ], - relationships: [], - dependsOn: [], - executionHandler: fetchCertificateAuthorities, - permissions: [ - 'privateca.certificateAuthorities.getIamPolicy', - 'privateca.certificateAuthorities.list', - ], - apis: ['privateca.googleapis.com'], - }, - { - id: STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS, - name: 'Build Private CA Certificate Authoritity Bucket Relationships', - entities: [], - relationships: [ - { - _class: RelationshipClass.USES, - _type: - RELATIONSHIP_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY_USES_STORAGE_BUCKET, - sourceType: ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, - targetType: StorageEntitiesSpec.STORAGE_BUCKET._type, - }, - ], - dependsOn: [ - STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES, - StorageStepsSpec.FETCH_STORAGE_BUCKETS.id, - ], - executionHandler: buildCertificateAuthorityBucketRelationships, - }, - { - id: STEP_PRIVATE_CA_CERTIFICATES, - name: 'Private CA Certificates', - entities: [ - { - resourceName: 'Private CA Certificate', - _type: ENTITY_TYPE_PRIVATE_CA_CERTIFICATE, - _class: ENTITY_CLASS_PRIVATE_CA_CERTIFICATE, - }, - ], - relationships: [ - { - _class: RelationshipClass.CREATED, - _type: - RELATIONSHIP_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY_CREATED_CERTIFICATE, - sourceType: ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, - targetType: ENTITY_TYPE_PRIVATE_CA_CERTIFICATE, - }, - ], - dependsOn: [STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES], - executionHandler: fetchAuthorityCertificates, - permissions: ['privateca.certificates.list'], - apis: ['privateca.googleapis.com'], - }, +import { fetchCaPoolsStepMap } from './steps/fetchCaPools'; +import { IntegrationConfig } from '../../types'; +import { + buildCertificateAuthorityBucketRelationshipsStepMap, + fetchAuthorityCertificatesStepMap, +} from './steps/fetchAuthorityCertificates'; +import { fetchCertificateAuthoritiesStepMap } from './steps/fetchCertificateAuthorities'; + +export const privateCaSteps: IntegrationStep[] = [ + fetchCaPoolsStepMap, + fetchAuthorityCertificatesStepMap, + fetchCertificateAuthoritiesStepMap, + buildCertificateAuthorityBucketRelationshipsStepMap, ]; diff --git a/src/steps/privateca/__recordings__/buildCertificateAuthorityBucketRelationships_1185689588/recording.har b/src/steps/privateca/steps/__recordings__/build-private-ca-certificate-authority-bucket-relationships_3258066049/recording.har similarity index 51% rename from src/steps/privateca/__recordings__/buildCertificateAuthorityBucketRelationships_1185689588/recording.har rename to src/steps/privateca/steps/__recordings__/build-private-ca-certificate-authority-bucket-relationships_3258066049/recording.har index 99e77cd8..5c2bd952 100644 --- a/src/steps/privateca/__recordings__/buildCertificateAuthorityBucketRelationships_1185689588/recording.har +++ b/src/steps/privateca/steps/__recordings__/build-private-ca-certificate-authority-bucket-relationships_3258066049/recording.har @@ -1,10 +1,10 @@ { "log": { - "_recordingName": "buildCertificateAuthorityBucketRelationships", + "_recordingName": "build-private-ca-certificate-authority-bucket-relationships", "creator": { "comment": "persister:JupiterOneIntegationFSPersister", "name": "Polly.JS", - "version": "5.1.1" + "version": "6.0.5" }, "entries": [ { @@ -12,7 +12,7 @@ "_order": 0, "cache": {}, "request": { - "bodySize": 739, + "bodySize": 709, "cookies": [], "headers": [ { @@ -28,7 +28,7 @@ { "_fromType": "array", "name": "content-length", - "value": "739" + "value": "709" }, { "_fromType": "array", @@ -62,10 +62,11 @@ "url": "https://www.googleapis.com/oauth2/v4/token" }, "response": { - "bodySize": 584, + "bodySize": 1211, "content": { + "encoding": "utf-8", "mimeType": "application/json; charset=UTF-8", - "size": 584, + "size": 1211, "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" }, "cookies": [], @@ -80,7 +81,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:38:57 GMT" + "value": "Thu, 20 Apr 2023 15:23:19 GMT" }, { "name": "server", @@ -104,21 +105,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 506, + "headersSize": 390, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:38:56.981Z", - "time": 294, + "startedDateTime": "2023-04-20T15:23:19.621Z", + "time": 178, "timings": { "blocked": -1, "connect": -1, @@ -126,11 +127,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 294 + "wait": 178 } }, { - "_id": "7109c375aded16ca2d1083cd0aa7d706", + "_id": "8c3accf112bb6587d672fc0043521b03", "_order": 0, "cache": {}, "request": { @@ -140,7 +141,1079 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1363, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/-/caPools" + }, + "response": { + "bodySize": 366, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 366, + "text": "{\"caPools\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}},{\"name\":\"projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}},{\"name\":\"projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:21 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:19.807Z", + "time": 1940, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1940 + } + }, + { + "_id": "acea721c8193b51ced888cae721cc423", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 709, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-length", + "value": "709" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip,deflate" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "www.googleapis.com" + } + ], + "headersSize": 300, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "[REDACTED]" + }, + "queryString": [], + "url": "https://www.googleapis.com/oauth2/v4/token" + }, + "response": { + "bodySize": 1181, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 1181, + "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:21 GMT" + }, + { + "name": "server", + "value": "scaffolding on HTTPServer2" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 390, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:21.768Z", + "time": 100, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 100 + } + }, + { + "_id": "1fc684aaa6b52a8b8cfcd89b08488a0e", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1411, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1/certificateAuthorities" + }, + "response": { + "bodySize": 2957, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 2957, + "text": "{\"certificateAuthorities\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1/certificateAuthorities/20230413-a8z-9di\",\"type\":\"SELF_SIGNED\",\"config\":{\"subjectConfig\":{\"subject\":{\"commonName\":\"j1\",\"organization\":\"j1\"}},\"x509Config\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}}},\"lifetime\":\"315360000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_2048_SHA256\"},\"tier\":\"ENTERPRISE\",\"state\":\"ENABLED\",\"pemCaCertificates\":[\"-----BEGIN CERTIFICATE-----\\nMIIDJTCCAg2gAwIBAgIUAPuWCbw2l+NT09WIkQI/1jGpx/EwDQYJKoZIhvcNAQEL\\nBQAwGjELMAkGA1UEChMCajExCzAJBgNVBAMTAmoxMB4XDTIzMDQxMzIwMjMyNVoX\\nDTMzMDQxMDIwMjMyNFowGjELMAkGA1UEChMCajExCzAJBgNVBAMTAmoxMIIBIjAN\\nBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqeW8YrkHEe8/4K6sgni8TyE0z5U3\\nnDi5CiRwqEepS9unJoJop5o+x1tnTP2C0/zl8pHqwbnSVXir4CNKiWQ131l2Y9UJ\\nutevweSey+LGXuUj50ZNdtLHiBHUFKD1MWLDJlC84kk1Ebli6M2G2UuECv7ZdZZV\\nVtbpAbIfqKHj3z5GF8fMlPfYJpcf1PxpA8Bah05yDUphMgQxJSUBu3MRtEwHiJ0h\\nMK9HA0s/vPIOWOggOaMwT/0ir/jHK3Z32IuqZV6WfiMaXF8CLBfoOmTBi1BNMF+V\\n2tcSGx4jlGWgz9ySu/BF5Hu7hss95Us6+b8CH/3bMWmEerlGWX99n6vdmQIDAQAB\\no2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU\\n18zqcnm6Tmq1HqGs4mnFZMdZxjIwHwYDVR0jBBgwFoAU18zqcnm6Tmq1HqGs4mnF\\nZMdZxjIwDQYJKoZIhvcNAQELBQADggEBAEbQqKQ0l3LQ+wo3FO+yqh/EWLiqBuVy\\nW3Dr007Gft6W+kbRkfg94FCKhGaZGrE7K07OWMxEf1uO1ScoHXY5HYlbySfYwzl5\\nkionXz0d4yfN8NZjCOTgZHXxtTsx/M5kbzP+kwGe1hPzeHhx20bKkt1Af3Zakzqg\\n+zJ2Vh98i8dM0w4GowxpDS+H552YufQ7V/ON4tkKN6+KNGW7BVLdao6MjNttuGCp\\n8p4mLMjqhsGv+pOz2gKUDU8bf4rYM4kMHs13LEQL6MvEgCkcEa5reAUE2H9FQLdq\\nIdj1k/nncAsmyuOkmvrir6yjvhDELDAwmsy595HjYdnJXV39iLJotM4=\\n-----END CERTIFICATE-----\\n\"],\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"commonName\":\"j1\",\"organization\":\"j1\"},\"subjectAltName\":{},\"hexSerialNumber\":\"00fb9609bc3697e353d3d58891023fd631a9c7f1\",\"lifetime\":\"315360000s\",\"notBeforeTime\":\"2023-04-13T20:23:25.610036274Z\",\"notAfterTime\":\"2033-04-10T20:23:24.610036274Z\"},\"x509Description\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFxZVc4WXJrSEVlOC80SzZzZ25pOApUeUUwejVVM25EaTVDaVJ3cUVlcFM5dW5Kb0pvcDVvK3gxdG5UUDJDMC96bDhwSHF3Ym5TVlhpcjRDTktpV1ExCjMxbDJZOVVKdXRldndlU2V5K0xHWHVVajUwWk5kdExIaUJIVUZLRDFNV0xESmxDODRrazFFYmxpNk0yRzJVdUUKQ3Y3WmRaWlZWdGJwQWJJZnFLSGozejVHRjhmTWxQZllKcGNmMVB4cEE4QmFoMDV5RFVwaE1nUXhKU1VCdTNNUgp0RXdIaUowaE1LOUhBMHMvdlBJT1dPZ2dPYU13VC8waXIvakhLM1ozMkl1cVpWNldmaU1hWEY4Q0xCZm9PbVRCCmkxQk5NRitWMnRjU0d4NGpsR1dnejl5U3UvQkY1SHU3aHNzOTVVczYrYjhDSC8zYk1XbUVlcmxHV1g5OW42dmQKbVFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==\"},\"subjectKeyId\":{\"keyId\":\"d7ccea7279ba4e6ab51ea1ace269c564c759c632\"},\"authorityKeyId\":{\"keyId\":\"d7ccea7279ba4e6ab51ea1ace269c564c759c632\"},\"certFingerprint\":{\"sha256Hash\":\"c2cb16a91b1144b23cf209c6bd70792a828b72ac651abbef166d4bbb10dcc44b\"}}],\"accessUrls\":{\"caCertificateAccessUrl\":\"http://privateca-content-64379f35-0000-2640-b9bc-d4f547fd87ec.storage.googleapis.com/b02b91d2b675a12a1cb6/ca.crt\",\"crlAccessUrls\":[\"http://privateca-content-64379f35-0000-2640-b9bc-d4f547fd87ec.storage.googleapis.com/b02b91d2b675a12a1cb6/crl.crl\"]},\"createTime\":\"2023-04-13T20:23:24.753332573Z\",\"updateTime\":\"2023-04-13T20:43:28.199670268Z\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:22 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:21.874Z", + "time": 909, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 909 + } + }, + { + "_id": "00072863c40154315495ff11a610f12b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1401, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1:getIamPolicy" + }, + "response": { + "bodySize": 77, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 77, + "text": "{\"etag\":\"ACAB\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:23 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:22.795Z", + "time": 1054, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1054 + } + }, + { + "_id": "8962f570ee57399ebff36f53d569ff86", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1406, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2/certificateAuthorities" + }, + "response": { + "bodySize": 2933, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 2933, + "text": "{\"certificateAuthorities\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2/certificateAuthorities/20230413-8bz-u46\",\"type\":\"SELF_SIGNED\",\"config\":{\"subjectConfig\":{\"subject\":{\"commonName\":\"j2\",\"organization\":\"j2\"}},\"x509Config\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}}},\"lifetime\":\"315360000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_2048_SHA256\"},\"tier\":\"ENTERPRISE\",\"state\":\"ENABLED\",\"pemCaCertificates\":[\"-----BEGIN CERTIFICATE-----\\nMIIDJDCCAgygAwIBAgITRbFWob2pccQkAvf7I6eUuLtpTTANBgkqhkiG9w0BAQsF\\nADAaMQswCQYDVQQKEwJqMjELMAkGA1UEAxMCajIwHhcNMjMwNDEzMjAyNDA0WhcN\\nMzMwNDEwMjAyNDAzWjAaMQswCQYDVQQKEwJqMjELMAkGA1UEAxMCajIwggEiMA0G\\nCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbZ+pqNpTGnS67HZHMcR9Ykv/Tu2K7\\nF6kakXZgsBNnSB1cpOTmXaUjG7jbHyUNeEAW0Fx6NcLw5v6qCRCprKl77TzqS8P7\\nafrU6vrjWq6CkG1/rMaXLmP+3wkXSFvcsY/2pZFnr/L/LwciS3GvErqFnTMLsE6Z\\nSIqKgshNiOoy3NyuR9D2/dQa4TL90z2ceaoooZI7UVQ6FcR1DwVdMtWkcIbv49q7\\nl2sQJP4ZAjOWbfRqPv+Lhx1Tflg5wWKiLRVZWGYwK9f0kvHjtNsF63IPkG3T1lHx\\naskdcsRPcYwr3DKWc0Wf2V5zHaIlZ3305BP+ZW6h89iU/gfI7Bkl5YWFAgMBAAGj\\nYzBhMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTz\\ngLco+EXXlaFZiCSpcY2Z2rMgmTAfBgNVHSMEGDAWgBTzgLco+EXXlaFZiCSpcY2Z\\n2rMgmTANBgkqhkiG9w0BAQsFAAOCAQEACXTJ5yTJu+vsROqaAcnsMYZT+WqP36qo\\n1mzR/TXpN70yNDYFOYwMU6lNggCFpNfrh2zQhW1vRCXzZdCJe+s0k4Dxzr4E+wrU\\nBAxb6Xc8cP+9DEIDGH0S5uuxzlPX2gdBzvgmZJVr+CKhvhatE5p4rNzLOpBXmH7s\\nfADu30gkOdpDK59jMwNevheiFwlR7aJtVt9WAyLG5S8W+DHuln4ZmVexXRwkEAof\\nI4zk1SHZ6nRRdC/L0RkgbT13bxumz5oUbDzEPZ95CVZ5HtdF+bNjqoiokpGxBSUn\\nFTzbSZmbutWwK+spzPdz6pfNlW9SpT1ors3JbtJM81BRPRpPhVg/4Q==\\n-----END CERTIFICATE-----\\n\"],\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"commonName\":\"j2\",\"organization\":\"j2\"},\"subjectAltName\":{},\"hexSerialNumber\":\"0045b156a1bda971c42402f7fb23a794b8bb694d\",\"lifetime\":\"315360000s\",\"notBeforeTime\":\"2023-04-13T20:24:04.105825944Z\",\"notAfterTime\":\"2033-04-10T20:24:03.105825944Z\"},\"x509Description\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFtMmZxYWphVXhwMHV1eDJSekhFZgpXSkwvMDd0aXV4ZXBHcEYyWUxBVFowZ2RYS1RrNWwybEl4dTQyeDhsRFhoQUZ0QmNlalhDOE9iK3Fna1FxYXlwCmUrMDg2a3ZEKzJuNjFPcjY0MXF1Z3BCdGY2ekdseTVqL3Q4SkYwaGIzTEdQOXFXUlo2L3kveThISWt0eHJ4SzYKaFowekM3Qk9tVWlLaW9MSVRZanFNdHpjcmtmUTl2M1VHdUV5L2RNOW5IbXFLS0dTTzFGVU9oWEVkUThGWFRMVgpwSENHNytQYXU1ZHJFQ1QrR1FJemxtMzBhajcvaTRjZFUzNVlPY0Zpb2kwVldWaG1NQ3ZYOUpMeDQ3VGJCZXR5CkQ1QnQwOVpSOFdySkhYTEVUM0dNSzl3eWxuTkZuOWxlY3gyaUpXZDk5T1FUL21WdW9mUFlsUDRIeU93WkplV0YKaFFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==\"},\"subjectKeyId\":{\"keyId\":\"f380b728f845d795a1598824a9718d99dab32099\"},\"authorityKeyId\":{\"keyId\":\"f380b728f845d795a1598824a9718d99dab32099\"},\"certFingerprint\":{\"sha256Hash\":\"5472571169df530c08faf9ddf508d4499392711d6dd078d1f8d1f24af6432bd1\"}}],\"accessUrls\":{\"caCertificateAccessUrl\":\"http://privateca-content-64379488-0000-2cd7-b99b-089e082032e8.storage.googleapis.com/74224632056166df8e83/ca.crt\",\"crlAccessUrls\":[\"http://privateca-content-64379488-0000-2cd7-b99b-089e082032e8.storage.googleapis.com/74224632056166df8e83/crl.crl\"]},\"createTime\":\"2023-04-13T20:24:02.540552028Z\",\"updateTime\":\"2023-04-13T22:40:07.726797534Z\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:24 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:23.858Z", + "time": 444, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 444 + } + }, + { + "_id": "74b32ca955d847028363ed3f3a6be139", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1396, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2:getIamPolicy" + }, + "response": { + "bodySize": 67, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 67, + "text": "{\"etag\":\"ACAB\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:25 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:24.309Z", + "time": 707, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 707 + } + }, + { + "_id": "d6484bcf8f5c6e0500e5d31695bfbca1", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1400, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester/certificateAuthorities" + }, + "response": { + "bodySize": 3143, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 3143, + "text": "{\"certificateAuthorities\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester/certificateAuthorities/20230419-5z2-fui\",\"type\":\"SELF_SIGNED\",\"config\":{\"subjectConfig\":{\"subject\":{\"commonName\":\"3\",\"countryCode\":\"de\",\"organization\":\"delet\",\"organizationalUnit\":\"delete\"}},\"x509Config\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}}},\"lifetime\":\"315360000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_2048_SHA256\"},\"tier\":\"ENTERPRISE\",\"state\":\"ENABLED\",\"pemCaCertificates\":[\"-----BEGIN CERTIFICATE-----\\nMIIDZDCCAkygAwIBAgITWNt744CW40RopSrmRf6EmTe19TANBgkqhkiG9w0BAQsF\\nADA6MQswCQYDVQQGEwJkZTEOMAwGA1UEChMFZGVsZXQxDzANBgNVBAsTBmRlbGV0\\nZTEKMAgGA1UEAxMBMzAeFw0yMzA0MTkxOTIzMjJaFw0zMzA0MTYxOTIzMjFaMDox\\nCzAJBgNVBAYTAmRlMQ4wDAYDVQQKEwVkZWxldDEPMA0GA1UECxMGZGVsZXRlMQow\\nCAYDVQQDEwEzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArJno27Rz\\nX5c4T2exBC7+5MceW/wFLoEcpbeONgU755Y3ZxQUOizZXdcowfQc0rJqOlKdIZie\\ny+a0yBhw9DJMpdTS3LQiIcHx36oPCioY+CfcrHKUQrniZCrYeqSu48sV0wZbymhC\\npjFQVuTxnJJhgOKuZeeK/Z7sEENbSE88ITIocgJfHfMzLNIgGwWkczK/tXwK0C0P\\nPhdDMKSZvEr7WJkrf1lf2/9SWRP6VtVXTGbuUALfGT3LxPoWHB6PfF00UgeBA2x1\\nnnzhpFotp1TsAQ+/C1u6ZOcDgRvtECXtydn+bOsyRSA9TBVoaBs9z5zBlz0IQXki\\nKFwDR/udRHz+KQIDAQABo2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUw\\nAwEB/zAdBgNVHQ4EFgQUSTypri4FNg93yPVQb0pOo/yk3jwwHwYDVR0jBBgwFoAU\\nSTypri4FNg93yPVQb0pOo/yk3jwwDQYJKoZIhvcNAQELBQADggEBACjc+e0Y1o5J\\nDF3aE+femup7iSwtMqWdmyuWmBGPim2jp4DUZ38MjIXqNk7a3VPRNmCQFB+mS7qX\\nvXG8jZ4DlT6s8QxUEGRk3ZEOHhsFVrjaNoTqLKLFo3J76Y95skhN1g5CJpp9PMvz\\nKtV3yua200+lNXkW+2hiZXjvR60N/5Q+uD9MWL4L5FEyiodnqUQizb+YGCw5Yd29\\nc+kz5V1xM8aPcxR9mGUM+MPPU1qxHyo5e41QaZgzSz7dqHlhUj3d3s7FDAy1ckFB\\nKFFxa3w6o1UsNCjblGVlPDxhxHo30gXuSGpQW/Ec0z0yXXhgsO54jAxPQKS6u91z\\nWc3MRGYYqXI=\\n-----END CERTIFICATE-----\\n\"],\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"commonName\":\"3\",\"countryCode\":\"de\",\"organization\":\"delet\",\"organizationalUnit\":\"delete\"},\"subjectAltName\":{},\"hexSerialNumber\":\"0058db7be38096e34468a52ae645fe849937b5f5\",\"lifetime\":\"315360000s\",\"notBeforeTime\":\"2023-04-19T19:23:22.848992554Z\",\"notAfterTime\":\"2033-04-16T19:23:21.848992554Z\"},\"x509Description\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFySm5vMjdSelg1YzRUMmV4QkM3Kwo1TWNlVy93RkxvRWNwYmVPTmdVNzU1WTNaeFFVT2l6WlhkY293ZlFjMHJKcU9sS2RJWmlleSthMHlCaHc5REpNCnBkVFMzTFFpSWNIeDM2b1BDaW9ZK0NmY3JIS1VRcm5pWkNyWWVxU3U0OHNWMHdaYnltaENwakZRVnVUeG5KSmgKZ09LdVplZUsvWjdzRUVOYlNFODhJVElvY2dKZkhmTXpMTklnR3dXa2N6Sy90WHdLMEMwUFBoZERNS1NadkVyNwpXSmtyZjFsZjIvOVNXUlA2VnRWWFRHYnVVQUxmR1QzTHhQb1dIQjZQZkYwMFVnZUJBMngxbm56aHBGb3RwMVRzCkFRKy9DMXU2Wk9jRGdSdnRFQ1h0eWRuK2JPc3lSU0E5VEJWb2FCczl6NXpCbHowSVFYa2lLRndEUi91ZFJIeisKS1FJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==\"},\"subjectKeyId\":{\"keyId\":\"493ca9ae2e05360f77c8f5506f4a4ea3fca4de3c\"},\"authorityKeyId\":{\"keyId\":\"493ca9ae2e05360f77c8f5506f4a4ea3fca4de3c\"},\"certFingerprint\":{\"sha256Hash\":\"f567701682e4ef129f96530e1754ad34b0c72ad3ef745719b9e2dfb31d244e0a\"}}],\"gcsBucket\":\"us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\"accessUrls\":{\"caCertificateAccessUrl\":\"http://us.artifacts.j1-gc-integration-dev-v3.appspot.com.storage.googleapis.com/a0ff0c2203b746b52811/ca.crt\",\"crlAccessUrls\":[\"http://us.artifacts.j1-gc-integration-dev-v3.appspot.com.storage.googleapis.com/a0ff0c2203b746b52811/crl.crl\"]},\"createTime\":\"2023-04-19T19:23:21.962930809Z\",\"updateTime\":\"2023-04-19T19:23:25.603901857Z\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:26 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:25.026Z", + "time": 962, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 962 + } + }, + { + "_id": "20b5ce375e07ffa1875948ffffcdd6e1", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1390, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester:getIamPolicy" + }, + "response": { + "bodySize": 77, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 77, + "text": "{\"etag\":\"ACAB\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:27 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:25.996Z", + "time": 1074, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1074 + } + }, + { + "_id": "acea721c8193b51ced888cae721cc423", + "_order": 2, + "cache": {}, + "request": { + "bodySize": 709, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-length", + "value": "709" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip,deflate" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "www.googleapis.com" + } + ], + "headersSize": 300, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "[REDACTED]" + }, + "queryString": [], + "url": "https://www.googleapis.com/oauth2/v4/token" + }, + "response": { + "bodySize": 1269, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 1269, + "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:27 GMT" + }, + { + "name": "server", + "value": "scaffolding on HTTPServer2" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 390, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:27.077Z", + "time": 97, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 97 + } + }, + { + "_id": "65eab8aa31b6c784d5db3b95c3652d13", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -179,11 +1252,12 @@ "url": "https://orgpolicy.googleapis.com/v2/projects/j1-gc-integration-dev-v3/policies/storage.publicAccessPrevention:getEffectivePolicy" }, "response": { - "bodySize": 299, + "bodySize": 199, "content": { + "encoding": "utf-8", "mimeType": "application/json; charset=UTF-8", - "size": 299, - "text": "{\"name\":\"projects/167984947943/policies/storage.publicAccessPrevention\",\"spec\":{\"rules\":[{\"enforce\":true}]}}" + "size": 199, + "text": "{\"name\":\"projects/167984947943/policies/storage.publicAccessPrevention\",\"spec\":{\"rules\":[{\"enforce\":false}]}}" }, "cookies": [], "headers": [ @@ -197,7 +1271,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:38:58 GMT" + "value": "Thu, 20 Apr 2023 15:23:28 GMT" }, { "name": "server", @@ -221,21 +1295,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 483, + "headersSize": 367, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:38:57.308Z", - "time": 856, + "startedDateTime": "2023-04-20T15:23:27.181Z", + "time": 1314, "timings": { "blocked": -1, "connect": -1, @@ -243,15 +1317,15 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 856 + "wait": 1314 } }, { "_id": "acea721c8193b51ced888cae721cc423", - "_order": 1, + "_order": 3, "cache": {}, "request": { - "bodySize": 739, + "bodySize": 709, "cookies": [], "headers": [ { @@ -267,7 +1341,7 @@ { "_fromType": "array", "name": "content-length", - "value": "739" + "value": "709" }, { "_fromType": "array", @@ -301,10 +1375,11 @@ "url": "https://www.googleapis.com/oauth2/v4/token" }, "response": { - "bodySize": 629, + "bodySize": 1238, "content": { + "encoding": "utf-8", "mimeType": "application/json; charset=UTF-8", - "size": 629, + "size": 1238, "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" }, "cookies": [], @@ -319,7 +1394,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:38:58 GMT" + "value": "Thu, 20 Apr 2023 15:23:28 GMT" }, { "name": "server", @@ -343,21 +1418,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 506, + "headersSize": 390, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:38:58.173Z", - "time": 248, + "startedDateTime": "2023-04-20T15:23:28.500Z", + "time": 130, "timings": { "blocked": -1, "connect": -1, @@ -365,11 +1440,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 248 + "wait": 130 } }, { - "_id": "7acf0c9bb840f15466eeca7e82f34b42", + "_id": "e131ee07f47aea1c0b6565a56aa0c9a6", "_order": 0, "cache": {}, "request": { @@ -379,7 +1454,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -423,11 +1498,11 @@ "url": "https://storage.googleapis.com/storage/v1/b?project=j1-gc-integration-dev-v3" }, "response": { - "bodySize": 11569, + "bodySize": 14030, "content": { "mimeType": "application/json; charset=UTF-8", - "size": 11569, - "text": "{\n \"kind\": \"storage#buckets\",\n \"items\": [\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"id\": \"dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"name\": \"dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"EUROPE-NORTH1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-07-20T12:47:31.280Z\",\n \"updated\": \"2021-07-20T12:47:31.280Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-staging-us-central1-167984947943-okmnuod7\",\n \"id\": \"dataproc-staging-us-central1-167984947943-okmnuod7\",\n \"name\": \"dataproc-staging-us-central1-167984947943-okmnuod7\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"7\",\n \"location\": \"US-CENTRAL1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAc=\",\n \"timeCreated\": \"2021-07-20T12:47:10.911Z\",\n \"updated\": \"2021-09-08T17:19:48.039Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-temp-europe-north1-167984947943-0quq0oz0\",\n \"id\": \"dataproc-temp-europe-north1-167984947943-0quq0oz0\",\n \"name\": \"dataproc-temp-europe-north1-167984947943-0quq0oz0\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"EUROPE-NORTH1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-07-20T12:47:31.407Z\",\n \"updated\": \"2021-07-20T12:47:31.407Z\",\n \"lifecycle\": {\n \"rule\": [\n {\n \"action\": {\n \"type\": \"Delete\"\n },\n \"condition\": {\n \"age\": 90\n }\n }\n ]\n },\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-temp-us-central1-167984947943-c8nlqeyo\",\n \"id\": \"dataproc-temp-us-central1-167984947943-c8nlqeyo\",\n \"name\": \"dataproc-temp-us-central1-167984947943-c8nlqeyo\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US-CENTRAL1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-07-20T12:47:10.793Z\",\n \"updated\": \"2021-07-20T12:47:10.793Z\",\n \"lifecycle\": {\n \"rule\": [\n {\n \"action\": {\n \"type\": \"Delete\"\n },\n \"condition\": {\n \"age\": 90\n }\n }\n ]\n },\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/example-backend-bucket-1\",\n \"id\": \"example-backend-bucket-1\",\n \"name\": \"example-backend-bucket-1\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"defaultEventBasedHold\": false,\n \"timeCreated\": \"2022-03-16T11:31:39.964Z\",\n \"updated\": \"2022-03-16T11:31:39.964Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": true,\n \"lockedTime\": \"2022-06-14T11:31:39.964Z\"\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": true,\n \"lockedTime\": \"2022-06-14T11:31:39.964Z\"\n },\n \"publicAccessPrevention\": \"enforced\"\n },\n \"locationType\": \"multi-region\",\n \"satisfiesPZS\": false,\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/gcf-sources-167984947943-us-central1\",\n \"id\": \"gcf-sources-167984947943-us-central1\",\n \"name\": \"gcf-sources-167984947943-us-central1\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US-CENTRAL1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-05-31T16:26:23.272Z\",\n \"updated\": \"2021-05-31T16:26:23.272Z\",\n \"cors\": [\n {\n \"origin\": [\n \"https://*.cloud.google.com\",\n \"https://*.corp.google.com\",\n \"https://*.corp.google.com:*\"\n ],\n \"method\": [\n \"GET\"\n ]\n }\n ],\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": true,\n \"lockedTime\": \"2021-08-29T16:26:23.272Z\"\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": true,\n \"lockedTime\": \"2021-08-29T16:26:23.272Z\"\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"id\": \"j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"name\": \"j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-05-31T16:25:51.614Z\",\n \"updated\": \"2021-05-31T16:25:51.614Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-super-secret-stuff\",\n \"id\": \"j1-gc-integration-dev-v3-super-secret-stuff\",\n \"name\": \"j1-gc-integration-dev-v3-super-secret-stuff\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"12\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAw=\",\n \"defaultEventBasedHold\": false,\n \"timeCreated\": \"2021-09-13T22:56:02.534Z\",\n \"updated\": \"2021-10-27T18:29:52.571Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"satisfiesPZS\": false,\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-test-tf-bucket\",\n \"id\": \"j1-gc-integration-dev-v3-test-tf-bucket\",\n \"name\": \"j1-gc-integration-dev-v3-test-tf-bucket\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"2\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAI=\",\n \"timeCreated\": \"2021-07-22T13:15:31.543Z\",\n \"updated\": \"2022-02-07T12:41:33.448Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"enforced\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3.appspot.com\",\n \"id\": \"j1-gc-integration-dev-v3.appspot.com\",\n \"name\": \"j1-gc-integration-dev-v3.appspot.com\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2022-03-16T10:53:36.805Z\",\n \"updated\": \"2022-03-16T10:53:36.805Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3cloudfunctions\",\n \"id\": \"j1-gc-integration-dev-v3cloudfunctions\",\n \"name\": \"j1-gc-integration-dev-v3cloudfunctions\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"5\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAU=\",\n \"timeCreated\": \"2021-05-31T16:25:44.251Z\",\n \"updated\": \"2021-09-13T17:25:24.390Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/staging.j1-gc-integration-dev-v3.appspot.com\",\n \"id\": \"staging.j1-gc-integration-dev-v3.appspot.com\",\n \"name\": \"staging.j1-gc-integration-dev-v3.appspot.com\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2022-03-16T10:53:36.905Z\",\n \"updated\": \"2022-03-16T10:53:36.905Z\",\n \"lifecycle\": {\n \"rule\": [\n {\n \"action\": {\n \"type\": \"Delete\"\n },\n \"condition\": {\n \"age\": 15\n }\n }\n ]\n },\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"id\": \"us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"name\": \"us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-05-31T16:35:42.461Z\",\n \"updated\": \"2021-05-31T16:35:42.461Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n }\n ]\n}\n" + "size": 14030, + "text": "{\n \"kind\": \"storage#buckets\",\n \"items\": [\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"id\": \"dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"name\": \"dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"2\",\n \"location\": \"EUROPE-NORTH1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAI=\",\n \"timeCreated\": \"2021-07-20T12:47:31.280Z\",\n \"updated\": \"2022-09-08T07:30:23.430Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-staging-us-central1-167984947943-okmnuod7\",\n \"id\": \"dataproc-staging-us-central1-167984947943-okmnuod7\",\n \"name\": \"dataproc-staging-us-central1-167984947943-okmnuod7\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"7\",\n \"location\": \"US-CENTRAL1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAc=\",\n \"timeCreated\": \"2021-07-20T12:47:10.911Z\",\n \"updated\": \"2021-09-08T17:19:48.039Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-temp-europe-north1-167984947943-0quq0oz0\",\n \"id\": \"dataproc-temp-europe-north1-167984947943-0quq0oz0\",\n \"name\": \"dataproc-temp-europe-north1-167984947943-0quq0oz0\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"EUROPE-NORTH1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-07-20T12:47:31.407Z\",\n \"updated\": \"2021-07-20T12:47:31.407Z\",\n \"lifecycle\": {\n \"rule\": [\n {\n \"action\": {\n \"type\": \"Delete\"\n },\n \"condition\": {\n \"age\": 90\n }\n }\n ]\n },\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/dataproc-temp-us-central1-167984947943-c8nlqeyo\",\n \"id\": \"dataproc-temp-us-central1-167984947943-c8nlqeyo\",\n \"name\": \"dataproc-temp-us-central1-167984947943-c8nlqeyo\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US-CENTRAL1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-07-20T12:47:10.793Z\",\n \"updated\": \"2021-07-20T12:47:10.793Z\",\n \"lifecycle\": {\n \"rule\": [\n {\n \"action\": {\n \"type\": \"Delete\"\n },\n \"condition\": {\n \"age\": 90\n }\n }\n ]\n },\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/example-backend-bucket-1\",\n \"id\": \"example-backend-bucket-1\",\n \"name\": \"example-backend-bucket-1\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"defaultEventBasedHold\": false,\n \"timeCreated\": \"2022-03-16T11:31:39.964Z\",\n \"updated\": \"2022-03-16T11:31:39.964Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": true,\n \"lockedTime\": \"2022-06-14T11:31:39.964Z\"\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": true,\n \"lockedTime\": \"2022-06-14T11:31:39.964Z\"\n },\n \"publicAccessPrevention\": \"enforced\"\n },\n \"locationType\": \"multi-region\",\n \"satisfiesPZS\": false,\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/gaston-delete\",\n \"id\": \"gaston-delete\",\n \"name\": \"gaston-delete\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2022-11-04T13:12:29.150Z\",\n \"updated\": \"2022-11-04T13:12:29.150Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": true,\n \"lockedTime\": \"2023-02-02T13:12:29.150Z\"\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": true,\n \"lockedTime\": \"2023-02-02T13:12:29.150Z\"\n },\n \"publicAccessPrevention\": \"enforced\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/gcf-sources-167984947943-us-central1\",\n \"id\": \"gcf-sources-167984947943-us-central1\",\n \"name\": \"gcf-sources-167984947943-us-central1\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US-CENTRAL1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2021-05-31T16:26:23.272Z\",\n \"updated\": \"2021-05-31T16:26:23.272Z\",\n \"cors\": [\n {\n \"origin\": [\n \"https://*.cloud.google.com\",\n \"https://*.corp.google.com\",\n \"https://*.corp.google.com:*\"\n ],\n \"method\": [\n \"GET\"\n ]\n }\n ],\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": true,\n \"lockedTime\": \"2021-08-29T16:26:23.272Z\"\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": true,\n \"lockedTime\": \"2021-08-29T16:26:23.272Z\"\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"id\": \"j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"name\": \"j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"2\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAI=\",\n \"timeCreated\": \"2021-05-31T16:25:51.614Z\",\n \"updated\": \"2022-09-30T00:53:34.941Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-super-secret-stuff\",\n \"id\": \"j1-gc-integration-dev-v3-super-secret-stuff\",\n \"name\": \"j1-gc-integration-dev-v3-super-secret-stuff\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"20\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CBQ=\",\n \"defaultEventBasedHold\": false,\n \"timeCreated\": \"2021-09-13T22:56:02.534Z\",\n \"updated\": \"2023-04-19T19:20:57.059Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"satisfiesPZS\": false,\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-test-tf-bucket\",\n \"id\": \"j1-gc-integration-dev-v3-test-tf-bucket\",\n \"name\": \"j1-gc-integration-dev-v3-test-tf-bucket\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"2\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAI=\",\n \"timeCreated\": \"2021-07-22T13:15:31.543Z\",\n \"updated\": \"2022-02-07T12:41:33.448Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"enforced\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3.appspot.com\",\n \"id\": \"j1-gc-integration-dev-v3.appspot.com\",\n \"name\": \"j1-gc-integration-dev-v3.appspot.com\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2022-03-16T10:53:36.805Z\",\n \"updated\": \"2022-03-16T10:53:36.805Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3_cloudbuild\",\n \"id\": \"j1-gc-integration-dev-v3_cloudbuild\",\n \"name\": \"j1-gc-integration-dev-v3_cloudbuild\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"2\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAI=\",\n \"timeCreated\": \"2022-08-17T20:44:36.493Z\",\n \"updated\": \"2023-04-19T19:21:28.774Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3cloudfunctions\",\n \"id\": \"j1-gc-integration-dev-v3cloudfunctions\",\n \"name\": \"j1-gc-integration-dev-v3cloudfunctions\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"5\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAU=\",\n \"timeCreated\": \"2021-05-31T16:25:44.251Z\",\n \"updated\": \"2021-09-13T17:25:24.390Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/nacho_b4dfb99a_e0dc_4668_8d93_a3b6a68842e4\",\n \"id\": \"nacho_b4dfb99a_e0dc_4668_8d93_a3b6a68842e4\",\n \"name\": \"nacho_b4dfb99a_e0dc_4668_8d93_a3b6a68842e4\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US-EAST1\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2022-09-08T07:23:00.011Z\",\n \"updated\": \"2022-09-08T07:23:00.011Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": true,\n \"lockedTime\": \"2022-12-07T07:23:00.011Z\"\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": true,\n \"lockedTime\": \"2022-12-07T07:23:00.011Z\"\n },\n \"publicAccessPrevention\": \"enforced\"\n },\n \"locationType\": \"region\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/staging.j1-gc-integration-dev-v3.appspot.com\",\n \"id\": \"staging.j1-gc-integration-dev-v3.appspot.com\",\n \"name\": \"staging.j1-gc-integration-dev-v3.appspot.com\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"1\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\",\n \"timeCreated\": \"2022-03-16T10:53:36.905Z\",\n \"updated\": \"2022-03-16T10:53:36.905Z\",\n \"lifecycle\": {\n \"rule\": [\n {\n \"action\": {\n \"type\": \"Delete\"\n },\n \"condition\": {\n \"age\": 15\n }\n }\n ]\n },\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n },\n {\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://www.googleapis.com/storage/v1/b/us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"id\": \"us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"name\": \"us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"projectNumber\": \"167984947943\",\n \"metageneration\": \"2\",\n \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAI=\",\n \"timeCreated\": \"2021-05-31T16:35:42.461Z\",\n \"updated\": \"2023-04-19T19:23:21.599Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n },\n \"publicAccessPrevention\": \"inherited\"\n },\n \"locationType\": \"multi-region\",\n \"rpo\": \"DEFAULT\"\n }\n ]\n}\n" }, "cookies": [], "headers": [ @@ -441,7 +1516,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:38:58 GMT" + "value": "Thu, 20 Apr 2023 15:23:30 GMT" }, { "name": "vary", @@ -453,11 +1528,11 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:38:58 GMT" + "value": "Thu, 20 Apr 2023 15:23:30 GMT" }, { "name": "content-length", - "value": "11569" + "value": "14030" }, { "name": "server", @@ -465,21 +1540,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 575, + "headersSize": 455, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:38:58.437Z", - "time": 528, + "startedDateTime": "2023-04-20T15:23:28.636Z", + "time": 1386, "timings": { "blocked": -1, "connect": -1, @@ -487,7 +1562,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 528 + "wait": 1386 } }, { @@ -501,7 +1576,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -540,11 +1615,11 @@ "url": "https://storage.googleapis.com/storage/v1/b/dataproc-staging-europe-north1-167984947943-oqqo30p7/iam" }, "response": { - "bodySize": 502, + "bodySize": 659, "content": { "mimeType": "application/json; charset=UTF-8", - "size": 502, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" + "size": 659, + "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/dataproc-staging-europe-north1-167984947943-oqqo30p7\",\n \"version\": 1,\n \"etag\": \"CAI=\",\n \"bindings\": [\n {\n \"role\": \"roles/iam.securityAdmin\",\n \"members\": [\n \"serviceAccount:167984947943-compute@developer.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" }, "cookies": [], "headers": [ @@ -554,7 +1629,7 @@ }, { "name": "etag", - "value": "CAE=" + "value": "CAI=" }, { "name": "content-type", @@ -562,7 +1637,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:38:59 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "vary", @@ -574,11 +1649,11 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:38:59 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "content-length", - "value": "502" + "value": "659" }, { "name": "server", @@ -586,21 +1661,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 578, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:38:58.972Z", - "time": 314, + "startedDateTime": "2023-04-20T15:23:30.026Z", + "time": 1661, "timings": { "blocked": -1, "connect": -1, @@ -608,7 +1683,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 314 + "wait": 1661 } }, { @@ -622,7 +1697,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -683,7 +1758,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:38:59 GMT" + "value": "Thu, 20 Apr 2023 15:23:30 GMT" }, { "name": "vary", @@ -695,7 +1770,7 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:38:59 GMT" + "value": "Thu, 20 Apr 2023 15:23:30 GMT" }, { "name": "content-length", @@ -707,21 +1782,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 585, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:38:59.364Z", - "time": 452, + "startedDateTime": "2023-04-20T15:23:30.027Z", + "time": 569, "timings": { "blocked": -1, "connect": -1, @@ -729,7 +1804,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 452 + "wait": 569 } }, { @@ -743,7 +1818,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -804,7 +1879,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:00 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "vary", @@ -816,7 +1891,7 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:00 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "content-length", @@ -828,21 +1903,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 578, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:38:59.819Z", - "time": 361, + "startedDateTime": "2023-04-20T15:23:30.028Z", + "time": 1669, "timings": { "blocked": -1, "connect": -1, @@ -850,7 +1925,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 361 + "wait": 1669 } }, { @@ -864,7 +1939,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -925,7 +2000,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:00 GMT" + "value": "Thu, 20 Apr 2023 15:23:30 GMT" }, { "name": "vary", @@ -937,7 +2012,7 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:00 GMT" + "value": "Thu, 20 Apr 2023 15:23:30 GMT" }, { "name": "content-length", @@ -949,21 +2024,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 578, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:00.183Z", - "time": 431, + "startedDateTime": "2023-04-20T15:23:30.029Z", + "time": 567, "timings": { "blocked": -1, "connect": -1, @@ -971,7 +2046,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 431 + "wait": 567 } }, { @@ -985,7 +2060,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -1046,7 +2121,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:01 GMT" + "value": "Thu, 20 Apr 2023 15:23:30 GMT" }, { "name": "vary", @@ -1058,7 +2133,7 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:01 GMT" + "value": "Thu, 20 Apr 2023 15:23:30 GMT" }, { "name": "content-length", @@ -1070,21 +2145,142 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 465, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:30.030Z", + "time": 336, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 336 + } + }, + { + "_id": "410808d7e83a84ddb3b216e4a05d0087", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "storage.googleapis.com" + } + ], + "headersSize": 1333, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://storage.googleapis.com/storage/v1/b/gaston-delete/iam" + }, + "response": { + "bodySize": 789, + "content": { + "mimeType": "application/json; charset=UTF-8", + "size": 789, + "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/gaston-delete\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyObjectOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyObjectReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" + }, + "cookies": [], + "headers": [ + { + "name": "x-guploader-uploadid", + "value": "[REDACTED]" + }, + { + "name": "etag", + "value": "CAE=" + }, + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:30 GMT" + }, + { + "name": "vary", + "value": "Origin, X-Origin" + }, + { + "name": "cache-control", + "value": "private, max-age=0, must-revalidate, no-transform" + }, + { + "name": "expires", + "value": "Thu, 20 Apr 2023 15:23:30 GMT" + }, + { + "name": "content-length", + "value": "789" + }, + { + "name": "server", + "value": "UploadServer" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 585, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:00.618Z", - "time": 460, + "startedDateTime": "2023-04-20T15:23:30.372Z", + "time": 495, "timings": { "blocked": -1, "connect": -1, @@ -1092,7 +2288,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 460 + "wait": 495 } }, { @@ -1106,7 +2302,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -1167,7 +2363,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:01 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "vary", @@ -1179,7 +2375,7 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:01 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "content-length", @@ -1191,21 +2387,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 578, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:01.082Z", - "time": 432, + "startedDateTime": "2023-04-20T15:23:30.599Z", + "time": 389, "timings": { "blocked": -1, "connect": -1, @@ -1213,7 +2409,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 432 + "wait": 389 } }, { @@ -1227,7 +2423,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -1270,7 +2466,7 @@ "content": { "mimeType": "application/json; charset=UTF-8", "size": 494, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" + "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3-sink-logging-bucket\",\n \"version\": 1,\n \"etag\": \"CAI=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" }, "cookies": [], "headers": [ @@ -1280,7 +2476,7 @@ }, { "name": "etag", - "value": "CAE=" + "value": "CAI=" }, { "name": "content-type", @@ -1288,7 +2484,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:01 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "vary", @@ -1300,7 +2496,7 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:01 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "content-length", @@ -1312,21 +2508,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 578, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:01.517Z", - "time": 462, + "startedDateTime": "2023-04-20T15:23:30.601Z", + "time": 390, "timings": { "blocked": -1, "connect": -1, @@ -1334,7 +2530,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 462 + "wait": 390 } }, { @@ -1348,7 +2544,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -1387,11 +2583,11 @@ "url": "https://storage.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3-super-secret-stuff/iam" }, "response": { - "bodySize": 669, + "bodySize": 927, "content": { "mimeType": "application/json; charset=UTF-8", - "size": 669, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3-super-secret-stuff\",\n \"version\": 1,\n \"etag\": \"CAw=\",\n \"bindings\": [\n {\n \"role\": \"organizations/958457776463/roles/NothingToSeeHere\",\n \"members\": [\n \"allUsers\",\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" + "size": 927, + "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3-super-secret-stuff\",\n \"version\": 1,\n \"etag\": \"CBQ=\",\n \"bindings\": [\n {\n \"role\": \"organizations/958457776463/roles/NothingToSeeHere\",\n \"members\": [\n \"allUsers\",\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\",\n \"serviceAccount:service-167984947943@gcp-sa-privateca.iam.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/storage.objectAdmin\",\n \"members\": [\n \"serviceAccount:service-167984947943@gcp-sa-privateca.iam.gserviceaccount.com\"\n ]\n }\n ]\n}\n" }, "cookies": [], "headers": [ @@ -1401,7 +2597,7 @@ }, { "name": "etag", - "value": "CAw=" + "value": "CBQ=" }, { "name": "content-type", @@ -1409,7 +2605,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:02 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "vary", @@ -1421,11 +2617,11 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:02 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "content-length", - "value": "669" + "value": "927" }, { "name": "server", @@ -1433,21 +2629,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 585, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:01.981Z", - "time": 526, + "startedDateTime": "2023-04-20T15:23:30.871Z", + "time": 399, "timings": { "blocked": -1, "connect": -1, @@ -1455,7 +2651,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 526 + "wait": 399 } }, { @@ -1469,7 +2665,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -1530,7 +2726,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:02 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "vary", @@ -1542,7 +2738,7 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:02 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "content-length", @@ -1554,21 +2750,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 585, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:02.511Z", - "time": 431, + "startedDateTime": "2023-04-20T15:23:30.995Z", + "time": 375, "timings": { "blocked": -1, "connect": -1, @@ -1576,7 +2772,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 431 + "wait": 375 } }, { @@ -1590,7 +2786,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -1651,7 +2847,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:03 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "vary", @@ -1663,7 +2859,7 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:03 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "content-length", @@ -1675,21 +2871,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 585, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:02.946Z", - "time": 532, + "startedDateTime": "2023-04-20T15:23:30.996Z", + "time": 373, "timings": { "blocked": -1, "connect": -1, @@ -1697,11 +2893,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 532 + "wait": 373 } }, { - "_id": "dfe939f74ed54a9d42ab204fbeb724ed", + "_id": "df9e68b5975c37dcaf0428feaa0b1aa7", "_order": 0, "cache": {}, "request": { @@ -1711,7 +2907,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -1743,18 +2939,18 @@ "value": "storage.googleapis.com" } ], - "headersSize": 1358, + "headersSize": 1355, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3cloudfunctions/iam" + "url": "https://storage.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3_cloudbuild/iam" }, "response": { - "bodySize": 488, + "bodySize": 743, "content": { "mimeType": "application/json; charset=UTF-8", - "size": 488, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3cloudfunctions\",\n \"version\": 1,\n \"etag\": \"CAU=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" + "size": 743, + "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3_cloudbuild\",\n \"version\": 1,\n \"etag\": \"CAI=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\",\n \"serviceAccount:service-167984947943@gcp-sa-privateca.iam.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/storage.objectAdmin\",\n \"members\": [\n \"serviceAccount:service-167984947943@gcp-sa-privateca.iam.gserviceaccount.com\"\n ]\n }\n ]\n}\n" }, "cookies": [], "headers": [ @@ -1764,7 +2960,7 @@ }, { "name": "etag", - "value": "CAU=" + "value": "CAI=" }, { "name": "content-type", @@ -1772,7 +2968,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:03 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "vary", @@ -1784,11 +2980,11 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:03 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "content-length", - "value": "488" + "value": "743" }, { "name": "server", @@ -1796,21 +2992,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 578, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:03.481Z", - "time": 506, + "startedDateTime": "2023-04-20T15:23:31.275Z", + "time": 377, "timings": { "blocked": -1, "connect": -1, @@ -1818,11 +3014,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 506 + "wait": 377 } }, { - "_id": "93cee02f5d8ad6ade0697de1880a136b", + "_id": "dfe939f74ed54a9d42ab204fbeb724ed", "_order": 0, "cache": {}, "request": { @@ -1832,7 +3028,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -1864,18 +3060,18 @@ "value": "storage.googleapis.com" } ], - "headersSize": 1364, + "headersSize": 1358, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/staging.j1-gc-integration-dev-v3.appspot.com/iam" + "url": "https://storage.googleapis.com/storage/v1/b/j1-gc-integration-dev-v3cloudfunctions/iam" }, "response": { - "bodySize": 494, + "bodySize": 488, "content": { "mimeType": "application/json; charset=UTF-8", - "size": 494, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/staging.j1-gc-integration-dev-v3.appspot.com\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" + "size": 488, + "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/j1-gc-integration-dev-v3cloudfunctions\",\n \"version\": 1,\n \"etag\": \"CAU=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" }, "cookies": [], "headers": [ @@ -1885,7 +3081,7 @@ }, { "name": "etag", - "value": "CAE=" + "value": "CAU=" }, { "name": "content-type", @@ -1893,7 +3089,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:04 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "vary", @@ -1905,11 +3101,11 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:04 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "content-length", - "value": "494" + "value": "488" }, { "name": "server", @@ -1917,21 +3113,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 578, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:03.990Z", - "time": 489, + "startedDateTime": "2023-04-20T15:23:31.373Z", + "time": 401, "timings": { "blocked": -1, "connect": -1, @@ -1939,11 +3135,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 489 + "wait": 401 } }, { - "_id": "e6a47336fda03771ef2a23c1c54f6521", + "_id": "e96671a6e9fb70e7c736604b279e825d", "_order": 0, "cache": {}, "request": { @@ -1953,7 +3149,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -1985,18 +3181,18 @@ "value": "storage.googleapis.com" } ], - "headersSize": 1369, + "headersSize": 1362, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://storage.googleapis.com/storage/v1/b/us.artifacts.j1-gc-integration-dev-v3.appspot.com/iam" + "url": "https://storage.googleapis.com/storage/v1/b/nacho_b4dfb99a_e0dc_4668_8d93_a3b6a68842e4/iam" }, "response": { - "bodySize": 499, + "bodySize": 818, "content": { "mimeType": "application/json; charset=UTF-8", - "size": 499, - "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" + "size": 818, + "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/nacho_b4dfb99a_e0dc_4668_8d93_a3b6a68842e4\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyObjectOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyObjectReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" }, "cookies": [], "headers": [ @@ -2014,7 +3210,7 @@ }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:04 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "vary", @@ -2026,11 +3222,11 @@ }, { "name": "expires", - "value": "Wed, 16 Mar 2022 15:39:04 GMT" + "value": "Thu, 20 Apr 2023 15:23:31 GMT" }, { "name": "content-length", - "value": "499" + "value": "818" }, { "name": "server", @@ -2038,21 +3234,21 @@ }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 585, + "headersSize": 463, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:04.481Z", - "time": 469, + "startedDateTime": "2023-04-20T15:23:31.374Z", + "time": 365, "timings": { "blocked": -1, "connect": -1, @@ -2060,41 +3256,41 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 469 + "wait": 365 } }, { - "_id": "acea721c8193b51ced888cae721cc423", - "_order": 2, + "_id": "93cee02f5d8ad6ade0697de1880a136b", + "_order": 0, "cache": {}, "request": { - "bodySize": 739, + "bodySize": 0, "cookies": [], "headers": [ { "_fromType": "array", - "name": "content-type", - "value": "application/x-www-form-urlencoded" + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", - "name": "accept", - "value": "application/json" + "name": "accept-encoding", + "value": "gzip" }, { "_fromType": "array", - "name": "content-length", - "value": "739" + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" }, { "_fromType": "array", - "name": "user-agent", - "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" + "name": "authorization", + "value": "[REDACTED]" }, { "_fromType": "array", - "name": "accept-encoding", - "value": "gzip,deflate" + "name": "accept", + "value": "application/json" }, { "_fromType": "array", @@ -2103,78 +3299,77 @@ }, { "name": "host", - "value": "www.googleapis.com" + "value": "storage.googleapis.com" } ], - "headersSize": 300, + "headersSize": 1364, "httpVersion": "HTTP/1.1", - "method": "POST", - "postData": { - "mimeType": "application/x-www-form-urlencoded", - "params": [], - "text": "[REDACTED]" - }, + "method": "GET", "queryString": [], - "url": "https://www.googleapis.com/oauth2/v4/token" + "url": "https://storage.googleapis.com/storage/v1/b/staging.j1-gc-integration-dev-v3.appspot.com/iam" }, "response": { - "bodySize": 616, + "bodySize": 494, "content": { "mimeType": "application/json; charset=UTF-8", - "size": 616, - "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" + "size": 494, + "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/staging.j1-gc-integration-dev-v3.appspot.com\",\n \"version\": 1,\n \"etag\": \"CAE=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\"\n ]\n }\n ]\n}\n" }, "cookies": [], "headers": [ { - "name": "content-type", - "value": "application/json; charset=UTF-8" + "name": "x-guploader-uploadid", + "value": "[REDACTED]" }, { - "name": "vary", - "value": "Origin, X-Origin, Referer" + "name": "etag", + "value": "CAE=" + }, + { + "name": "content-type", + "value": "application/json; charset=UTF-8" }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:05 GMT" + "value": "Thu, 20 Apr 2023 15:23:32 GMT" }, { - "name": "server", - "value": "scaffolding on HTTPServer2" + "name": "vary", + "value": "Origin, X-Origin" }, { "name": "cache-control", - "value": "private" + "value": "private, max-age=0, must-revalidate, no-transform" }, { - "name": "x-xss-protection", - "value": "0" + "name": "expires", + "value": "Thu, 20 Apr 2023 15:23:32 GMT" }, { - "name": "x-frame-options", - "value": "SAMEORIGIN" + "name": "content-length", + "value": "494" }, { - "name": "x-content-type-options", - "value": "nosniff" + "name": "server", + "value": "UploadServer" }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 506, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:04.961Z", - "time": 241, + "startedDateTime": "2023-04-20T15:23:31.656Z", + "time": 405, "timings": { "blocked": -1, "connect": -1, @@ -2182,11 +3377,11 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 241 + "wait": 405 } }, { - "_id": "3d9ed69941e0a8bbb740f8f44dc81de2", + "_id": "e6a47336fda03771ef2a23c1c54f6521", "_order": 0, "cache": {}, "request": { @@ -2196,7 +3391,7 @@ { "_fromType": "array", "name": "x-goog-api-client", - "value": "gdcl/5.0.2 gl-node/14.18.2 auth/7.1.1" + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" }, { "_fromType": "array", @@ -2225,73 +3420,77 @@ }, { "name": "host", - "value": "privateca.googleapis.com" + "value": "storage.googleapis.com" } ], - "headersSize": 1383, + "headersSize": 1369, "httpVersion": "HTTP/1.1", "method": "GET", "queryString": [], - "url": "https://privateca.googleapis.com/v1beta1/projects/j1-gc-integration-dev-v3/locations/-/certificateAuthorities" + "url": "https://storage.googleapis.com/storage/v1/b/us.artifacts.j1-gc-integration-dev-v3.appspot.com/iam" }, "response": { - "bodySize": 59, + "bodySize": 757, "content": { "mimeType": "application/json; charset=UTF-8", - "size": 59, - "text": "{}" + "size": 757, + "text": "{\n \"kind\": \"storage#policy\",\n \"resourceId\": \"projects/_/buckets/us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\n \"version\": 1,\n \"etag\": \"CAI=\",\n \"bindings\": [\n {\n \"role\": \"roles/storage.legacyBucketOwner\",\n \"members\": [\n \"projectEditor:j1-gc-integration-dev-v3\",\n \"projectOwner:j1-gc-integration-dev-v3\"\n ]\n },\n {\n \"role\": \"roles/storage.legacyBucketReader\",\n \"members\": [\n \"projectViewer:j1-gc-integration-dev-v3\",\n \"serviceAccount:service-167984947943@gcp-sa-privateca.iam.gserviceaccount.com\"\n ]\n },\n {\n \"role\": \"roles/storage.objectAdmin\",\n \"members\": [\n \"serviceAccount:service-167984947943@gcp-sa-privateca.iam.gserviceaccount.com\"\n ]\n }\n ]\n}\n" }, "cookies": [], "headers": [ { - "name": "content-type", - "value": "application/json; charset=UTF-8" + "name": "x-guploader-uploadid", + "value": "[REDACTED]" }, { - "name": "vary", - "value": "Origin, X-Origin, Referer" + "name": "etag", + "value": "CAI=" + }, + { + "name": "content-type", + "value": "application/json; charset=UTF-8" }, { "name": "date", - "value": "Wed, 16 Mar 2022 15:39:06 GMT" + "value": "Thu, 20 Apr 2023 15:23:32 GMT" }, { - "name": "server", - "value": "ESF" + "name": "vary", + "value": "Origin, X-Origin" }, { "name": "cache-control", - "value": "private" + "value": "private, max-age=0, must-revalidate, no-transform" }, { - "name": "x-xss-protection", - "value": "0" + "name": "expires", + "value": "Thu, 20 Apr 2023 15:23:32 GMT" }, { - "name": "x-frame-options", - "value": "SAMEORIGIN" + "name": "content-length", + "value": "757" }, { - "name": "x-content-type-options", - "value": "nosniff" + "name": "server", + "value": "UploadServer" }, { "name": "alt-svc", - "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"" + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" }, { "name": "connection", "value": "close" } ], - "headersSize": 483, + "headersSize": 465, "httpVersion": "HTTP/1.1", "redirectURL": "", "status": 200, "statusText": "OK" }, - "startedDateTime": "2022-03-16T15:39:05.216Z", - "time": 1217, + "startedDateTime": "2023-04-20T15:23:31.690Z", + "time": 372, "timings": { "blocked": -1, "connect": -1, @@ -2299,7 +3498,7 @@ "receive": 0, "send": 0, "ssl": -1, - "wait": 1217 + "wait": 372 } } ], diff --git a/src/steps/privateca/steps/__recordings__/fetch-private-ca-certificate-authorities_3369898126/recording.har b/src/steps/privateca/steps/__recordings__/fetch-private-ca-certificate-authorities_3369898126/recording.har new file mode 100644 index 00000000..1cc2a6a1 --- /dev/null +++ b/src/steps/privateca/steps/__recordings__/fetch-private-ca-certificate-authorities_3369898126/recording.har @@ -0,0 +1,1086 @@ +{ + "log": { + "_recordingName": "fetch-private-ca-certificate-authorities", + "creator": { + "comment": "persister:JupiterOneIntegationFSPersister", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "acea721c8193b51ced888cae721cc423", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 709, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-length", + "value": "709" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip,deflate" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "www.googleapis.com" + } + ], + "headersSize": 300, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "[REDACTED]" + }, + "queryString": [], + "url": "https://www.googleapis.com/oauth2/v4/token" + }, + "response": { + "bodySize": 1258, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 1258, + "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:19 GMT" + }, + { + "name": "server", + "value": "scaffolding on HTTPServer2" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 390, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:19.621Z", + "time": 177, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 177 + } + }, + { + "_id": "8c3accf112bb6587d672fc0043521b03", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1363, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/-/caPools" + }, + "response": { + "bodySize": 441, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 441, + "text": "{\"caPools\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}},{\"name\":\"projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}},{\"name\":\"projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:22 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:19.806Z", + "time": 3004, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 3004 + } + }, + { + "_id": "acea721c8193b51ced888cae721cc423", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 709, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-length", + "value": "709" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip,deflate" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "www.googleapis.com" + } + ], + "headersSize": 300, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "[REDACTED]" + }, + "queryString": [], + "url": "https://www.googleapis.com/oauth2/v4/token" + }, + "response": { + "bodySize": 1276, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 1276, + "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:23 GMT" + }, + { + "name": "server", + "value": "scaffolding on HTTPServer2" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 390, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:22.826Z", + "time": 145, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 145 + } + }, + { + "_id": "1fc684aaa6b52a8b8cfcd89b08488a0e", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1411, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1/certificateAuthorities" + }, + "response": { + "bodySize": 3032, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 3032, + "text": "{\"certificateAuthorities\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1/certificateAuthorities/20230413-a8z-9di\",\"type\":\"SELF_SIGNED\",\"config\":{\"subjectConfig\":{\"subject\":{\"commonName\":\"j1\",\"organization\":\"j1\"}},\"x509Config\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}}},\"lifetime\":\"315360000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_2048_SHA256\"},\"tier\":\"ENTERPRISE\",\"state\":\"ENABLED\",\"pemCaCertificates\":[\"-----BEGIN CERTIFICATE-----\\nMIIDJTCCAg2gAwIBAgIUAPuWCbw2l+NT09WIkQI/1jGpx/EwDQYJKoZIhvcNAQEL\\nBQAwGjELMAkGA1UEChMCajExCzAJBgNVBAMTAmoxMB4XDTIzMDQxMzIwMjMyNVoX\\nDTMzMDQxMDIwMjMyNFowGjELMAkGA1UEChMCajExCzAJBgNVBAMTAmoxMIIBIjAN\\nBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqeW8YrkHEe8/4K6sgni8TyE0z5U3\\nnDi5CiRwqEepS9unJoJop5o+x1tnTP2C0/zl8pHqwbnSVXir4CNKiWQ131l2Y9UJ\\nutevweSey+LGXuUj50ZNdtLHiBHUFKD1MWLDJlC84kk1Ebli6M2G2UuECv7ZdZZV\\nVtbpAbIfqKHj3z5GF8fMlPfYJpcf1PxpA8Bah05yDUphMgQxJSUBu3MRtEwHiJ0h\\nMK9HA0s/vPIOWOggOaMwT/0ir/jHK3Z32IuqZV6WfiMaXF8CLBfoOmTBi1BNMF+V\\n2tcSGx4jlGWgz9ySu/BF5Hu7hss95Us6+b8CH/3bMWmEerlGWX99n6vdmQIDAQAB\\no2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU\\n18zqcnm6Tmq1HqGs4mnFZMdZxjIwHwYDVR0jBBgwFoAU18zqcnm6Tmq1HqGs4mnF\\nZMdZxjIwDQYJKoZIhvcNAQELBQADggEBAEbQqKQ0l3LQ+wo3FO+yqh/EWLiqBuVy\\nW3Dr007Gft6W+kbRkfg94FCKhGaZGrE7K07OWMxEf1uO1ScoHXY5HYlbySfYwzl5\\nkionXz0d4yfN8NZjCOTgZHXxtTsx/M5kbzP+kwGe1hPzeHhx20bKkt1Af3Zakzqg\\n+zJ2Vh98i8dM0w4GowxpDS+H552YufQ7V/ON4tkKN6+KNGW7BVLdao6MjNttuGCp\\n8p4mLMjqhsGv+pOz2gKUDU8bf4rYM4kMHs13LEQL6MvEgCkcEa5reAUE2H9FQLdq\\nIdj1k/nncAsmyuOkmvrir6yjvhDELDAwmsy595HjYdnJXV39iLJotM4=\\n-----END CERTIFICATE-----\\n\"],\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"commonName\":\"j1\",\"organization\":\"j1\"},\"subjectAltName\":{},\"hexSerialNumber\":\"00fb9609bc3697e353d3d58891023fd631a9c7f1\",\"lifetime\":\"315360000s\",\"notBeforeTime\":\"2023-04-13T20:23:25.610036274Z\",\"notAfterTime\":\"2033-04-10T20:23:24.610036274Z\"},\"x509Description\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFxZVc4WXJrSEVlOC80SzZzZ25pOApUeUUwejVVM25EaTVDaVJ3cUVlcFM5dW5Kb0pvcDVvK3gxdG5UUDJDMC96bDhwSHF3Ym5TVlhpcjRDTktpV1ExCjMxbDJZOVVKdXRldndlU2V5K0xHWHVVajUwWk5kdExIaUJIVUZLRDFNV0xESmxDODRrazFFYmxpNk0yRzJVdUUKQ3Y3WmRaWlZWdGJwQWJJZnFLSGozejVHRjhmTWxQZllKcGNmMVB4cEE4QmFoMDV5RFVwaE1nUXhKU1VCdTNNUgp0RXdIaUowaE1LOUhBMHMvdlBJT1dPZ2dPYU13VC8waXIvakhLM1ozMkl1cVpWNldmaU1hWEY4Q0xCZm9PbVRCCmkxQk5NRitWMnRjU0d4NGpsR1dnejl5U3UvQkY1SHU3aHNzOTVVczYrYjhDSC8zYk1XbUVlcmxHV1g5OW42dmQKbVFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==\"},\"subjectKeyId\":{\"keyId\":\"d7ccea7279ba4e6ab51ea1ace269c564c759c632\"},\"authorityKeyId\":{\"keyId\":\"d7ccea7279ba4e6ab51ea1ace269c564c759c632\"},\"certFingerprint\":{\"sha256Hash\":\"c2cb16a91b1144b23cf209c6bd70792a828b72ac651abbef166d4bbb10dcc44b\"}}],\"accessUrls\":{\"caCertificateAccessUrl\":\"http://privateca-content-64379f35-0000-2640-b9bc-d4f547fd87ec.storage.googleapis.com/b02b91d2b675a12a1cb6/ca.crt\",\"crlAccessUrls\":[\"http://privateca-content-64379f35-0000-2640-b9bc-d4f547fd87ec.storage.googleapis.com/b02b91d2b675a12a1cb6/crl.crl\"]},\"createTime\":\"2023-04-13T20:23:24.753332573Z\",\"updateTime\":\"2023-04-13T20:43:28.199670268Z\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:24 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:22.978Z", + "time": 1848, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1848 + } + }, + { + "_id": "00072863c40154315495ff11a610f12b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1401, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1:getIamPolicy" + }, + "response": { + "bodySize": 111, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 111, + "text": "{\"etag\":\"ACAB\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:25 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:24.830Z", + "time": 1045, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1045 + } + }, + { + "_id": "8962f570ee57399ebff36f53d569ff86", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1406, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2/certificateAuthorities" + }, + "response": { + "bodySize": 2933, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 2933, + "text": "{\"certificateAuthorities\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2/certificateAuthorities/20230413-8bz-u46\",\"type\":\"SELF_SIGNED\",\"config\":{\"subjectConfig\":{\"subject\":{\"commonName\":\"j2\",\"organization\":\"j2\"}},\"x509Config\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}}},\"lifetime\":\"315360000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_2048_SHA256\"},\"tier\":\"ENTERPRISE\",\"state\":\"ENABLED\",\"pemCaCertificates\":[\"-----BEGIN CERTIFICATE-----\\nMIIDJDCCAgygAwIBAgITRbFWob2pccQkAvf7I6eUuLtpTTANBgkqhkiG9w0BAQsF\\nADAaMQswCQYDVQQKEwJqMjELMAkGA1UEAxMCajIwHhcNMjMwNDEzMjAyNDA0WhcN\\nMzMwNDEwMjAyNDAzWjAaMQswCQYDVQQKEwJqMjELMAkGA1UEAxMCajIwggEiMA0G\\nCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbZ+pqNpTGnS67HZHMcR9Ykv/Tu2K7\\nF6kakXZgsBNnSB1cpOTmXaUjG7jbHyUNeEAW0Fx6NcLw5v6qCRCprKl77TzqS8P7\\nafrU6vrjWq6CkG1/rMaXLmP+3wkXSFvcsY/2pZFnr/L/LwciS3GvErqFnTMLsE6Z\\nSIqKgshNiOoy3NyuR9D2/dQa4TL90z2ceaoooZI7UVQ6FcR1DwVdMtWkcIbv49q7\\nl2sQJP4ZAjOWbfRqPv+Lhx1Tflg5wWKiLRVZWGYwK9f0kvHjtNsF63IPkG3T1lHx\\naskdcsRPcYwr3DKWc0Wf2V5zHaIlZ3305BP+ZW6h89iU/gfI7Bkl5YWFAgMBAAGj\\nYzBhMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTz\\ngLco+EXXlaFZiCSpcY2Z2rMgmTAfBgNVHSMEGDAWgBTzgLco+EXXlaFZiCSpcY2Z\\n2rMgmTANBgkqhkiG9w0BAQsFAAOCAQEACXTJ5yTJu+vsROqaAcnsMYZT+WqP36qo\\n1mzR/TXpN70yNDYFOYwMU6lNggCFpNfrh2zQhW1vRCXzZdCJe+s0k4Dxzr4E+wrU\\nBAxb6Xc8cP+9DEIDGH0S5uuxzlPX2gdBzvgmZJVr+CKhvhatE5p4rNzLOpBXmH7s\\nfADu30gkOdpDK59jMwNevheiFwlR7aJtVt9WAyLG5S8W+DHuln4ZmVexXRwkEAof\\nI4zk1SHZ6nRRdC/L0RkgbT13bxumz5oUbDzEPZ95CVZ5HtdF+bNjqoiokpGxBSUn\\nFTzbSZmbutWwK+spzPdz6pfNlW9SpT1ors3JbtJM81BRPRpPhVg/4Q==\\n-----END CERTIFICATE-----\\n\"],\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"commonName\":\"j2\",\"organization\":\"j2\"},\"subjectAltName\":{},\"hexSerialNumber\":\"0045b156a1bda971c42402f7fb23a794b8bb694d\",\"lifetime\":\"315360000s\",\"notBeforeTime\":\"2023-04-13T20:24:04.105825944Z\",\"notAfterTime\":\"2033-04-10T20:24:03.105825944Z\"},\"x509Description\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFtMmZxYWphVXhwMHV1eDJSekhFZgpXSkwvMDd0aXV4ZXBHcEYyWUxBVFowZ2RYS1RrNWwybEl4dTQyeDhsRFhoQUZ0QmNlalhDOE9iK3Fna1FxYXlwCmUrMDg2a3ZEKzJuNjFPcjY0MXF1Z3BCdGY2ekdseTVqL3Q4SkYwaGIzTEdQOXFXUlo2L3kveThISWt0eHJ4SzYKaFowekM3Qk9tVWlLaW9MSVRZanFNdHpjcmtmUTl2M1VHdUV5L2RNOW5IbXFLS0dTTzFGVU9oWEVkUThGWFRMVgpwSENHNytQYXU1ZHJFQ1QrR1FJemxtMzBhajcvaTRjZFUzNVlPY0Zpb2kwVldWaG1NQ3ZYOUpMeDQ3VGJCZXR5CkQ1QnQwOVpSOFdySkhYTEVUM0dNSzl3eWxuTkZuOWxlY3gyaUpXZDk5T1FUL21WdW9mUFlsUDRIeU93WkplV0YKaFFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==\"},\"subjectKeyId\":{\"keyId\":\"f380b728f845d795a1598824a9718d99dab32099\"},\"authorityKeyId\":{\"keyId\":\"f380b728f845d795a1598824a9718d99dab32099\"},\"certFingerprint\":{\"sha256Hash\":\"5472571169df530c08faf9ddf508d4499392711d6dd078d1f8d1f24af6432bd1\"}}],\"accessUrls\":{\"caCertificateAccessUrl\":\"http://privateca-content-64379488-0000-2cd7-b99b-089e082032e8.storage.googleapis.com/74224632056166df8e83/ca.crt\",\"crlAccessUrls\":[\"http://privateca-content-64379488-0000-2cd7-b99b-089e082032e8.storage.googleapis.com/74224632056166df8e83/crl.crl\"]},\"createTime\":\"2023-04-13T20:24:02.540552028Z\",\"updateTime\":\"2023-04-13T22:40:07.726797534Z\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:26 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:25.880Z", + "time": 521, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 521 + } + }, + { + "_id": "74b32ca955d847028363ed3f3a6be139", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1396, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2:getIamPolicy" + }, + "response": { + "bodySize": 121, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 121, + "text": "{\"etag\":\"ACAB\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:27 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:26.407Z", + "time": 680, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 680 + } + }, + { + "_id": "d6484bcf8f5c6e0500e5d31695bfbca1", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1400, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester/certificateAuthorities" + }, + "response": { + "bodySize": 3058, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 3058, + "text": "{\"certificateAuthorities\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester/certificateAuthorities/20230419-5z2-fui\",\"type\":\"SELF_SIGNED\",\"config\":{\"subjectConfig\":{\"subject\":{\"commonName\":\"3\",\"countryCode\":\"de\",\"organization\":\"delet\",\"organizationalUnit\":\"delete\"}},\"x509Config\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}}},\"lifetime\":\"315360000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_2048_SHA256\"},\"tier\":\"ENTERPRISE\",\"state\":\"ENABLED\",\"pemCaCertificates\":[\"-----BEGIN CERTIFICATE-----\\nMIIDZDCCAkygAwIBAgITWNt744CW40RopSrmRf6EmTe19TANBgkqhkiG9w0BAQsF\\nADA6MQswCQYDVQQGEwJkZTEOMAwGA1UEChMFZGVsZXQxDzANBgNVBAsTBmRlbGV0\\nZTEKMAgGA1UEAxMBMzAeFw0yMzA0MTkxOTIzMjJaFw0zMzA0MTYxOTIzMjFaMDox\\nCzAJBgNVBAYTAmRlMQ4wDAYDVQQKEwVkZWxldDEPMA0GA1UECxMGZGVsZXRlMQow\\nCAYDVQQDEwEzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArJno27Rz\\nX5c4T2exBC7+5MceW/wFLoEcpbeONgU755Y3ZxQUOizZXdcowfQc0rJqOlKdIZie\\ny+a0yBhw9DJMpdTS3LQiIcHx36oPCioY+CfcrHKUQrniZCrYeqSu48sV0wZbymhC\\npjFQVuTxnJJhgOKuZeeK/Z7sEENbSE88ITIocgJfHfMzLNIgGwWkczK/tXwK0C0P\\nPhdDMKSZvEr7WJkrf1lf2/9SWRP6VtVXTGbuUALfGT3LxPoWHB6PfF00UgeBA2x1\\nnnzhpFotp1TsAQ+/C1u6ZOcDgRvtECXtydn+bOsyRSA9TBVoaBs9z5zBlz0IQXki\\nKFwDR/udRHz+KQIDAQABo2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUw\\nAwEB/zAdBgNVHQ4EFgQUSTypri4FNg93yPVQb0pOo/yk3jwwHwYDVR0jBBgwFoAU\\nSTypri4FNg93yPVQb0pOo/yk3jwwDQYJKoZIhvcNAQELBQADggEBACjc+e0Y1o5J\\nDF3aE+femup7iSwtMqWdmyuWmBGPim2jp4DUZ38MjIXqNk7a3VPRNmCQFB+mS7qX\\nvXG8jZ4DlT6s8QxUEGRk3ZEOHhsFVrjaNoTqLKLFo3J76Y95skhN1g5CJpp9PMvz\\nKtV3yua200+lNXkW+2hiZXjvR60N/5Q+uD9MWL4L5FEyiodnqUQizb+YGCw5Yd29\\nc+kz5V1xM8aPcxR9mGUM+MPPU1qxHyo5e41QaZgzSz7dqHlhUj3d3s7FDAy1ckFB\\nKFFxa3w6o1UsNCjblGVlPDxhxHo30gXuSGpQW/Ec0z0yXXhgsO54jAxPQKS6u91z\\nWc3MRGYYqXI=\\n-----END CERTIFICATE-----\\n\"],\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"commonName\":\"3\",\"countryCode\":\"de\",\"organization\":\"delet\",\"organizationalUnit\":\"delete\"},\"subjectAltName\":{},\"hexSerialNumber\":\"0058db7be38096e34468a52ae645fe849937b5f5\",\"lifetime\":\"315360000s\",\"notBeforeTime\":\"2023-04-19T19:23:22.848992554Z\",\"notAfterTime\":\"2033-04-16T19:23:21.848992554Z\"},\"x509Description\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFySm5vMjdSelg1YzRUMmV4QkM3Kwo1TWNlVy93RkxvRWNwYmVPTmdVNzU1WTNaeFFVT2l6WlhkY293ZlFjMHJKcU9sS2RJWmlleSthMHlCaHc5REpNCnBkVFMzTFFpSWNIeDM2b1BDaW9ZK0NmY3JIS1VRcm5pWkNyWWVxU3U0OHNWMHdaYnltaENwakZRVnVUeG5KSmgKZ09LdVplZUsvWjdzRUVOYlNFODhJVElvY2dKZkhmTXpMTklnR3dXa2N6Sy90WHdLMEMwUFBoZERNS1NadkVyNwpXSmtyZjFsZjIvOVNXUlA2VnRWWFRHYnVVQUxmR1QzTHhQb1dIQjZQZkYwMFVnZUJBMngxbm56aHBGb3RwMVRzCkFRKy9DMXU2Wk9jRGdSdnRFQ1h0eWRuK2JPc3lSU0E5VEJWb2FCczl6NXpCbHowSVFYa2lLRndEUi91ZFJIeisKS1FJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==\"},\"subjectKeyId\":{\"keyId\":\"493ca9ae2e05360f77c8f5506f4a4ea3fca4de3c\"},\"authorityKeyId\":{\"keyId\":\"493ca9ae2e05360f77c8f5506f4a4ea3fca4de3c\"},\"certFingerprint\":{\"sha256Hash\":\"f567701682e4ef129f96530e1754ad34b0c72ad3ef745719b9e2dfb31d244e0a\"}}],\"gcsBucket\":\"us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\"accessUrls\":{\"caCertificateAccessUrl\":\"http://us.artifacts.j1-gc-integration-dev-v3.appspot.com.storage.googleapis.com/a0ff0c2203b746b52811/ca.crt\",\"crlAccessUrls\":[\"http://us.artifacts.j1-gc-integration-dev-v3.appspot.com.storage.googleapis.com/a0ff0c2203b746b52811/crl.crl\"]},\"createTime\":\"2023-04-19T19:23:21.962930809Z\",\"updateTime\":\"2023-04-19T19:23:25.603901857Z\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:28 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:27.094Z", + "time": 954, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 954 + } + }, + { + "_id": "20b5ce375e07ffa1875948ffffcdd6e1", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1390, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester:getIamPolicy" + }, + "response": { + "bodySize": 94, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 94, + "text": "{\"etag\":\"ACAB\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:29 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:28.057Z", + "time": 1965, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1965 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/src/steps/privateca/steps/__recordings__/fetch-private-ca-certificates_4017780347/recording.har b/src/steps/privateca/steps/__recordings__/fetch-private-ca-certificates_4017780347/recording.har new file mode 100644 index 00000000..762f4c6b --- /dev/null +++ b/src/steps/privateca/steps/__recordings__/fetch-private-ca-certificates_4017780347/recording.har @@ -0,0 +1,1563 @@ +{ + "log": { + "_recordingName": "fetch-private-ca-certificates", + "creator": { + "comment": "persister:JupiterOneIntegationFSPersister", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "acea721c8193b51ced888cae721cc423", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 709, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-length", + "value": "709" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip,deflate" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "www.googleapis.com" + } + ], + "headersSize": 300, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "[REDACTED]" + }, + "queryString": [], + "url": "https://www.googleapis.com/oauth2/v4/token" + }, + "response": { + "bodySize": 1272, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 1272, + "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:19 GMT" + }, + { + "name": "server", + "value": "scaffolding on HTTPServer2" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 390, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:19.630Z", + "time": 168, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 168 + } + }, + { + "_id": "8c3accf112bb6587d672fc0043521b03", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1363, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/-/caPools" + }, + "response": { + "bodySize": 366, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 366, + "text": "{\"caPools\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}},{\"name\":\"projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}},{\"name\":\"projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:22 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:19.806Z", + "time": 2987, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 2987 + } + }, + { + "_id": "acea721c8193b51ced888cae721cc423", + "_order": 1, + "cache": {}, + "request": { + "bodySize": 709, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-length", + "value": "709" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip,deflate" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "www.googleapis.com" + } + ], + "headersSize": 300, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "[REDACTED]" + }, + "queryString": [], + "url": "https://www.googleapis.com/oauth2/v4/token" + }, + "response": { + "bodySize": 1228, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 1228, + "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:23 GMT" + }, + { + "name": "server", + "value": "scaffolding on HTTPServer2" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 390, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:22.810Z", + "time": 106, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 106 + } + }, + { + "_id": "1fc684aaa6b52a8b8cfcd89b08488a0e", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1411, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1/certificateAuthorities" + }, + "response": { + "bodySize": 2991, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 2991, + "text": "{\"certificateAuthorities\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1/certificateAuthorities/20230413-a8z-9di\",\"type\":\"SELF_SIGNED\",\"config\":{\"subjectConfig\":{\"subject\":{\"commonName\":\"j1\",\"organization\":\"j1\"}},\"x509Config\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}}},\"lifetime\":\"315360000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_2048_SHA256\"},\"tier\":\"ENTERPRISE\",\"state\":\"ENABLED\",\"pemCaCertificates\":[\"-----BEGIN CERTIFICATE-----\\nMIIDJTCCAg2gAwIBAgIUAPuWCbw2l+NT09WIkQI/1jGpx/EwDQYJKoZIhvcNAQEL\\nBQAwGjELMAkGA1UEChMCajExCzAJBgNVBAMTAmoxMB4XDTIzMDQxMzIwMjMyNVoX\\nDTMzMDQxMDIwMjMyNFowGjELMAkGA1UEChMCajExCzAJBgNVBAMTAmoxMIIBIjAN\\nBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqeW8YrkHEe8/4K6sgni8TyE0z5U3\\nnDi5CiRwqEepS9unJoJop5o+x1tnTP2C0/zl8pHqwbnSVXir4CNKiWQ131l2Y9UJ\\nutevweSey+LGXuUj50ZNdtLHiBHUFKD1MWLDJlC84kk1Ebli6M2G2UuECv7ZdZZV\\nVtbpAbIfqKHj3z5GF8fMlPfYJpcf1PxpA8Bah05yDUphMgQxJSUBu3MRtEwHiJ0h\\nMK9HA0s/vPIOWOggOaMwT/0ir/jHK3Z32IuqZV6WfiMaXF8CLBfoOmTBi1BNMF+V\\n2tcSGx4jlGWgz9ySu/BF5Hu7hss95Us6+b8CH/3bMWmEerlGWX99n6vdmQIDAQAB\\no2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQU\\n18zqcnm6Tmq1HqGs4mnFZMdZxjIwHwYDVR0jBBgwFoAU18zqcnm6Tmq1HqGs4mnF\\nZMdZxjIwDQYJKoZIhvcNAQELBQADggEBAEbQqKQ0l3LQ+wo3FO+yqh/EWLiqBuVy\\nW3Dr007Gft6W+kbRkfg94FCKhGaZGrE7K07OWMxEf1uO1ScoHXY5HYlbySfYwzl5\\nkionXz0d4yfN8NZjCOTgZHXxtTsx/M5kbzP+kwGe1hPzeHhx20bKkt1Af3Zakzqg\\n+zJ2Vh98i8dM0w4GowxpDS+H552YufQ7V/ON4tkKN6+KNGW7BVLdao6MjNttuGCp\\n8p4mLMjqhsGv+pOz2gKUDU8bf4rYM4kMHs13LEQL6MvEgCkcEa5reAUE2H9FQLdq\\nIdj1k/nncAsmyuOkmvrir6yjvhDELDAwmsy595HjYdnJXV39iLJotM4=\\n-----END CERTIFICATE-----\\n\"],\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"commonName\":\"j1\",\"organization\":\"j1\"},\"subjectAltName\":{},\"hexSerialNumber\":\"00fb9609bc3697e353d3d58891023fd631a9c7f1\",\"lifetime\":\"315360000s\",\"notBeforeTime\":\"2023-04-13T20:23:25.610036274Z\",\"notAfterTime\":\"2033-04-10T20:23:24.610036274Z\"},\"x509Description\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFxZVc4WXJrSEVlOC80SzZzZ25pOApUeUUwejVVM25EaTVDaVJ3cUVlcFM5dW5Kb0pvcDVvK3gxdG5UUDJDMC96bDhwSHF3Ym5TVlhpcjRDTktpV1ExCjMxbDJZOVVKdXRldndlU2V5K0xHWHVVajUwWk5kdExIaUJIVUZLRDFNV0xESmxDODRrazFFYmxpNk0yRzJVdUUKQ3Y3WmRaWlZWdGJwQWJJZnFLSGozejVHRjhmTWxQZllKcGNmMVB4cEE4QmFoMDV5RFVwaE1nUXhKU1VCdTNNUgp0RXdIaUowaE1LOUhBMHMvdlBJT1dPZ2dPYU13VC8waXIvakhLM1ozMkl1cVpWNldmaU1hWEY4Q0xCZm9PbVRCCmkxQk5NRitWMnRjU0d4NGpsR1dnejl5U3UvQkY1SHU3aHNzOTVVczYrYjhDSC8zYk1XbUVlcmxHV1g5OW42dmQKbVFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==\"},\"subjectKeyId\":{\"keyId\":\"d7ccea7279ba4e6ab51ea1ace269c564c759c632\"},\"authorityKeyId\":{\"keyId\":\"d7ccea7279ba4e6ab51ea1ace269c564c759c632\"},\"certFingerprint\":{\"sha256Hash\":\"c2cb16a91b1144b23cf209c6bd70792a828b72ac651abbef166d4bbb10dcc44b\"}}],\"accessUrls\":{\"caCertificateAccessUrl\":\"http://privateca-content-64379f35-0000-2640-b9bc-d4f547fd87ec.storage.googleapis.com/b02b91d2b675a12a1cb6/ca.crt\",\"crlAccessUrls\":[\"http://privateca-content-64379f35-0000-2640-b9bc-d4f547fd87ec.storage.googleapis.com/b02b91d2b675a12a1cb6/crl.crl\"]},\"createTime\":\"2023-04-13T20:23:24.753332573Z\",\"updateTime\":\"2023-04-13T20:43:28.199670268Z\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:23 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:22.921Z", + "time": 917, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 917 + } + }, + { + "_id": "00072863c40154315495ff11a610f12b", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1401, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1:getIamPolicy" + }, + "response": { + "bodySize": 138, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 138, + "text": "{\"etag\":\"ACAB\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:24 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:23.846Z", + "time": 1013, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1013 + } + }, + { + "_id": "8962f570ee57399ebff36f53d569ff86", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1406, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2/certificateAuthorities" + }, + "response": { + "bodySize": 2981, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 2981, + "text": "{\"certificateAuthorities\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2/certificateAuthorities/20230413-8bz-u46\",\"type\":\"SELF_SIGNED\",\"config\":{\"subjectConfig\":{\"subject\":{\"commonName\":\"j2\",\"organization\":\"j2\"}},\"x509Config\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}}},\"lifetime\":\"315360000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_2048_SHA256\"},\"tier\":\"ENTERPRISE\",\"state\":\"ENABLED\",\"pemCaCertificates\":[\"-----BEGIN CERTIFICATE-----\\nMIIDJDCCAgygAwIBAgITRbFWob2pccQkAvf7I6eUuLtpTTANBgkqhkiG9w0BAQsF\\nADAaMQswCQYDVQQKEwJqMjELMAkGA1UEAxMCajIwHhcNMjMwNDEzMjAyNDA0WhcN\\nMzMwNDEwMjAyNDAzWjAaMQswCQYDVQQKEwJqMjELMAkGA1UEAxMCajIwggEiMA0G\\nCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbZ+pqNpTGnS67HZHMcR9Ykv/Tu2K7\\nF6kakXZgsBNnSB1cpOTmXaUjG7jbHyUNeEAW0Fx6NcLw5v6qCRCprKl77TzqS8P7\\nafrU6vrjWq6CkG1/rMaXLmP+3wkXSFvcsY/2pZFnr/L/LwciS3GvErqFnTMLsE6Z\\nSIqKgshNiOoy3NyuR9D2/dQa4TL90z2ceaoooZI7UVQ6FcR1DwVdMtWkcIbv49q7\\nl2sQJP4ZAjOWbfRqPv+Lhx1Tflg5wWKiLRVZWGYwK9f0kvHjtNsF63IPkG3T1lHx\\naskdcsRPcYwr3DKWc0Wf2V5zHaIlZ3305BP+ZW6h89iU/gfI7Bkl5YWFAgMBAAGj\\nYzBhMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTz\\ngLco+EXXlaFZiCSpcY2Z2rMgmTAfBgNVHSMEGDAWgBTzgLco+EXXlaFZiCSpcY2Z\\n2rMgmTANBgkqhkiG9w0BAQsFAAOCAQEACXTJ5yTJu+vsROqaAcnsMYZT+WqP36qo\\n1mzR/TXpN70yNDYFOYwMU6lNggCFpNfrh2zQhW1vRCXzZdCJe+s0k4Dxzr4E+wrU\\nBAxb6Xc8cP+9DEIDGH0S5uuxzlPX2gdBzvgmZJVr+CKhvhatE5p4rNzLOpBXmH7s\\nfADu30gkOdpDK59jMwNevheiFwlR7aJtVt9WAyLG5S8W+DHuln4ZmVexXRwkEAof\\nI4zk1SHZ6nRRdC/L0RkgbT13bxumz5oUbDzEPZ95CVZ5HtdF+bNjqoiokpGxBSUn\\nFTzbSZmbutWwK+spzPdz6pfNlW9SpT1ors3JbtJM81BRPRpPhVg/4Q==\\n-----END CERTIFICATE-----\\n\"],\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"commonName\":\"j2\",\"organization\":\"j2\"},\"subjectAltName\":{},\"hexSerialNumber\":\"0045b156a1bda971c42402f7fb23a794b8bb694d\",\"lifetime\":\"315360000s\",\"notBeforeTime\":\"2023-04-13T20:24:04.105825944Z\",\"notAfterTime\":\"2033-04-10T20:24:03.105825944Z\"},\"x509Description\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFtMmZxYWphVXhwMHV1eDJSekhFZgpXSkwvMDd0aXV4ZXBHcEYyWUxBVFowZ2RYS1RrNWwybEl4dTQyeDhsRFhoQUZ0QmNlalhDOE9iK3Fna1FxYXlwCmUrMDg2a3ZEKzJuNjFPcjY0MXF1Z3BCdGY2ekdseTVqL3Q4SkYwaGIzTEdQOXFXUlo2L3kveThISWt0eHJ4SzYKaFowekM3Qk9tVWlLaW9MSVRZanFNdHpjcmtmUTl2M1VHdUV5L2RNOW5IbXFLS0dTTzFGVU9oWEVkUThGWFRMVgpwSENHNytQYXU1ZHJFQ1QrR1FJemxtMzBhajcvaTRjZFUzNVlPY0Zpb2kwVldWaG1NQ3ZYOUpMeDQ3VGJCZXR5CkQ1QnQwOVpSOFdySkhYTEVUM0dNSzl3eWxuTkZuOWxlY3gyaUpXZDk5T1FUL21WdW9mUFlsUDRIeU93WkplV0YKaFFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==\"},\"subjectKeyId\":{\"keyId\":\"f380b728f845d795a1598824a9718d99dab32099\"},\"authorityKeyId\":{\"keyId\":\"f380b728f845d795a1598824a9718d99dab32099\"},\"certFingerprint\":{\"sha256Hash\":\"5472571169df530c08faf9ddf508d4499392711d6dd078d1f8d1f24af6432bd1\"}}],\"accessUrls\":{\"caCertificateAccessUrl\":\"http://privateca-content-64379488-0000-2cd7-b99b-089e082032e8.storage.googleapis.com/74224632056166df8e83/ca.crt\",\"crlAccessUrls\":[\"http://privateca-content-64379488-0000-2cd7-b99b-089e082032e8.storage.googleapis.com/74224632056166df8e83/crl.crl\"]},\"createTime\":\"2023-04-13T20:24:02.540552028Z\",\"updateTime\":\"2023-04-13T22:40:07.726797534Z\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:25 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:24.866Z", + "time": 485, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 485 + } + }, + { + "_id": "74b32ca955d847028363ed3f3a6be139", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1396, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2:getIamPolicy" + }, + "response": { + "bodySize": 162, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 162, + "text": "{\"etag\":\"ACAB\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:26 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:25.356Z", + "time": 631, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 631 + } + }, + { + "_id": "d6484bcf8f5c6e0500e5d31695bfbca1", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1400, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester/certificateAuthorities" + }, + "response": { + "bodySize": 3078, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 3078, + "text": "{\"certificateAuthorities\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester/certificateAuthorities/20230419-5z2-fui\",\"type\":\"SELF_SIGNED\",\"config\":{\"subjectConfig\":{\"subject\":{\"commonName\":\"3\",\"countryCode\":\"de\",\"organization\":\"delet\",\"organizationalUnit\":\"delete\"}},\"x509Config\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}}},\"lifetime\":\"315360000s\",\"keySpec\":{\"algorithm\":\"RSA_PKCS1_2048_SHA256\"},\"tier\":\"ENTERPRISE\",\"state\":\"ENABLED\",\"pemCaCertificates\":[\"-----BEGIN CERTIFICATE-----\\nMIIDZDCCAkygAwIBAgITWNt744CW40RopSrmRf6EmTe19TANBgkqhkiG9w0BAQsF\\nADA6MQswCQYDVQQGEwJkZTEOMAwGA1UEChMFZGVsZXQxDzANBgNVBAsTBmRlbGV0\\nZTEKMAgGA1UEAxMBMzAeFw0yMzA0MTkxOTIzMjJaFw0zMzA0MTYxOTIzMjFaMDox\\nCzAJBgNVBAYTAmRlMQ4wDAYDVQQKEwVkZWxldDEPMA0GA1UECxMGZGVsZXRlMQow\\nCAYDVQQDEwEzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArJno27Rz\\nX5c4T2exBC7+5MceW/wFLoEcpbeONgU755Y3ZxQUOizZXdcowfQc0rJqOlKdIZie\\ny+a0yBhw9DJMpdTS3LQiIcHx36oPCioY+CfcrHKUQrniZCrYeqSu48sV0wZbymhC\\npjFQVuTxnJJhgOKuZeeK/Z7sEENbSE88ITIocgJfHfMzLNIgGwWkczK/tXwK0C0P\\nPhdDMKSZvEr7WJkrf1lf2/9SWRP6VtVXTGbuUALfGT3LxPoWHB6PfF00UgeBA2x1\\nnnzhpFotp1TsAQ+/C1u6ZOcDgRvtECXtydn+bOsyRSA9TBVoaBs9z5zBlz0IQXki\\nKFwDR/udRHz+KQIDAQABo2MwYTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUw\\nAwEB/zAdBgNVHQ4EFgQUSTypri4FNg93yPVQb0pOo/yk3jwwHwYDVR0jBBgwFoAU\\nSTypri4FNg93yPVQb0pOo/yk3jwwDQYJKoZIhvcNAQELBQADggEBACjc+e0Y1o5J\\nDF3aE+femup7iSwtMqWdmyuWmBGPim2jp4DUZ38MjIXqNk7a3VPRNmCQFB+mS7qX\\nvXG8jZ4DlT6s8QxUEGRk3ZEOHhsFVrjaNoTqLKLFo3J76Y95skhN1g5CJpp9PMvz\\nKtV3yua200+lNXkW+2hiZXjvR60N/5Q+uD9MWL4L5FEyiodnqUQizb+YGCw5Yd29\\nc+kz5V1xM8aPcxR9mGUM+MPPU1qxHyo5e41QaZgzSz7dqHlhUj3d3s7FDAy1ckFB\\nKFFxa3w6o1UsNCjblGVlPDxhxHo30gXuSGpQW/Ec0z0yXXhgsO54jAxPQKS6u91z\\nWc3MRGYYqXI=\\n-----END CERTIFICATE-----\\n\"],\"caCertificateDescriptions\":[{\"subjectDescription\":{\"subject\":{\"commonName\":\"3\",\"countryCode\":\"de\",\"organization\":\"delet\",\"organizationalUnit\":\"delete\"},\"subjectAltName\":{},\"hexSerialNumber\":\"0058db7be38096e34468a52ae645fe849937b5f5\",\"lifetime\":\"315360000s\",\"notBeforeTime\":\"2023-04-19T19:23:22.848992554Z\",\"notAfterTime\":\"2033-04-16T19:23:21.848992554Z\"},\"x509Description\":{\"keyUsage\":{\"baseKeyUsage\":{\"certSign\":true,\"crlSign\":true}},\"caOptions\":{\"isCa\":true}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFySm5vMjdSelg1YzRUMmV4QkM3Kwo1TWNlVy93RkxvRWNwYmVPTmdVNzU1WTNaeFFVT2l6WlhkY293ZlFjMHJKcU9sS2RJWmlleSthMHlCaHc5REpNCnBkVFMzTFFpSWNIeDM2b1BDaW9ZK0NmY3JIS1VRcm5pWkNyWWVxU3U0OHNWMHdaYnltaENwakZRVnVUeG5KSmgKZ09LdVplZUsvWjdzRUVOYlNFODhJVElvY2dKZkhmTXpMTklnR3dXa2N6Sy90WHdLMEMwUFBoZERNS1NadkVyNwpXSmtyZjFsZjIvOVNXUlA2VnRWWFRHYnVVQUxmR1QzTHhQb1dIQjZQZkYwMFVnZUJBMngxbm56aHBGb3RwMVRzCkFRKy9DMXU2Wk9jRGdSdnRFQ1h0eWRuK2JPc3lSU0E5VEJWb2FCczl6NXpCbHowSVFYa2lLRndEUi91ZFJIeisKS1FJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==\"},\"subjectKeyId\":{\"keyId\":\"493ca9ae2e05360f77c8f5506f4a4ea3fca4de3c\"},\"authorityKeyId\":{\"keyId\":\"493ca9ae2e05360f77c8f5506f4a4ea3fca4de3c\"},\"certFingerprint\":{\"sha256Hash\":\"f567701682e4ef129f96530e1754ad34b0c72ad3ef745719b9e2dfb31d244e0a\"}}],\"gcsBucket\":\"us.artifacts.j1-gc-integration-dev-v3.appspot.com\",\"accessUrls\":{\"caCertificateAccessUrl\":\"http://us.artifacts.j1-gc-integration-dev-v3.appspot.com.storage.googleapis.com/a0ff0c2203b746b52811/ca.crt\",\"crlAccessUrls\":[\"http://us.artifacts.j1-gc-integration-dev-v3.appspot.com.storage.googleapis.com/a0ff0c2203b746b52811/crl.crl\"]},\"createTime\":\"2023-04-19T19:23:21.962930809Z\",\"updateTime\":\"2023-04-19T19:23:25.603901857Z\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:26 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:25.992Z", + "time": 936, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 936 + } + }, + { + "_id": "20b5ce375e07ffa1875948ffffcdd6e1", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1390, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester:getIamPolicy" + }, + "response": { + "bodySize": 128, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 128, + "text": "{\"etag\":\"ACAB\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:28 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:26.936Z", + "time": 1051, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1051 + } + }, + { + "_id": "acea721c8193b51ced888cae721cc423", + "_order": 2, + "cache": {}, + "request": { + "bodySize": 709, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-length", + "value": "709" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip,deflate" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "www.googleapis.com" + } + ], + "headersSize": 300, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "[REDACTED]" + }, + "queryString": [], + "url": "https://www.googleapis.com/oauth2/v4/token" + }, + "response": { + "bodySize": 1208, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 1208, + "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:28 GMT" + }, + { + "name": "server", + "value": "scaffolding on HTTPServer2" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 390, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:27.994Z", + "time": 111, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 111 + } + }, + { + "_id": "3dd660a755a9fc653e83005abd6c5967", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1401, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1/certificates" + }, + "response": { + "bodySize": 53, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 53, + "text": "{}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:29 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:28.112Z", + "time": 1907, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1907 + } + }, + { + "_id": "58f73c897e7937312440b6a359a24374", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1396, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2/certificates" + }, + "response": { + "bodySize": 4296, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 4296, + "text": "{\"certificates\":[{\"name\":\"projects/167984947943/locations/southamerica-east1/caPools/j2/certificates/20230419-edj-55t\",\"config\":{\"subjectConfig\":{\"subject\":{},\"subjectAltName\":{\"dnsNames\":[\"test\"]}},\"x509Config\":{\"keyUsage\":{\"baseKeyUsage\":{\"digitalSignature\":true,\"keyEncipherment\":true},\"extendedKeyUsage\":{}},\"caOptions\":{\"isCa\":false}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFxc3JVNUtvSmJsZTVobGRlTldpWgphUFBoQ3VIZ01McTN0bUFJVkpldFpDWGRBL1hycXVFSGdudzdrb2plR2lNeC82ZjJRN1JybXFVMjdFNm9hNjJuCnFCQjVvY210N01ocFRzdUNDay9jSStDTHphMVkwN05GMmY1aENDVTFoL0RjUm9QYlJzcngwek5ReGIxY2MzZSsKZ1hUaWZhNjNqM2JwSkUwS3o0Y2VONGk0aUt4Zzk4SGIwYW13aC9xMkQvbXVjY1U3ZndXczZadW5zb1RNa1J0eAoyU2xpTDlQZkdqcEczZStSeTY4YTJwd0VhR0xrK1hmQUVjRUFRbW5RSGRTcDNrMWFvMVRLK0Jtay9aSTNjZmkwCkRKekxHRWprdERiVEt3cXIrb3pLQlJKL2ZqTVlkLyt6V25xbHZzT1FzSHhFMDQ5TEhKVHRlMFQ0cjBoZkhCYzkKclFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t\",\"format\":\"PEM\"}},\"issuerCertificateAuthority\":\"projects/167984947943/locations/southamerica-east1/caPools/j2/certificateAuthorities/20230413-8bz-u46\",\"lifetime\":\"2592000s\",\"pemCertificate\":\"-----BEGIN CERTIFICATE-----\\nMIIENTCCAx2gAwIBAgIUAO3n65GqbBZxfHntTpRN0xThUdYwDQYJKoZIhvcNAQEL\\nBQAwGjELMAkGA1UEChMCajIxCzAJBgNVBAMTAmoyMB4XDTIzMDQxOTE2MjYwMloX\\nDTIzMDUxOTE2MjYwMVowADCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB\\nAKrK1OSqCW5XuYZXXjVomWjz4Qrh4DC6t7ZgCFSXrWQl3QP166rhB4J8O5KI3hoj\\nMf+n9kO0a5qlNuxOqGutp6gQeaHJrezIaU7LggpP3CPgi82tWNOzRdn+YQglNYfw\\n3EaD20bK8dMzUMW9XHN3voF04n2ut4926SRNCs+HHjeIuIisYPfB29GpsIf6tg/5\\nrnHFO38FrOmbp7KEzJEbcdkpYi/T3xo6Rt3vkcuvGtqcBGhi5Pl3wBHBAEJp0B3U\\nqd5NWqNUyvgZpP2SN3H4tAycyxhI5LQ20ysKq/qMygUSf34zGHf/s1p6pb7DkLB8\\nRNOPSxyU7XtE+K9IXxwXPa0CAwEAAaOCAYswggGHMA4GA1UdDwEB/wQEAwIFoDAM\\nBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBStb4QNdc32a70Sw72zsvXeNX014DAfBgNV\\nHSMEGDAWgBTzgLco+EXXlaFZiCSpcY2Z2rMgmTCBjQYIKwYBBQUHAQEEgYAwfjB8\\nBggrBgEFBQcwAoZwaHR0cDovL3ByaXZhdGVjYS1jb250ZW50LTY0Mzc5NDg4LTAw\\nMDAtMmNkNy1iOTliLTA4OWUwODIwMzJlOC5zdG9yYWdlLmdvb2dsZWFwaXMuY29t\\nLzc0MjI0NjMyMDU2MTY2ZGY4ZTgzL2NhLmNydDASBgNVHREBAf8ECDAGggR0ZXN0\\nMIGCBgNVHR8EezB5MHegdaBzhnFodHRwOi8vcHJpdmF0ZWNhLWNvbnRlbnQtNjQz\\nNzk0ODgtMDAwMC0yY2Q3LWI5OWItMDg5ZTA4MjAzMmU4LnN0b3JhZ2UuZ29vZ2xl\\nYXBpcy5jb20vNzQyMjQ2MzIwNTYxNjZkZjhlODMvY3JsLmNybDANBgkqhkiG9w0B\\nAQsFAAOCAQEAW2v9kP0WibkR1tNC7V8XfVBzJSjuBijwk8Cv2EdImbB8AiVzbbk9\\n54u+LV/oYD8uhq24HQqyJ2dNOGVhKJCtHHgSy1ZScItANutKCdOhvIig3HXtHqFm\\nhXu5XQHOfIojX45Cf333EWsEZYtt5gJu/NObjFicyvilWwsPGBC9R9kn0T5pNVHZ\\nsPXp2s1sU2pgjWaQdQjFbThShVrhYxtLCO9oQq/5m7zamE5XE9Kh9iFImdsnzH12\\nI2QOSqOIO62KSsKZaxK7Yw11bt2R6ALLeS+MWXlMzjUzVSRv9qaSGgZVkLRRKr5Q\\ntKQrP+2MZ+teSKXBM0+2aMiED6W9pGvbcA==\\n-----END CERTIFICATE-----\\n\",\"certificateDescription\":{\"subjectDescription\":{\"subjectAltName\":{\"dnsNames\":[\"test\"]},\"hexSerialNumber\":\"ede7eb91aa6c16717c79ed4e944dd314e151d6\",\"lifetime\":\"2592000s\",\"notBeforeTime\":\"2023-04-19T16:26:02Z\",\"notAfterTime\":\"2023-05-19T16:26:01Z\"},\"x509Description\":{\"keyUsage\":{\"baseKeyUsage\":{\"digitalSignature\":true,\"keyEncipherment\":true}},\"caOptions\":{\"isCa\":false}},\"publicKey\":{\"key\":\"LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUFxc3JVNUtvSmJsZTVobGRlTldpWgphUFBoQ3VIZ01McTN0bUFJVkpldFpDWGRBL1hycXVFSGdudzdrb2plR2lNeC82ZjJRN1JybXFVMjdFNm9hNjJuCnFCQjVvY210N01ocFRzdUNDay9jSStDTHphMVkwN05GMmY1aENDVTFoL0RjUm9QYlJzcngwek5ReGIxY2MzZSsKZ1hUaWZhNjNqM2JwSkUwS3o0Y2VONGk0aUt4Zzk4SGIwYW13aC9xMkQvbXVjY1U3ZndXczZadW5zb1RNa1J0eAoyU2xpTDlQZkdqcEczZStSeTY4YTJwd0VhR0xrK1hmQUVjRUFRbW5RSGRTcDNrMWFvMVRLK0Jtay9aSTNjZmkwCkRKekxHRWprdERiVEt3cXIrb3pLQlJKL2ZqTVlkLyt6V25xbHZzT1FzSHhFMDQ5TEhKVHRlMFQ0cjBoZkhCYzkKclFJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==\"},\"subjectKeyId\":{\"keyId\":\"ad6f840d75cdf66bbd12c3bdb3b2f5de357d35e0\"},\"authorityKeyId\":{\"keyId\":\"f380b728f845d795a1598824a9718d99dab32099\"},\"crlDistributionPoints\":[\"http://privateca-content-64379488-0000-2cd7-b99b-089e082032e8.storage.googleapis.com/74224632056166df8e83/crl.crl\"],\"aiaIssuingCertificateUrls\":[\"http://privateca-content-64379488-0000-2cd7-b99b-089e082032e8.storage.googleapis.com/74224632056166df8e83/ca.crt\"],\"certFingerprint\":{\"sha256Hash\":\"fe210acc47877e2482be45da7eca6e46d6d87a10e88b4c0a41316095df1b51d3\"}},\"pemCertificateChain\":[\"-----BEGIN CERTIFICATE-----\\nMIIDJDCCAgygAwIBAgITRbFWob2pccQkAvf7I6eUuLtpTTANBgkqhkiG9w0BAQsF\\nADAaMQswCQYDVQQKEwJqMjELMAkGA1UEAxMCajIwHhcNMjMwNDEzMjAyNDA0WhcN\\nMzMwNDEwMjAyNDAzWjAaMQswCQYDVQQKEwJqMjELMAkGA1UEAxMCajIwggEiMA0G\\nCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbZ+pqNpTGnS67HZHMcR9Ykv/Tu2K7\\nF6kakXZgsBNnSB1cpOTmXaUjG7jbHyUNeEAW0Fx6NcLw5v6qCRCprKl77TzqS8P7\\nafrU6vrjWq6CkG1/rMaXLmP+3wkXSFvcsY/2pZFnr/L/LwciS3GvErqFnTMLsE6Z\\nSIqKgshNiOoy3NyuR9D2/dQa4TL90z2ceaoooZI7UVQ6FcR1DwVdMtWkcIbv49q7\\nl2sQJP4ZAjOWbfRqPv+Lhx1Tflg5wWKiLRVZWGYwK9f0kvHjtNsF63IPkG3T1lHx\\naskdcsRPcYwr3DKWc0Wf2V5zHaIlZ3305BP+ZW6h89iU/gfI7Bkl5YWFAgMBAAGj\\nYzBhMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBTz\\ngLco+EXXlaFZiCSpcY2Z2rMgmTAfBgNVHSMEGDAWgBTzgLco+EXXlaFZiCSpcY2Z\\n2rMgmTANBgkqhkiG9w0BAQsFAAOCAQEACXTJ5yTJu+vsROqaAcnsMYZT+WqP36qo\\n1mzR/TXpN70yNDYFOYwMU6lNggCFpNfrh2zQhW1vRCXzZdCJe+s0k4Dxzr4E+wrU\\nBAxb6Xc8cP+9DEIDGH0S5uuxzlPX2gdBzvgmZJVr+CKhvhatE5p4rNzLOpBXmH7s\\nfADu30gkOdpDK59jMwNevheiFwlR7aJtVt9WAyLG5S8W+DHuln4ZmVexXRwkEAof\\nI4zk1SHZ6nRRdC/L0RkgbT13bxumz5oUbDzEPZ95CVZ5HtdF+bNjqoiokpGxBSUn\\nFTzbSZmbutWwK+spzPdz6pfNlW9SpT1ors3JbtJM81BRPRpPhVg/4Q==\\n-----END CERTIFICATE-----\\n\"],\"createTime\":\"2023-04-19T16:26:02.609116449Z\",\"updateTime\":\"2023-04-19T16:26:02.609116449Z\"}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:30 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:30.023Z", + "time": 573, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 573 + } + }, + { + "_id": "65ad7941261d977eaa2207bfe586ff58", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1390, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester/certificates" + }, + "response": { + "bodySize": 43, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 43, + "text": "{}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:31 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:30.602Z", + "time": 1046, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 1046 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/src/steps/privateca/steps/__recordings__/fetch-private-ca-pools_1121866750/recording.har b/src/steps/privateca/steps/__recordings__/fetch-private-ca-pools_1121866750/recording.har new file mode 100644 index 00000000..048a1435 --- /dev/null +++ b/src/steps/privateca/steps/__recordings__/fetch-private-ca-pools_1121866750/recording.har @@ -0,0 +1,255 @@ +{ + "log": { + "_recordingName": "fetch-private-ca-pools", + "creator": { + "comment": "persister:JupiterOneIntegationFSPersister", + "name": "Polly.JS", + "version": "6.0.5" + }, + "entries": [ + { + "_id": "acea721c8193b51ced888cae721cc423", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 709, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "content-type", + "value": "application/x-www-form-urlencoded" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "content-length", + "value": "709" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip,deflate" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "www.googleapis.com" + } + ], + "headersSize": 300, + "httpVersion": "HTTP/1.1", + "method": "POST", + "postData": { + "mimeType": "application/x-www-form-urlencoded", + "params": [], + "text": "[REDACTED]" + }, + "queryString": [], + "url": "https://www.googleapis.com/oauth2/v4/token" + }, + "response": { + "bodySize": 1265, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 1265, + "text": "{\"access_token\":\"[REDACTED]\",\"expires_in\":9999,\"token_type\":\"Bearer\"}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:19 GMT" + }, + { + "name": "server", + "value": "scaffolding on HTTPServer2" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 390, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:19.630Z", + "time": 169, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 169 + } + }, + { + "_id": "8c3accf112bb6587d672fc0043521b03", + "_order": 0, + "cache": {}, + "request": { + "bodySize": 0, + "cookies": [], + "headers": [ + { + "_fromType": "array", + "name": "x-goog-api-client", + "value": "gdcl/5.0.2 gl-node/16.15.1 auth/7.1.1" + }, + { + "_fromType": "array", + "name": "accept-encoding", + "value": "gzip" + }, + { + "_fromType": "array", + "name": "user-agent", + "value": "google-api-nodejs-client/5.0.2 (gzip)" + }, + { + "_fromType": "array", + "name": "authorization", + "value": "[REDACTED]" + }, + { + "_fromType": "array", + "name": "accept", + "value": "application/json" + }, + { + "_fromType": "array", + "name": "connection", + "value": "close" + }, + { + "name": "host", + "value": "privateca.googleapis.com" + } + ], + "headersSize": 1363, + "httpVersion": "HTTP/1.1", + "method": "GET", + "queryString": [], + "url": "https://privateca.googleapis.com/v1/projects/j1-gc-integration-dev-v3/locations/-/caPools" + }, + "response": { + "bodySize": 339, + "content": { + "encoding": "utf-8", + "mimeType": "application/json; charset=UTF-8", + "size": 339, + "text": "{\"caPools\":[{\"name\":\"projects/j1-gc-integration-dev-v3/locations/northamerica-northeast2/caPools/j1\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}},{\"name\":\"projects/j1-gc-integration-dev-v3/locations/southamerica-east1/caPools/j2\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}},{\"name\":\"projects/j1-gc-integration-dev-v3/locations/us-west1/caPools/Tester\",\"tier\":\"ENTERPRISE\",\"issuancePolicy\":{\"baselineValues\":{}},\"publishingOptions\":{\"publishCaCert\":true,\"publishCrl\":true}}]}" + }, + "cookies": [], + "headers": [ + { + "name": "content-type", + "value": "application/json; charset=UTF-8" + }, + { + "name": "vary", + "value": "Origin, X-Origin, Referer" + }, + { + "name": "date", + "value": "Thu, 20 Apr 2023 15:23:22 GMT" + }, + { + "name": "server", + "value": "ESF" + }, + { + "name": "cache-control", + "value": "private" + }, + { + "name": "x-xss-protection", + "value": "0" + }, + { + "name": "x-frame-options", + "value": "SAMEORIGIN" + }, + { + "name": "x-content-type-options", + "value": "nosniff" + }, + { + "name": "alt-svc", + "value": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000" + }, + { + "name": "connection", + "value": "close" + } + ], + "headersSize": 367, + "httpVersion": "HTTP/1.1", + "redirectURL": "", + "status": 200, + "statusText": "OK" + }, + "startedDateTime": "2023-04-20T15:23:19.808Z", + "time": 3002, + "timings": { + "blocked": -1, + "connect": -1, + "dns": -1, + "receive": 0, + "send": 0, + "ssl": -1, + "wait": 3002 + } + } + ], + "pages": [], + "version": "1.2" + } +} diff --git a/src/steps/privateca/steps/fetchAuthorityCertificates.test.ts b/src/steps/privateca/steps/fetchAuthorityCertificates.test.ts new file mode 100644 index 00000000..8f70efc9 --- /dev/null +++ b/src/steps/privateca/steps/fetchAuthorityCertificates.test.ts @@ -0,0 +1,76 @@ +import { + executeStepWithDependencies, + Recording, + StepTestConfig, +} from '@jupiterone/integration-sdk-testing'; +import { invocationConfig } from '../../..'; +import { integrationConfig } from '../../../../test/config'; +import { + getMatchRequestsBy, + setupGoogleCloudRecording, +} from '../../../../test/recording'; +import { PrivatecaSteps } from '../constants'; + +describe(`privateca#${PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATES.id}`, () => { + let recording: Recording | undefined; + afterEach(async () => { + if (recording) await recording.stop(); + }); + + jest.setTimeout(45000); + + test(PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATES.id, async () => { + recording = setupGoogleCloudRecording({ + name: PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATES.id, + directory: __dirname, + options: { + matchRequestsBy: getMatchRequestsBy(integrationConfig), + }, + }); + + const stepTestConfig: StepTestConfig = { + stepId: PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATES.id, + instanceConfig: integrationConfig, + invocationConfig: invocationConfig as any, + }; + + const result = await executeStepWithDependencies(stepTestConfig); + expect(result).toMatchStepMetadata(stepTestConfig); + }); +}); + +describe(`privateca#${PrivatecaSteps.STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS.id}`, () => { + let recording: Recording | undefined; + afterEach(async () => { + if (recording) await recording.stop(); + }); + + jest.setTimeout(45000); + + test( + PrivatecaSteps + .STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS.id, + async () => { + recording = setupGoogleCloudRecording({ + name: PrivatecaSteps + .STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS.id, + directory: __dirname, + options: { + matchRequestsBy: getMatchRequestsBy(integrationConfig), + }, + }); + + const stepTestConfig: StepTestConfig = { + stepId: + PrivatecaSteps + .STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS + .id, + instanceConfig: integrationConfig, + invocationConfig: invocationConfig as any, + }; + + const result = await executeStepWithDependencies(stepTestConfig); + expect(result).toMatchStepMetadata(stepTestConfig); + }, + ); +}); diff --git a/src/steps/privateca/steps/fetchAuthorityCertificates.ts b/src/steps/privateca/steps/fetchAuthorityCertificates.ts new file mode 100644 index 00000000..04faed6b --- /dev/null +++ b/src/steps/privateca/steps/fetchAuthorityCertificates.ts @@ -0,0 +1,143 @@ +import { + RelationshipClass, + createDirectRelationship, + getRawData, +} from '@jupiterone/integration-sdk-core'; +import { + GoogleCloudIntegrationStep, + IntegrationStepContext, +} from '../../../types'; +import { PrivateCaClient } from '../client'; +import { + PrivatecaEntities, + PrivatecaRelationships, + PrivatecaSteps, +} from '../constants'; +import { createCertificateEntity } from '../converters'; +import { privateca_v1 } from 'googleapis'; +import { getCloudStorageBucketKey } from '../../storage/converters'; +import { StorageStepsSpec } from '../../storage/constants'; + +async function fetchAuthorityCertificates( + context: IntegrationStepContext, +): Promise { + const { + jobState, + instance: { config }, + } = context; + + const client = new PrivateCaClient({ config }); + + await jobState.iterateEntities( + { + _type: PrivatecaEntities.PRIVATE_CA_CERTIFICATE_AUTHORITY._type, + }, + async (certificateAuthorityEntity) => { + const caPoolId = (certificateAuthorityEntity.name as string).split( + '/', + )[5]; + const caLocation = (certificateAuthorityEntity.name as string).split( + '/', + )[3]; + + await client.iterateAuthorityCertificates( + caPoolId, + caLocation, + async (certificate) => { + const certificateEntity = createCertificateEntity({ + data: certificate, + keyAlgorithm: certificateAuthorityEntity.keyAlgorithm as string, + projectId: client.projectId, + }); + + await jobState.addEntity(certificateEntity); + + await jobState.addRelationship( + createDirectRelationship({ + _class: RelationshipClass.CREATED, + from: certificateAuthorityEntity, + to: certificateEntity, + }), + ); + }, + ); + }, + ); +} + +async function buildCertificateAuthorityBucketRelationships( + context: IntegrationStepContext, +): Promise { + const { jobState, logger } = context; + + await jobState.iterateEntities( + { _type: PrivatecaEntities.PRIVATE_CA_CERTIFICATE_AUTHORITY._type }, + async (caAuthorityEntity) => { + const caAuthority = + getRawData(caAuthorityEntity); + if (!caAuthority) { + logger.warn( + { + _key: caAuthorityEntity._key, + }, + 'Could not find raw data on certificate authority entity', + ); + return; + } + + const bucketName = caAuthority.gcsBucket; + + if (!bucketName) { + return; + } + + const storageBucketEntity = await jobState.findEntity( + getCloudStorageBucketKey(bucketName), + ); + if (!storageBucketEntity) { + logger.warn( + `${PrivatecaSteps.STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS.id} - Missing storageBucketEntity.`, + ); + return; + } + + await jobState.addRelationship( + createDirectRelationship({ + _class: RelationshipClass.USES, + from: caAuthorityEntity, + to: storageBucketEntity, + }), + ); + }, + ); +} + +export const fetchAuthorityCertificatesStepMap: GoogleCloudIntegrationStep = { + id: PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATES.id, + name: PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATES.name, + entities: [PrivatecaEntities.PRIVATE_CA_CERTIFICATE], + relationships: [ + PrivatecaRelationships.PRIVATE_CA_CERTIFICATE_AUTHORITY_CERTIFICATE, + ], + dependsOn: [PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id], + executionHandler: fetchAuthorityCertificates, + permissions: ['privateca.certificates.list'], + apis: ['privateca.googleapis.com'], +}; + +export const buildCertificateAuthorityBucketRelationshipsStepMap: GoogleCloudIntegrationStep = + { + id: PrivatecaSteps + .STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS.id, + name: PrivatecaSteps + .STEP_CREATE_PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET_RELATIONSHIPS.name, + entities: [], + relationships: [ + PrivatecaRelationships.PRIVATE_CA_CERTIFICATE_AUTHORITY_BUCKET, + ], + dependsOn: [ + PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id, + StorageStepsSpec.FETCH_STORAGE_BUCKETS.id, + ], + executionHandler: buildCertificateAuthorityBucketRelationships, + }; diff --git a/src/steps/privateca/steps/fetchCaPools.test.ts b/src/steps/privateca/steps/fetchCaPools.test.ts new file mode 100644 index 00000000..67c772b9 --- /dev/null +++ b/src/steps/privateca/steps/fetchCaPools.test.ts @@ -0,0 +1,40 @@ +import { + executeStepWithDependencies, + Recording, + StepTestConfig, +} from '@jupiterone/integration-sdk-testing'; +import { invocationConfig } from '../../..'; +import { integrationConfig } from '../../../../test/config'; +import { + getMatchRequestsBy, + setupGoogleCloudRecording, +} from '../../../../test/recording'; +import { PrivatecaSteps } from '../constants'; + +describe(`privateca#${PrivatecaSteps.STEP_PRIVATE_CA_POOLS.id}`, () => { + let recording: Recording | undefined; + afterEach(async () => { + if (recording) await recording.stop(); + }); + + jest.setTimeout(45000); + + test(PrivatecaSteps.STEP_PRIVATE_CA_POOLS.id, async () => { + recording = setupGoogleCloudRecording({ + name: PrivatecaSteps.STEP_PRIVATE_CA_POOLS.id, + directory: __dirname, + options: { + matchRequestsBy: getMatchRequestsBy(integrationConfig), + }, + }); + + const stepTestConfig: StepTestConfig = { + stepId: PrivatecaSteps.STEP_PRIVATE_CA_POOLS.id, + instanceConfig: integrationConfig, + invocationConfig: invocationConfig as any, + }; + + const result = await executeStepWithDependencies(stepTestConfig); + expect(result).toMatchStepMetadata(stepTestConfig); + }); +}); diff --git a/src/steps/privateca/steps/fetchCaPools.ts b/src/steps/privateca/steps/fetchCaPools.ts new file mode 100644 index 00000000..40849ab8 --- /dev/null +++ b/src/steps/privateca/steps/fetchCaPools.ts @@ -0,0 +1,33 @@ +import { + GoogleCloudIntegrationStep, + IntegrationStepContext, +} from '../../../types'; +import { PrivateCaClient } from '../client'; +import { PrivatecaEntities, PrivatecaSteps } from '../constants'; +import { createCaPoolEntity } from '../converters'; + +export async function fetchCaPools( + context: IntegrationStepContext, +): Promise { + const { + jobState, + instance: { config }, + } = context; + + const client = new PrivateCaClient({ config }); + + await client.iterateCaPools(async (caPool) => { + await jobState.addEntity(createCaPoolEntity(caPool)); + }); +} + +export const fetchCaPoolsStepMap: GoogleCloudIntegrationStep = { + id: PrivatecaSteps.STEP_PRIVATE_CA_POOLS.id, + name: PrivatecaSteps.STEP_PRIVATE_CA_POOLS.name, + entities: [PrivatecaEntities.PRIVATE_CA_POOL], + relationships: [], + dependsOn: [], + executionHandler: fetchCaPools, + permissions: ['privateca.caPools.list'], + apis: ['privateca.googleapis.com'], +}; diff --git a/src/steps/privateca/steps/fetchCertificateAuthorities.test.ts b/src/steps/privateca/steps/fetchCertificateAuthorities.test.ts new file mode 100644 index 00000000..488ce472 --- /dev/null +++ b/src/steps/privateca/steps/fetchCertificateAuthorities.test.ts @@ -0,0 +1,40 @@ +import { + executeStepWithDependencies, + Recording, + StepTestConfig, +} from '@jupiterone/integration-sdk-testing'; +import { invocationConfig } from '../../..'; +import { integrationConfig } from '../../../../test/config'; +import { + getMatchRequestsBy, + setupGoogleCloudRecording, +} from '../../../../test/recording'; +import { PrivatecaSteps } from '../constants'; + +describe(`privateca#${PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id}`, () => { + let recording: Recording | undefined; + afterEach(async () => { + if (recording) await recording.stop(); + }); + + jest.setTimeout(45000); + + test(PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id, async () => { + recording = setupGoogleCloudRecording({ + name: PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id, + directory: __dirname, + options: { + matchRequestsBy: getMatchRequestsBy(integrationConfig), + }, + }); + + const stepTestConfig: StepTestConfig = { + stepId: PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id, + instanceConfig: integrationConfig, + invocationConfig: invocationConfig as any, + }; + + const result = await executeStepWithDependencies(stepTestConfig); + expect(result).toMatchStepMetadata(stepTestConfig); + }); +}); diff --git a/src/steps/privateca/steps/fetchCertificateAuthorities.ts b/src/steps/privateca/steps/fetchCertificateAuthorities.ts new file mode 100644 index 00000000..cc2be6a3 --- /dev/null +++ b/src/steps/privateca/steps/fetchCertificateAuthorities.ts @@ -0,0 +1,106 @@ +import { privateca_v1 } from 'googleapis'; +import { + GoogleCloudIntegrationStep, + IntegrationStepContext, +} from '../../../types'; +import { PrivateCaClient } from '../client'; +import { + PrivatecaEntities, + PrivatecaRelationships, + PrivatecaSteps, +} from '../constants'; +import { createCertificateAuthorityEntity } from '../converters'; +import { isMemberPublic } from '../../../utils/iam'; +import { + RelationshipClass, + createDirectRelationship, +} from '@jupiterone/integration-sdk-core'; + +function isCertificateAuthorityPolicyPublicAccess( + caPolicy: privateca_v1.Schema$Policy, +): boolean { + for (const binding of caPolicy.bindings || []) { + for (const member of binding.members || []) { + if (isMemberPublic(member)) { + return true; + } + } + } + + return false; +} + +async function fetchCertificateAuthorities( + context: IntegrationStepContext, +): Promise { + const { + jobState, + instance: { config }, + logger, + } = context; + + const client = new PrivateCaClient({ config }); + + await jobState.iterateEntities( + { + _type: PrivatecaEntities.PRIVATE_CA_POOL._type, + }, + async (caPool) => { + const caPoolId = caPool._key.split('/')[5]; + const location = caPool._key.split('/')[3]; + + if (!location || !caPool) { + logger.warn( + { location, caPoolId }, + `${PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id} - Unable to fetch CA due to missing parameters.`, + ); + + return; + } + + await client.iterateCertificateAuthorities( + caPoolId, + location, + async (certificateAuthority) => { + const caPoolId = certificateAuthority.name?.split('/')[5]; + const location = certificateAuthority.name?.split('/')[3]; + + const policy = await client.getAuthorityPolicy( + caPoolId as string, + location as string, + ); + + const certificateAuthorityEntity = createCertificateAuthorityEntity({ + data: certificateAuthority, + projectId: client.projectId, + isPublic: isCertificateAuthorityPolicyPublicAccess(policy), + }); + + await jobState.addEntity(certificateAuthorityEntity); + + await jobState.addRelationship( + createDirectRelationship({ + _class: RelationshipClass.HAS, + from: caPool, + to: certificateAuthorityEntity, + }), + ); + }, + ); + }, + ); +} + +export const fetchCertificateAuthoritiesStepMap: GoogleCloudIntegrationStep = { + id: PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.id, + name: PrivatecaSteps.STEP_PRIVATE_CA_CERTIFICATE_AUTHORITIES.name, + entities: [PrivatecaEntities.PRIVATE_CA_CERTIFICATE_AUTHORITY], + relationships: [PrivatecaRelationships.PRIVATE_CA_POOL_CERTIFICATE_AUTHORITY], + dependsOn: [PrivatecaSteps.STEP_PRIVATE_CA_POOLS.id], + executionHandler: fetchCertificateAuthorities, + permissions: [ + 'privateca.certificateAuthorities.getIamPolicy', + 'privateca.certificateAuthorities.list', + ], + apis: ['privateca.googleapis.com'], +}; diff --git a/src/utils/iamBindings/resourceKindToTypeMap.ts b/src/utils/iamBindings/resourceKindToTypeMap.ts index 20944226..46638d25 100644 --- a/src/utils/iamBindings/resourceKindToTypeMap.ts +++ b/src/utils/iamBindings/resourceKindToTypeMap.ts @@ -62,7 +62,7 @@ import { } from '../../steps/logging/constants'; import { ENTITY_TYPE_MEMCACHE_INSTANCE } from '../../steps/memcache/constants'; import { MONITORING_ALERT_POLICY_TYPE } from '../../steps/monitoring/constants'; -import { ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY } from '../../steps/privateca/constants'; +import { PrivatecaEntities } from '../../steps/privateca/constants'; import { ENTITY_TYPE_PUBSUB_TOPIC, ENTITY_TYPE_PUBSUB_SUBSCRIPTION, @@ -214,7 +214,7 @@ export const GOOGLE_RESOURCE_KIND_TO_J1_TYPE_MAP: { 'managedidentities.googleapis.com/Domain': NONE, 'privateca.googleapis.com/CaPool': NONE, 'privateca.googleapis.com/CertificateAuthority': - ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY, + PrivatecaEntities.PRIVATE_CA_CERTIFICATE_AUTHORITY._type, 'privateca.googleapis.com/CertificateRevocationList': NONE, 'privateca.googleapis.com/CertificateTemplate': NONE, 'dataflow.googleapis.com/Job': NONE, diff --git a/src/utils/iamBindings/typeToKeyGeneratorMap.test.ts b/src/utils/iamBindings/typeToKeyGeneratorMap.test.ts index bf1432d1..81442be3 100644 --- a/src/utils/iamBindings/typeToKeyGeneratorMap.test.ts +++ b/src/utils/iamBindings/typeToKeyGeneratorMap.test.ts @@ -28,7 +28,6 @@ import { ENTITY_TYPE_CLOUD_RUN_ROUTE, } from '../../steps/cloud-run/constants'; import { ENTITY_TYPE_MEMCACHE_INSTANCE_NODE } from '../../steps/memcache/constants'; -import { ENTITY_TYPE_PRIVATE_CA_CERTIFICATE } from '../../steps/privateca/constants'; import { ENTITY_TYPE_SPANNER_INSTANCE_CONFIG } from '../../steps/spanner/constants'; import { J1_TYPE_TO_KEY_GENERATOR_MAP } from './typeToKeyGeneratorMap'; import { GOOGLE_RESOURCE_KIND_TO_J1_TYPE_MAP } from './resourceKindToTypeMap'; @@ -40,6 +39,7 @@ import { StepMetadata, StepRelationshipMetadata, } from '@jupiterone/integration-sdk-core'; +import { PrivatecaEntities } from '../../steps/privateca/constants'; /** * If your JupiterOne entity can not be indentified in Google Cloud with a Google Cloud @@ -71,7 +71,7 @@ const entitiesTypesToSkip = [ ENTITY_TYPE_COMPUTE_INSTANCE_GROUP_NAMED_PORT, bindingEntities.BINDINGS._type, ENTITY_TYPE_MEMCACHE_INSTANCE_NODE, - ENTITY_TYPE_PRIVATE_CA_CERTIFICATE, + PrivatecaEntities.PRIVATE_CA_CERTIFICATE._type, ENTITY_TYPE_SPANNER_INSTANCE_CONFIG, ]; diff --git a/src/utils/iamBindings/typeToKeyGeneratorMap.ts b/src/utils/iamBindings/typeToKeyGeneratorMap.ts index f284aac5..09494f6f 100644 --- a/src/utils/iamBindings/typeToKeyGeneratorMap.ts +++ b/src/utils/iamBindings/typeToKeyGeneratorMap.ts @@ -60,7 +60,6 @@ import { getLogingProjectSinkId } from '../../steps/logging/converters'; import { ENTITY_TYPE_MEMCACHE_INSTANCE } from '../../steps/memcache/constants'; import { getMemcacheKey } from '../../steps/memcache/converter'; import { MONITORING_ALERT_POLICY_TYPE } from '../../steps/monitoring/constants'; -import { ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY } from '../../steps/privateca/constants'; import { ENTITY_TYPE_PUBSUB_TOPIC, ENTITY_TYPE_PUBSUB_SUBSCRIPTION, @@ -95,6 +94,7 @@ import { SQL_ADMIN_SQL_SERVER_INSTANCE_ENTITY_TYPE, } from '../../steps/sql-admin'; import { StorageEntitiesSpec } from '../../steps/storage/constants'; +import { PrivatecaEntities } from '../../steps/privateca/constants'; /** * A map of JupiterOne types to a function which can generate their _key @@ -161,7 +161,7 @@ export const J1_TYPE_TO_KEY_GENERATOR_MAP: { getLogingProjectSinkId, ), [LOGGING_METRIC_ENTITY_TYPE]: finalIdentifierKeyMap, // I'm pretty sure this can not be the target of a role binding. - [ENTITY_TYPE_PRIVATE_CA_CERTIFICATE_AUTHORITY]: fullPathKeyMap, + [PrivatecaEntities.PRIVATE_CA_CERTIFICATE_AUTHORITY._type]: fullPathKeyMap, [ENTITY_TYPE_API_GATEWAY_API]: fullPathKeyMap, [ENTITY_TYPE_API_GATEWAY_API_CONFIG]: fullPathKeyMap, [ENTITY_TYPE_API_GATEWAY_GATEWAY]: fullPathKeyMap, diff --git a/test/mocks.ts b/test/mocks.ts index adcfb2f4..9d955fe1 100644 --- a/test/mocks.ts +++ b/test/mocks.ts @@ -1956,77 +1956,6 @@ export function getMockApiGatewayGateway( }; } -export function getMockCertificate( - partial?: privateca_v1beta1.Schema$Certificate, -): privateca_v1beta1.Schema$Certificate { - return { - name: 'projects/711888229551/locations/us-central1/certificateAuthorities/Test-CA-Name/certificates/20210401-nkm-v03', - config: { - subjectConfig: { - subjectAltName: { - dnsNames: ['google.com'], - }, - }, - reusableConfig: { - reusableConfigValues: { - keyUsage: { - baseKeyUsage: { - digitalSignature: true, - keyEncipherment: true, - }, - extendedKeyUsage: {}, - }, - caOptions: { - isCa: false, - }, - }, - }, - }, - lifetime: '2592000s', - certificateDescription: { - subjectDescription: { - subjectAltName: { - dnsNames: ['google.com'], - }, - hexSerialNumber: 'ec41a22274884f34272ea3dabe37a42daffe41', - lifetime: '2592000s', - notBeforeTime: '2021-04-01T19:17:48Z', - notAfterTime: '2021-05-01T19:17:48Z', - }, - configValues: { - keyUsage: { - baseKeyUsage: { - digitalSignature: true, - keyEncipherment: true, - }, - }, - caOptions: { - isCa: false, - }, - }, - subjectKeyId: { - keyId: 'abb01889d84091201b6c09b3f4f6cf04d0a91c13', - }, - authorityKeyId: { - keyId: 'f4c932216ac01039c8f3c952fab0c2f7db202315', - }, - crlDistributionPoints: [ - 'http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/crl.crl', - ], - aiaIssuingCertificateUrls: [ - 'http://privateca-content-605f9a85-0000-2ec7-9474-f403043ccfa8.storage.googleapis.com/f168e1beb72a7e72e8c5/ca.crt', - ], - certFingerprint: { - sha256Hash: - '7aeb434082c0ea73d819c1e4fab7a3e31f027a9d4440f666af2e3ac38a26039b', - }, - }, - createTime: '2021-04-01T19:17:48.319675789Z', - updateTime: '2021-04-01T19:17:48.319675789Z', - ...partial, - }; -} - export function getMockComputeImage( partial?: compute_v1.Schema$Image, ): compute_v1.Schema$Image { diff --git a/test/recording.ts b/test/recording.ts index d63b3b11..97ada7e3 100644 --- a/test/recording.ts +++ b/test/recording.ts @@ -7,7 +7,7 @@ import { cloudbuild_v1, cloudfunctions_v1, iam_v1, - privateca_v1beta1, + privateca_v1, } from 'googleapis'; import * as querystring from 'querystring'; import * as url from 'url'; @@ -116,7 +116,7 @@ function sanitizeCreateServiceAccountKeyResponse( } function sanitizeListCertificateAuthoritiesResponse( - response: privateca_v1beta1.Schema$ListCertificateAuthoritiesResponse, + response: privateca_v1.Schema$ListCertificateAuthoritiesResponse, ) { return { certificateAuthorities: @@ -129,7 +129,6 @@ function sanitizeListCertificateAuthoritiesResponse( (description) => ({ ...description, publicKey: { - type: description.publicKey?.type, key: '[REDACTED]', }, }), @@ -139,7 +138,7 @@ function sanitizeListCertificateAuthoritiesResponse( } function sanitizeListCertificatesResponse( - response: privateca_v1beta1.Schema$ListCertificatesResponse, + response: privateca_v1.Schema$ListCertificatesResponse, ) { return { certificates: @@ -149,7 +148,6 @@ function sanitizeListCertificatesResponse( config: { ...certificate.config, publicKey: { - type: certificate.config?.publicKey?.type, key: '[REDACTED]', }, }, @@ -157,7 +155,6 @@ function sanitizeListCertificatesResponse( certificateDescription: { ...certificate.certificateDescription, publicKey: { - type: certificate.certificateDescription?.publicKey?.type, key: '[REDACTED]', }, },