how to auth using ory-cli in headless mode, using ...
# ory-network
e
how to auth using ory-cli in headless mode, using env variables or config file? Documentation states that we can use API keys (
ORY_PROJECT_API_KEY
), but it does not work using v1.1.0
s
It depends on the operation you want to do. For working with project configs, you need a workspace key, for working with project data you need a project key.
e
I’m trying to create a tunnel. So far, I managed to get the tunnel working from k8s by launching the pod, copying the login URL shown in the logs and access it, then in a shell session from the pod call (wget) the returned URL from the login form. It’s not ideal in case my pod restarts!
e
oh my god, I was missing the
-q
option. So when not quiet, ORY forces the login via browser, even when the API key is set. if quiet, it will use the API key.
s
Yeah I'm not sure why it was the case, I'd have to check. But there was some reason.