Closed lcopi closed 1 year ago
Test output from example functionality:
go run examples/container/V2containers/IngressV2/main.go --certcrn crn:v1:bluemix:public:secrets-manager:us-south:a/f8ea34ae7f494076a9f5ad6a763b91f0:a77dd1c3-164f-406d-95a2-ce489e1244b8:secret:76288a4c-12ff-6420-e3c1-d8094e7fb580 --instance-crn crn:v1:bluemix:public:secrets-manager:us-south:a/f8ea34ae7f494076a9f5ad6a763b91f0:a77dd1c3-164f-406d-95a2-ce489e1244b8:: --clusterNameOrID cedacq0d06vp524ljds0
[DEBUG] REQUEST: [2022-12-19T11:39:45-05:00] POST /identity/token HTTP/1.1
Host: iam.cloud.ibm.com
Accept: application/json
Accept-Language: en
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/x-www-form-urlencoded
User-Agent: Bluemix-go SDK 0.1 / linux
X-Original-User-Agent:
apikey=[PRIVATE DATA HIDDEN]&grant_type=urn%3Aibm%3Aparams%3Aoauth%3Agrant-type%3Aapikey&response_type=cloud_iam
[DEBUG] RESPONSE: [2022-12-19T11:39:45-05:00] Elapsed: 243ms HTTP/1.1 200 OK
Content-Length: 3540
Akamai-Grn: 0.c0aa3717.1671467985.249b9b66
Cache-Control: no-cache, no-store, must-revalidate
Connection: keep-alive
Content-Language: en-US
Content-Type: application/json
Date: Mon, 19 Dec 2022 16:39:45 GMT
Expires: 0
Pragma: no-cache
Strict-Transport-Security: max-age=31536000; includeSubDomains
Transaction-Id: NXRkY20-15e9ab501cb44c8990cb6f65497574dd
X-Content-Type-Options: nosniff
X-Correlation-Id: NXRkY20-15e9ab501cb44c8990cb6f65497574dd
X-Proxy-Upstream-Service-Time: 61
X-Request-Id: b66f8385-a9cd-452c-b175-109eead978c6
{"access_token":"[PRIVATE DATA HIDDEN]","refresh_token":"[PRIVATE DATA HIDDEN]","ims_user_id":7633987,"token_type":"[PRIVATE DATA HIDDEN]","expires_in":1200,"expiration":1671469182,"refresh_token_expiration":1671554385,"scope":"ibm openid","session_id":"C-b3ea1903-25dc-45ad-bf2a-2763cd1bd3de"}
[DEBUG] REQUEST: [2022-12-19T11:39:45-05:00] POST /global/ingress/v2/secret/registerInstance HTTP/1.1
Host: containers.cloud.ibm.com
Accept: application/json
Accept-Language: en
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: Bluemix-go SDK 0.1 / linux
X-Auth-Refresh-Token: [PRIVATE DATA HIDDEN]
X-Original-User-Agent:
{"cluster":"cedacq0d06vp524ljds0","crn":"crn:v1:bluemix:public:secrets-manager:us-south:a/f8ea34ae7f494076a9f5ad6a763b91f0:a77dd1c3-164f-406d-95a2-ce489e1244b8::","isDefault":false,"secretGroupID":""}
[DEBUG] RESPONSE: [2022-12-19T11:39:47-05:00] Elapsed: 2502ms HTTP/1.1 200 OK
Content-Length: 336
Cache-Control: max-age=0, no-cache, no-store
Connection: keep-alive
Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self'
Content-Type: application/json; charset=utf-8
Date: Mon, 19 Dec 2022 16:39:47 GMT
Expires: Mon, 19 Dec 2022 16:39:47 GMT
Pragma: no-cache
Server-Timing: cdn-cache; desc=MISS
Server-Timing: edge; dur=25
Server-Timing: origin; dur=2432
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Carrier: prod-wdc04-carrier103
X-Content-Type-Options: nosniff
X-Correlation-Id: c60b9b33-2383-4158-9ee0-770a6394adb8
X-Frame-Options: DENY
X-Hostname: armada-ingress-secret-mgr-d96c64455-q64bh
X-Permitted-Cross-Domain-Policies: master-only
X-Region: us-east
X-Request-Id: fa5da0df-f7ec-97d6-a42f-d0861e7cd509
X-Xss-Protection: 1; mode=block
{"cluster":"cedacq0d06vp524ljds0","name":"fvt-ingress-prod-sm-1","crn":"crn:v1:bluemix:public:secrets-manager:us-south:a/f8ea34ae7f494076a9f5ad6a763b91f0:a77dd1c3-164f-406d-95a2-ce489e1244b8::","secretGroupID":"","secretGroupName":"","callbackChannel":"","userManaged":true,"isDefault":false,"type":"secrets-manager","status":"created"}
[DEBUG] REQUEST: [2022-12-19T11:39:47-05:00] GET /global/ingress/v2/secret/getInstance?cluster=cedacq0d06vp524ljds0&name=fvt-ingress-prod-sm-1 HTTP/1.1
Host: containers.cloud.ibm.com
Accept: application/json
Accept-Language: en
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: Bluemix-go SDK 0.1 / linux
X-Auth-Refresh-Token: [PRIVATE DATA HIDDEN]
X-Original-User-Agent:
[DEBUG] RESPONSE: [2022-12-19T11:39:50-05:00] Elapsed: 2138ms HTTP/1.1 200 OK
Content-Length: 336
Cache-Control: max-age=0, no-cache, no-store
Connection: keep-alive
Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self'
Content-Type: application/json; charset=utf-8
Date: Mon, 19 Dec 2022 16:39:50 GMT
Expires: Mon, 19 Dec 2022 16:39:50 GMT
Pragma: no-cache
Server-Timing: cdn-cache; desc=MISS
Server-Timing: edge; dur=38
Server-Timing: origin; dur=2085
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Carrier: prod-wdc04-carrier103
X-Content-Type-Options: nosniff
X-Correlation-Id: a11e18d2-70f1-4090-af36-8ad84bb03dc0
X-Frame-Options: DENY
X-Hostname: armada-ingress-secret-mgr-d96c64455-z4swv
X-Permitted-Cross-Domain-Policies: master-only
X-Region: us-east
X-Request-Id: 8e0ad9a2-6665-4913-9baa-5023917ad249
X-Xss-Protection: 1; mode=block
{"cluster":"cedacq0d06vp524ljds0","name":"fvt-ingress-prod-sm-1","crn":"crn:v1:bluemix:public:secrets-manager:us-south:a/f8ea34ae7f494076a9f5ad6a763b91f0:a77dd1c3-164f-406d-95a2-ce489e1244b8::","secretGroupID":"","secretGroupName":"","callbackChannel":"","userManaged":true,"isDefault":false,"type":"secrets-manager","status":"created"}
[DEBUG] REQUEST: [2022-12-19T11:39:50-05:00] POST /global/ingress/v2/secret/unregisterInstance HTTP/1.1
Host: containers.cloud.ibm.com
Accept: application/json
Accept-Language: en
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: Bluemix-go SDK 0.1 / linux
X-Auth-Refresh-Token: [PRIVATE DATA HIDDEN]
X-Original-User-Agent:
{"cluster":"cedacq0d06vp524ljds0","name":"fvt-ingress-prod-sm-1"}
[DEBUG] RESPONSE: [2022-12-19T11:39:51-05:00] Elapsed: 1482ms HTTP/1.1 200 OK
Content-Length: 322
Cache-Control: max-age=0, no-cache, no-store
Connection: keep-alive
Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self'
Content-Type: application/json; charset=utf-8
Date: Mon, 19 Dec 2022 16:39:51 GMT
Expires: Mon, 19 Dec 2022 16:39:51 GMT
Pragma: no-cache
Server-Timing: cdn-cache; desc=MISS
Server-Timing: edge; dur=12
Server-Timing: origin; dur=1424
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Carrier: prod-wdc04-carrier103
X-Content-Type-Options: nosniff
X-Correlation-Id: a474217b-93ef-4ec7-9358-344ddf064b4b
X-Frame-Options: DENY
X-Hostname: armada-ingress-secret-mgr-d96c64455-pgj9t
X-Permitted-Cross-Domain-Policies: master-only
X-Region: us-east
X-Request-Id: 3680cc11-31e2-4481-af95-97b1379f1589
X-Xss-Protection: 1; mode=block
{"cluster":"cedacq0d06vp524ljds0","name":"fvt-ingress-prod-sm-1","crn":"crn:v1:bluemix:public:secrets-manager:us-south:a/f8ea34ae7f494076a9f5ad6a763b91f0:a77dd1c3-164f-406d-95a2-ce489e1244b8::","secretGroupID":"","secretGroupName":"","callbackChannel":"","userManaged":false,"isDefault":false,"type":"","status":"deleted"}
[DEBUG] REQUEST: [2022-12-19T11:39:51-05:00] POST /global/ingress/v2/secret/createSecret HTTP/1.1
Host: containers.cloud.ibm.com
Accept: application/json
Accept-Language: en
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: Bluemix-go SDK 0.1 / linux
X-Auth-Refresh-Token: [PRIVATE DATA HIDDEN]
X-Original-User-Agent:
{"cluster":"cedacq0d06vp524ljds0","name":"testabc123","namespace":"","crn":"crn:v1:bluemix:public:secrets-manager:us-south:a/f8ea34ae7f494076a9f5ad6a763b91f0:a77dd1c3-164f-406d-95a2-ce489e1244b8:secret:76288a4c-12ff-6420-e3c1-d8094e7fb580","persistence":true,"type":"","add":null}
[DEBUG] RESPONSE: [2022-12-19T11:39:55-05:00] Elapsed: 4278ms HTTP/1.1 200 OK
Content-Length: 520
Cache-Control: max-age=0, no-cache, no-store
Connection: keep-alive
Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self'
Content-Type: application/json; charset=utf-8
Date: Mon, 19 Dec 2022 16:39:55 GMT
Expires: Mon, 19 Dec 2022 16:39:55 GMT
Pragma: no-cache
Server-Timing: cdn-cache; desc=MISS
Server-Timing: edge; dur=118
Server-Timing: origin; dur=4146
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Carrier: prod-wdc04-carrier103
X-Content-Type-Options: nosniff
X-Correlation-Id: b0b4ca0d-468c-4f2f-9ce1-289f9c47ea37
X-Frame-Options: DENY
X-Hostname: armada-ingress-secret-mgr-d96c64455-vg28j
X-Permitted-Cross-Domain-Policies: master-only
X-Region: us-east
X-Request-Id: e31c7082-033d-44a2-bff0-ba197721c67e
X-Xss-Protection: 1; mode=block
{"cluster":"cedacq0d06vp524ljds0","name":"testabc123","namespace":"ibm-cert-store","domain":"fvt-orchestrator.us-south.containers.appdomain.cloud","crn":"crn:v1:bluemix:public:secrets-manager:us-south:a/f8ea34ae7f494076a9f5ad6a763b91f0:a77dd1c3-164f-406d-95a2-ce489e1244b8:secret:76288a4c-12ff-6420-e3c1-d8094e7fb580","expiresOn":"2023-03-19T15:21:26+0000","status":"created","userManaged":true,"persistence":true,"type":"TLS","secretType":"imported_cert","lastUpdatedTimestamp":"2022-12-19T16:34:07+0000","fields":null}
[DEBUG] REQUEST: [2022-12-19T11:39:55-05:00] GET /global/ingress/v2/secret/getSecret?cluster=cedacq0d06vp524ljds0&name=testabc123&namespace=ibm-cert-store HTTP/1.1
Host: containers.cloud.ibm.com
Accept: application/json
Accept-Language: en
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: Bluemix-go SDK 0.1 / linux
X-Auth-Refresh-Token: [PRIVATE DATA HIDDEN]
X-Original-User-Agent:
[DEBUG] RESPONSE: [2022-12-19T11:39:57-05:00] Elapsed: 1363ms HTTP/1.1 200 OK
Content-Length: 494
Cache-Control: max-age=0, no-cache, no-store
Connection: keep-alive
Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self'
Content-Type: application/json; charset=utf-8
Date: Mon, 19 Dec 2022 16:39:57 GMT
Expires: Mon, 19 Dec 2022 16:39:57 GMT
Pragma: no-cache
Server-Timing: cdn-cache; desc=MISS
Server-Timing: edge; dur=385
Server-Timing: origin; dur=858
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Carrier: prod-wdc04-carrier103
X-Content-Type-Options: nosniff
X-Correlation-Id: f71540c5-90b9-4720-9f49-beab7dd71138
X-Frame-Options: DENY
X-Hostname: armada-ingress-secret-mgr-d96c64455-z4swv
X-Permitted-Cross-Domain-Policies: master-only
X-Region: us-east
X-Request-Id: 0ec3a545-15c7-4112-9502-61e8fa4cd327
X-Xss-Protection: 1; mode=block
{"cluster":"cedacq0d06vp524ljds0","name":"testabc123","namespace":"ibm-cert-store","domain":"fvt-orchestrator.us-south.containers.appdomain.cloud","crn":"crn:v1:bluemix:public:secrets-manager:us-south:a/f8ea34ae7f494076a9f5ad6a763b91f0:a77dd1c3-164f-406d-95a2-ce489e1244b8:secret:76288a4c-12ff-6420-e3c1-d8094e7fb580","expiresOn":"2023-03-19T15:21:26+0000","status":"created","userManaged":true,"persistence":true,"type":"TLS","secretType":"imported_cert","lastUpdatedTimestamp":"","fields":[]}
[DEBUG] REQUEST: [2022-12-19T11:39:57-05:00] POST /global/ingress/v2/secret/deleteSecret HTTP/1.1
Host: containers.cloud.ibm.com
Accept: application/json
Accept-Language: en
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/json
User-Agent: Bluemix-go SDK 0.1 / linux
X-Auth-Refresh-Token: [PRIVATE DATA HIDDEN]
X-Original-User-Agent:
{"cluster":"cedacq0d06vp524ljds0","name":"testabc123","namespace":"ibm-cert-store"}
[DEBUG] RESPONSE: [2022-12-19T11:40:00-05:00] Elapsed: 3074ms HTTP/1.1 204 No Content
Content-Length: 0
Cache-Control: max-age=0, no-cache, no-store
Connection: keep-alive
Content-Security-Policy: default-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; connect-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self'
Content-Type:
Date: Mon, 19 Dec 2022 16:40:00 GMT
Expires: Mon, 19 Dec 2022 16:40:00 GMT
Pragma: no-cache
Server-Timing: cdn-cache; desc=MISS
Server-Timing: edge; dur=219
Server-Timing: origin; dur=2500
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Carrier: prod-wdc04-carrier103
X-Content-Type-Options: nosniff
X-Correlation-Id: cb58c3a9-3b43-472b-9da7-eae38cd89db8
X-Frame-Options: DENY
X-Hostname: armada-global-api-848676d86f-gmrr9
X-Permitted-Cross-Domain-Policies: master-only
X-Region: us-east
X-Request-Id: 01e66de8-e3d2-4ac3-8134-9f8118bf505f
X-Xss-Protection: 1; mode=block