Josefin Winberg
03/17/2023, 2:05 PMBianca Hoch
03/17/2023, 2:23 PMJosefin Winberg
03/17/2023, 2:23 PMBianca Hoch
03/17/2023, 2:28 PMHowever, I suspect that maybe the issue lays in the secret value in GCP? It seems that there is a header_token and a app_token that I believe needs to be re-generated from my account instead of the old owner?That could very well be a possibility.
Josefin Winberg
03/17/2023, 2:31 PMBianca Hoch
03/17/2023, 2:37 PMJosefin Winberg
03/17/2023, 2:37 PMBianca Hoch
03/17/2023, 2:41 PMcurl -v -H 'Authorization: Bearer <replace with your api key>' <https://api.prefect.cloud/api/accounts/8cba8c22-3359-43ea-845e-b88737a33ddd/workspaces/caa7e1bf-faa2-4ba5-baab-1987efa226f1/work_queues/name/prod>
Josefin Winberg
03/17/2023, 2:43 PMBianca Hoch
03/17/2023, 2:58 PMgcp-prefect
collection, and the first step is to create a service account key file.Josefin Winberg
03/17/2023, 3:00 PMBianca Hoch
03/17/2023, 3:09 PMJosefin Winberg
03/17/2023, 3:48 PMBianca Hoch
03/17/2023, 3:59 PMChristopher Boyd
03/17/2023, 4:00 PMcheckapikey 12345 (bad api key)
<https://api.prefect.cloud/api/accounts//workspaces/>
curl -i -H 'Authorization: Bearer 12345' <https://api.prefect.cloud/api/accounts//workspaces//health>
HTTP/2 401
date: Fri, 17 Mar 2023 15:22:07 GMT
server: istio-envoy
x-deny: ext-authz
content-length: 47
content-type: application/json
x-envoy-upstream-service-time: 5
via: 1.1 google
content-security-policy: default-src 'none'; object-src 'none'
x-content-type-options: nosniff
strict-transport-security: max-age=63072000; includeSubDomains; preload
permissions-policy: accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), serial=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()
x-permitted-cross-domain-policies: none
referrer-policy: same-origin
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
{"detail":"Invalid authentication credentials"}%
Boyd
31 minutes ago
versus good key, good workspace:
curl -i -H 'Authorization: Bearer <valid key>' <https://api.prefect.cloud/api/accounts///health>
HTTP/2 200
date: Fri, 17 Mar 2023 15:29:32 GMT
server: istio-envoy
content-length: 4
content-type: application/json
x-envoy-upstream-service-time: 62
via: 1.1 google
content-security-policy: default-src 'none'; object-src 'none'
x-content-type-options: nosniff
strict-transport-security: max-age=63072000; includeSubDomains; preload
permissions-policy: accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), serial=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()
x-permitted-cross-domain-policies: none
referrer-policy: same-origin
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
true%
(edited)
Boyd
30 minutes ago
versus 403 (good key, bad workspace):
curl -i -H 'Authorization: Bearer <valid key>' <https://api.prefect.cloud/api/accounts//workspaces//health>
HTTP/2 403
date: Fri, 17 Mar 2023 15:30:48 GMT
server: istio-envoy
content-length: 25
content-type: application/json
x-envoy-upstream-service-time: 30
via: 1.1 google
content-security-policy: default-src 'none'; object-src 'none'
x-content-type-options: nosniff
strict-transport-security: max-age=63072000; includeSubDomains; preload
permissions-policy: accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), hid=(), idle-detection=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), serial=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()
x-permitted-cross-domain-policies: none
referrer-policy: same-origin
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
{"detail":"Unauthorized"}%
Josefin Winberg
03/17/2023, 4:03 PMChristopher Boyd
03/17/2023, 4:08 PMJosefin Winberg
03/17/2023, 4:49 PMBianca Hoch
03/22/2023, 2:18 PMJosefin Winberg
03/23/2023, 10:28 AM