Access Keys in Loft
Access keys let you authenticate with Loft API endpoints and Loft CLI in non-interactive environments such as from within CI/CD pipelines.
Create Access Key
- Go to the Profile view using the menu on the left
- Switch to the Access Keys tab
- Click the button to create a new access key
- In the drawer that appears on the right, use the field Display Name to specify a Name for your access key
- OPTIONAL: Expand the section to specify which clusters, namespaces and virtual clusters this access key can be used for
- On the very bottom, click on the button to create this access key
Use Access Key
Log in via CLI
You can use an access key to log into Loft from non-intercative environments:
loft login [domain] --access-key=[ACCESS_KEY]
# Retrieve kube-contexts afterward:
loft use space/vcluster/cluster [name]
Kube-Context
You can use an access key to manually construct a valid kube-context for: