Application credentials
Per-project keys with their own roles and expiry — no personal passwords in scripts.
One key per job — scoped, expiring, revocable.
Application credentials, clouds.yaml and tokens for XcellCloud.
7e1d…40ab2027-04-30Every call to XcellCloud — from the console, the OpenStack CLI, Terraform, an SDK or a plain curl — starts with Keystone, OpenStack's identity service. You prove who you are, Keystone hands back a short-lived token scoped to one project, and every other API accepts that token. People should sign in to the console with MFA. Everything else should use an application credential: an ID and secret you create for one project, with only the roles it needs and an expiry date, that you can delete in seconds without touching anyone's password. This page shows each method, generates ready-to-use clouds.yaml and openrc files in your browser, and walks through rotation and what to do if a key leaks. Credentials cost nothing — they come free with your XcellCloud account.
Your exact endpoints are shown in the XcellCloud console → API Access. Endpoints, region and IDs on this page are examples.
For developers, DevOps teams, MSPs and IT partners using XcellCloud in India.
Scoped · Expiring · RevocableFour kinds of credential, all free. Pick the tool you use — each row shows how that credential plugs in.
No charge for credentials, tokens or API access. The auth URL, region and console address shown are placeholders — your exact values are in the XcellCloud console → API Access. EC2-style credentials apply where S3 access is enabled on your account.
Per-project keys with their own roles and expiry — no personal passwords in scripts.
reader for reporting, member for automation — admin stays with people.
Delete one credential and its tokens stop working; nobody else is affected.
Keystone v3 — the same files and variables every OpenStack tool already reads.
Projects and the identity service run in XcellHost's Indian data centres.
Console sign-in protected with MFA; automation never uses a human login.
Call the NOC if a key leaks at midnight — we help you lock it down.
XcellHost runs ISO 27001 & 20000-1 certified operations since 1999.
What changes when every script, pipeline and tool gets its own key.
reader or member on one projectFrom console login to your first authenticated call — about ten minutes.
Generic tool names only; anything that speaks Keystone v3 or reads clouds.yaml works the same way.
Included with every XcellCloud accountEach answer moves the scores. The winner comes with the exact command and where to keep the secret.
Everything happens in your browser — no network request is made and nothing is stored. Leave the secret blank to get placeholders you fill in later.
Save clouds.yaml and secure.yaml to ~/.config/openstack/ (or the current folder), then run openstack --os-cloud xcellhost token issue. Dot-files may download without the leading dot — rename them.
Create them in the console (Identity → Application Credentials) or with the CLI. They belong to your user and one project, carry only the roles you pick, and stop working when deleted or expired.
# Log in first (clouds.yaml with your user, or source a password openrc)
openstack application credential create terraform-ci \
--role member \
--expiration 2027-01-31T00:00:00 \
--description "GitHub Actions - web-prod" \
--restricted
# The secret is shown ONCE. Copy it straight into your secret store.{
"id": "a3f9c2e17b4d4f0e9c1d2b3a4e5f6a7b",
"name": "terraform-ci",
"description": "GitHub Actions - web-prod",
"project_id": "5d2b8c3f1e4a4b6c9d0e1f2a3b4c5d6e",
"roles": "member",
"unrestricted": false,
"access_rules": [],
"expires_at": "2027-01-31T00:00:00.000000",
"secret": "<APP_CRED_SECRET>"
}# Narrow a credential to specific API calls (access rules, where enabled)
openstack application credential create inventory-bot \
--role reader \
--expiration 2026-12-31T00:00:00 \
--access-rules '[{"service": "compute", "method": "GET", "path": "/v2.1/servers"},
{"service": "compute", "method": "GET", "path": "/v2.1/servers/*"}]'
# This bot can list and read servers, and nothing else.openstack application credential list
openstack application credential show terraform-ci -f json
openstack application credential delete terraform-ci
# Application credentials can't be edited: to change roles or
# expiry, create a new one and delete the old one.Every OpenStack tool reads these. The CLI looks for clouds.yaml in the current folder, then ~/.config/openstack/, then /etc/openstack/.
# ~/.config/openstack/clouds.yaml (chmod 600, never commit)
clouds:
xcellhost:
auth_type: v3applicationcredential
auth:
auth_url: https://api.xcellhost.cloud:5000/v3
application_credential_id: "<APP_CRED_ID>"
region_name: mumbai-1
interface: public
identity_api_version: 3# ~/.config/openstack/secure.yaml — secrets only, merged into clouds.yaml
clouds:
xcellhost:
auth:
application_credential_secret: "<APP_CRED_SECRET>"#!/usr/bin/env bash
# xcellhost-openrc.sh — usage: source ./xcellhost-openrc.sh
export OS_AUTH_TYPE=v3applicationcredential
export OS_AUTH_URL=https://api.xcellhost.cloud:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_REGION_NAME=mumbai-1
export OS_INTERFACE=public
export OS_APPLICATION_CREDENTIAL_ID="<APP_CRED_ID>"
export OS_APPLICATION_CREDENTIAL_SECRET="<APP_CRED_SECRET>"#!/usr/bin/env bash
# Password openrc for people: prompts for the password, never stores it
export OS_AUTH_URL=https://api.xcellhost.cloud:5000/v3
export OS_IDENTITY_API_VERSION=3
export OS_REGION_NAME=mumbai-1
export OS_INTERFACE=public
export OS_USERNAME="<USERNAME>"
export OS_PROJECT_NAME="<PROJECT_NAME>"
export OS_USER_DOMAIN_NAME="Default"
export OS_PROJECT_DOMAIN_NAME="Default"
echo "XcellCloud password for $OS_USERNAME: "
read -sr OS_PASSWORD_INPUT
export OS_PASSWORD="$OS_PASSWORD_INPUT"
unset OS_PASSWORD_INPUT# Use a named cloud from clouds.yaml
openstack --os-cloud xcellhost token issue
export OS_CLOUD=xcellhost # or set it once for the shell
openstack server list
# Or use the openrc file
source ./xcellhost-openrc.sh
openstack token issue -f value -c expiresPOST /v3/auth/tokens returns the token in the X-Subject-Token header and the service catalog in the body. Send it as X-Auth-Token on every other call. Application-credential tokens are always scoped to the credential's project.
# 1. Ask Keystone for a token (application credential)
cat > token-req.json <<'EOF'
{
"auth": {
"identity": {
"methods": ["application_credential"],
"application_credential": {
"id": "<APP_CRED_ID>",
"secret": "<APP_CRED_SECRET>"
}
}
}
}
EOF
TOKEN=$(curl -s -i -X POST https://api.xcellhost.cloud:5000/v3/auth/tokens \
-H "Content-Type: application/json" -d @token-req.json \
| awk 'tolower($1)=="x-subject-token:" {print $2}' | tr -d '\r')
rm token-req.json
# 2. Use it on any API in the catalog
curl -s -H "X-Auth-Token: $TOKEN" https://api.xcellhost.cloud:5000/v3/auth/catalog
# 3. Revoke it when the job is done
curl -s -X DELETE https://api.xcellhost.cloud:5000/v3/auth/tokens \
-H "X-Auth-Token: $TOKEN" -H "X-Subject-Token: $TOKEN"{
"auth": {
"identity": {
"methods": ["password"],
"password": {
"user": {
"name": "<USERNAME>",
"domain": { "name": "Default" },
"password": "<PASSWORD>"
}
}
},
"scope": {
"project": {
"name": "<PROJECT_NAME>",
"domain": { "name": "Default" }
}
}
}
}openstack token issue -f json
# {
# "expires": "2026-10-15T13:05:41+0000",
# "id": "gAAAAABn...",
# "project_id": "5d2b8c3f1e4a4b6c9d0e1f2a3b4c5d6e",
# "user_id": "9c0d1e2f3a4b4c5d8e9f0a1b2c3d4e5f"
# }
openstack token revoke "<TOKEN>"# pip install openstacksdk
import openstack
# Reads the "xcellhost" entry from clouds.yaml (+ secure.yaml)
conn = openstack.connect(cloud="xcellhost")
print("token expires:", conn.session.auth.get_access(conn.session).expires)
for server in conn.compute.servers():
print(server.name, server.status)// go get github.com/gophercloud/gophercloud/v2
package main
import (
"context"
"fmt"
"os"
"github.com/gophercloud/gophercloud/v2"
"github.com/gophercloud/gophercloud/v2/openstack"
)
func main() {
ctx := context.Background()
opts := gophercloud.AuthOptions{
IdentityEndpoint: "https://api.xcellhost.cloud:5000/v3",
ApplicationCredentialID: os.Getenv("OS_APPLICATION_CREDENTIAL_ID"),
ApplicationCredentialSecret: os.Getenv("OS_APPLICATION_CREDENTIAL_SECRET"),
}
provider, err := openstack.AuthenticatedClient(ctx, opts)
if err != nil {
panic(err)
}
compute, err := openstack.NewComputeV2(provider, gophercloud.EndpointOpts{Region: "mumbai-1"})
if err != nil {
panic(err)
}
fmt.Println("compute endpoint:", compute.Endpoint)
}The AWS CLI, boto3, s3cmd and rclone sign requests with an access key and secret key. Keystone issues these as EC2-style credentials tied to your user and project. See S3 Object Storage API for the full tool guide.
# EC2-style credentials for S3 tools (where S3 access is enabled)
openstack ec2 credentials create -f json
# { "access": "<EC2_ACCESS_KEY>", "secret": "<EC2_SECRET_KEY>", "project_id": "...", ... }
openstack ec2 credentials list
openstack ec2 credentials delete "<EC2_ACCESS_KEY>"# ~/.aws/credentials (chmod 600)
[xcellhost]
aws_access_key_id = <EC2_ACCESS_KEY>
aws_secret_access_key = <EC2_SECRET_KEY>
# then:
# aws s3 ls --profile xcellhost --endpoint-url https://s3.mumbai.xcellhost.cloud# pip install boto3
import os
import boto3
s3 = boto3.client(
"s3",
endpoint_url="https://s3.mumbai.xcellhost.cloud",
region_name="mumbai-1",
aws_access_key_id=os.environ["EC2_ACCESS_KEY"],
aws_secret_access_key=os.environ["EC2_SECRET_KEY"],
)
for bucket in s3.list_buckets()["Buckets"]:
print(bucket["Name"])For S3 access where enabled. Endpoint is a placeholder — see console → API Access.
Keystone's default roles nest: admin includes member, which includes reader. A credential can only hold roles its owner already has on that project.
Separate projects per environment mean a dev key can never touch production. Exact policies can differ per service — test with a reader key first.
Three scenarios on one timeline. Drag the playhead or press play; the panel explains each moment.
Secrets belong in a secret manager or your CI's protected variables, never in code, chat or tickets. Rotation is four commands.
# HashiCorp Vault (KV v2): store once, read at deploy time
vault kv put secret/xcellcloud/terraform-ci \
id="<APP_CRED_ID>" secret="<APP_CRED_SECRET>"
export OS_APPLICATION_CREDENTIAL_ID=$(vault kv get -field=id secret/xcellcloud/terraform-ci)
export OS_APPLICATION_CREDENTIAL_SECRET=$(vault kv get -field=secret secret/xcellcloud/terraform-ci)# GitHub Actions: repository or environment secrets
gh secret set OS_APPLICATION_CREDENTIAL_ID --env production
gh secret set OS_APPLICATION_CREDENTIAL_SECRET --env production
# (gh prompts for the value, so it never lands in shell history)
# In the workflow:
# env:
# OS_AUTH_TYPE: v3applicationcredential
# OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }}
# OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}# GitLab: Settings → CI/CD → Variables
# OS_APPLICATION_CREDENTIAL_ID Protected
# OS_APPLICATION_CREDENTIAL_SECRET Protected + Masked
# or with the API:
curl --request POST --header "PRIVATE-TOKEN: <GITLAB_TOKEN>" \
"https://gitlab.example.com/api/v4/projects/<PROJECT_ID>/variables" \
--form "key=OS_APPLICATION_CREDENTIAL_SECRET" \
--form "value=<APP_CRED_SECRET>" \
--form "masked=true" --form "protected=true"# Kubernetes: keep cloud credentials in a Secret, not in a ConfigMap
apiVersion: v1
kind: Secret
metadata:
name: xcellcloud-credentials
namespace: kube-system
type: Opaque
stringData:
cloud.conf: |
[Global]
auth-url = https://api.xcellhost.cloud:5000/v3
region = mumbai-1
application-credential-id = <APP_CRED_ID>
application-credential-secret = <APP_CRED_SECRET># Zero-downtime rotation (every 90 days, or when people leave)
# 1. Create the replacement before the old one expires
openstack application credential create terraform-ci-2027q1 \
--role member --expiration 2027-04-30T00:00:00 --restricted
# 2. Update the secret store / CI variables with the new ID and secret
gh secret set OS_APPLICATION_CREDENTIAL_ID --env production
gh secret set OS_APPLICATION_CREDENTIAL_SECRET --env production
# 3. Run one pipeline to prove the new credential works
# 4. Delete the old one: its tokens stop working too
openstack application credential delete terraform-ciA key pushed to a public repository can be found by scanners within minutes. Speed matters more than perfection.
openstack application credential delete <name> — or ec2 credentials delete. Its tokens stop working.
+91 22 6711 1555 — we help check the project and lock things down.
minute 5New servers, keypairs, security-group rules, floating IPs, users — openstack server list --long.
Rewrite history (e.g. git filter-repo), then rotate anything else in the same file.
Smallest role, short expiry, stored in your secret manager.
same dayIf personal data may be affected: DPDP Act breach intimation and CERT-In's 6-hour incident reporting.
within 6 hIndia note: CERT-In's April 2022 directions require reporting specified cyber incidents within 6 hours, and the DPDP Act requires intimating personal-data breaches to the Data Protection Board and affected people. This page is guidance, not legal advice — check with your counsel.
Choose credential scopes and handling practices that match your workload and organisational policies.
Scope application credentials and roles to the required project and operations.
Keep secrets outside source control and use your approved secret manager.
Set expiry dates where supported, rotate credentials and revoke unused access.
Validate TLS certificates and use the documented HTTPS endpoints.
Review access and audit records with your cloud administrators.
Revoke exposed credentials promptly and investigate affected workloads.
A key pair — an ID and a secret — that you create for one project, with the roles you choose and an optional expiry date. Scripts, Terraform and CI pipelines use it instead of your username and password. You can delete it at any moment without touching your own login.
An application credential with the member role, an expiry date and the default --restricted setting — one per pipeline and environment. Plan-only jobs can use a reader credential. The chooser above walks through other cases.
In the XcellCloud console under API Access. The values on this page — https://api.xcellhost.cloud:5000/v3 and mumbai-1 — are examples; your project's exact endpoints are listed there.
Tokens carry an expires time — commonly one hour on OpenStack clouds; check the value returned by openstack token issue. Tools such as the CLI, Terraform and openstacksdk request a new token automatically, so you rarely handle tokens yourself.
clouds.yaml lists named clouds for the CLI and SDKs; secure.yaml holds just the secrets and is merged in at run time, so you can share one without the other. An openrc file is a shell script that exports OS_* variables. All three work with every OpenStack tool.
Yes. It runs entirely in your browser: nothing you type is sent to XcellHost or anyone else, and no network request is made. Leave the secret blank to get placeholders. If you do type it, the file you download contains it — store it with chmod 600 and never commit it.
Only for S3-compatible tools such as the AWS CLI, boto3, s3cmd or rclone, where S3 access is enabled for your account. Create them with openstack ec2 credentials create and treat the access and secret keys like any other password.
reader can list and view resources; member can also create, change and delete them inside the project; admin is for project or platform administration and should never be given to automation. Grant the smallest role that does the job.
Set an expiry on every application credential — 90 days is a common choice for CI — and rotate early when someone with access leaves. Create the new credential first, update your secret store, test, then delete the old one, so nothing breaks.
Delete the credential immediately (openstack application credential delete or openstack ec2 credentials delete), check recent activity in the project, remove the secret from Git history, issue a new credential and call XcellHost support. If personal data may be affected, assess your DPDP Act and CERT-In reporting duties.
Your console login should always use MFA. Application credentials are designed for non-interactive use and are not subject to the MFA rules on your user, so protect them like passwords: short expiry, smallest role, stored in a secret manager.
Your XcellCloud projects and identity service run in XcellHost's Mumbai region. Secrets you put in third-party tools (GitHub, GitLab, Vault SaaS) are stored wherever those services keep data, so check their locations against your DPDP Act obligations.