Accessing a job protected by platform SSO
Here are the general steps for launching a job and accessing it through the platform's Auth.
Generating a service account
Generate a service account via apolo service-account create --name <sa-name>
. Make sure to store the Role and the Auth token - you will use them to authenticate your requests.
Example:
In this case, janedoe/service-accounts/test
is the needed role and
eyJhbGciOi<hidden>Np0
is the needed authentication token.
Starting the required job
Start the job you want to access later.
Example:
Share access to the job with the service account
Share access to the job with the service account role from step 1 by using the
apolo acl grant job:<job-id-or-name> <role-name> read
command.
Example:
Using the auth token
Use the token from step 1 to authenticate the request with header via the "cookie: dat=<token-here>;"
command.
Example:
Last updated