Home›Resources›Tools Center›Developer Tools›OpenStack Credentials

XcellDev|OpenStack Credentials

One key per job — scoped, expiring, revocable.

Application credentials, clouds.yaml and tokens for XcellCloud.

Application credentials
clouds.yaml & openrc generator
Keystone v3 tokens explained
reader & member roles
Rotation & leak playbook
Secrets stay in your browser
✦Ask AI About XcellCloud Credentials
Powered by
Built on OpenStack Keystone
Free with XcellCloud · no per-key charges
clouds.yamlCLI · laptop
Keystone v3tokens · mumbai-1
CI secret storemasked variables
S3 toolsEC2-style keys
Credentials · web-prodLIVE
KEYSTONE V3 · MUMBAI-1 · create
CreateUseRotateRevoke
0ACTIVE KEYS
0API CALLS
—SCOPE
0DENIED (403)
TOKEN0%
EXPIRY—
LIVE AUTH ACTIVITYSAMPLE · NO REAL KEYS
    ISO 27001 & 20000-1 certifiedMicrosoft Gold Partner10,000+ customersSince 199999.95% uptime SLA24×7 NOC + SOC
    Overview

    Every 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.

    Stop sharing passwords with scripts

    For developers, DevOps teams, MSPs and IT partners using XcellCloud in India.

    Scoped · Expiring · Revocable
    Free with XcellCloudKeystone v3
    Works with OpenStack CLI Terraform openstacksdk gophercloud AWS CLI · boto3 Kubernetes
    Credentialapp credential ID + secret
    POST /v3/auth/tokens
    Keystone v3checks roles & expiry
    X-Subject-Token
    Scoped tokenone project · expires
    X-Auth-Token
    XcellCloud APIsNova · Neutron · Cinder · Octavia
    Ways to authenticate

    What you get with XcellCloud

    Four kinds of credential, all free. Pick the tool you use — each row shows how that credential plugs in.

    Console login with MFAFor people · one login per person, never sharedFree
    clouds.yaml / openrc generatorOn this page · runs in your browserFree
    Access review with a cloud engineerRoles, rotation, CI secrets · on requestTalk to us

    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.

    Why to choose XcellCloud for secure API access

    Application credentials

    Per-project keys with their own roles and expiry — no personal passwords in scripts.

    Least-privilege roles

    reader for reporting, member for automation — admin stays with people.

    Revoke in seconds

    Delete one credential and its tokens stop working; nobody else is affected.

    Standard OpenStack

    Keystone v3 — the same files and variables every OpenStack tool already reads.

    Identity in Mumbai

    Projects and the identity service run in XcellHost's Indian data centres.

    MFA for people

    Console sign-in protected with MFA; automation never uses a human login.

    24×7 help from Mumbai

    Call the NOC if a key leaks at midnight — we help you lock it down.

    ISO 27001 operations

    XcellHost runs ISO 27001 & 20000-1 certified operations since 1999.

    Good credential hygieneOne key per jobAlways set an expirySmallest roleSecret manager, not GitRotate every 90 daysDelete unused keysReview quarterly

    Shared Passwords VS Application Credentials

    What changes when every script, pipeline and tool gets its own key.

    • ✕Admin password pasted into scripts
    • ✕One login shared by the whole team
    • ✕Never expires
    • ✕Full rights to everything
    • ✕Changing it breaks every job at once
    • ✕Can't tell which tool made a change
    • ✕Leaver still knows the password
    • ✕Secrets committed to Git
    • ✓Separate ID and secret per job
    • ✓Every pipeline has its own key
    • ✓Expiry date set on creation
    • ✓Only reader or member on one project
    • ✓Rotate one key, nothing else changes
    • ✓Named keys show up in activity
    • ✓Delete their keys, done in seconds
    • ✓Stored in Vault or CI secrets

    Secure API Access In 5 Easy Steps

    From console login to your first authenticated call — about ten minutes.

    01Sign in with MFAconsole
    02Create an application credentialrole · expiry
    03Save the secret oncesecret manager
    04Generate clouds.yamlthis page
    05Run openstack token issueyou're in

    Tools That Read These Credentials

    OpenStack CLITerraformOpenTofuopenstacksdkgophercloudKubernetes CCMAWS CLIboto3rclones3cmdHashiCorp VaultGitHub ActionsGitLab CIAnsible

    Generic tool names only; anything that speaks Keystone v3 or reads clouds.yaml works the same way.

    Included with every XcellCloud account
    Application credentials
    Keystone v3 tokens
    reader · member roles
    EC2-style S3 keys
    Instant revocation
    MFA console sign-in
    "Which credential should I use?"

    Answer four questions — get the right credential and how to set it up.

    Each answer moves the scores. The winner comes with the exact command and where to keep the secret.

    RecommendedApplication credential—

    shell

    clouds.yaml / openrc generator

    Fill in the form. Download clouds.yaml, secure.yaml and openrc.

    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.

    Stays on this device. Typed values never leave your browser. Files you download contain whatever you type — keep them out of Git and chmod 600 them.
    Authenticate with
    Files
    Letters, digits, - and _ only
    Must start with https:// and end in /v3
    Files readyplaceholders0 files
    clouds.yaml

    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.

    Application credentials

    Create one per job — with a role and an expiry.

    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.

    shell
    # 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.
    clouds.yaml, secure.yaml & openrc

    Tell your tools where to log in — without hard-coding secrets.

    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
    # ~/.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 expires
    Keystone v3 tokens

    Credential in, scoped token out — valid for a limited time.

    POST /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.

    shell
    # 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)
    }
    EC2-style credentials · for S3 access where enabled

    Access key + secret key — for S3-compatible tools.

    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.

    shell
    # 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.

    Roles & project scoping

    Give each key the smallest role — on one project.

    Keystone's default roles nest: admin includes member, which includes reader. A credential can only hold roles its owner already has on that project.

    Actionreadermemberadmin
    List and view servers, networks, volumes✓✓✓
    Create, resize and delete servers✕✓✓
    Change security-group rules✕✓✓
    Create application credentials (own)✓✓✓
    Manage users and role assignments✕✕✓
    Suitable for automationread-only✓✕
    project · web-devterraform-dev memberdev team member
    project · web-prodterraform-prod membermonitoring-bot reader
    project · backupsbackup-s3 EC2 keysauditor reader

    Separate projects per environment mean a dev key can never touch production. Exact policies can differ per service — test with a reader key first.

    Credential lifecycle timeline

    Create → use → rotate → revoke — watch it play out.

    Three scenarios on one timeline. Drag the playhead or press play; the panel explains each moment.

    Day 0

    Storing secrets & rotation

    Keep secrets in a vault — and rotate without downtime.

    Secrets belong in a secret manager or your CI's protected variables, never in code, chat or tickets. Rotation is four commands.

    shell
    # 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>
    shell
    # 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-ci
    If a credential leaks

    Revoke first, investigate second — in this order.

    A key pushed to a public repository can be found by scanners within minutes. Speed matters more than perfection.

    1Delete the credential

    openstack application credential delete <name> — or ec2 credentials delete. Its tokens stop working.

    minute 0
    2Call XcellHost 24×7

    +91 22 6711 1555 — we help check the project and lock things down.

    minute 5
    3Check what changed

    New servers, keypairs, security-group rules, floating IPs, users — openstack server list --long.

    first hour
    4Purge it from Git

    Rewrite history (e.g. git filter-repo), then rotate anything else in the same file.

    same day
    5Issue a new key

    Smallest role, short expiry, stored in your secret manager.

    same day
    6Assess reporting duties

    If personal data may be affected: DPDP Act breach intimation and CERT-In's 6-hour incident reporting.

    within 6 h

    India 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.

    SECURITY & COMPLIANCE

    Security & Compliance

    Choose credential scopes and handling practices that match your workload and organisational policies.

    Least Privilege

    Scope application credentials and roles to the required project and operations.

    Secret Storage

    Keep secrets outside source control and use your approved secret manager.

    Credential Lifecycle

    Set expiry dates where supported, rotate credentials and revoke unused access.

    Transport Security

    Validate TLS certificates and use the documented HTTPS endpoints.

    Audit & Review

    Review access and audit records with your cloud administrators.

    Incident Response

    Revoke exposed credentials promptly and investigate affected workloads.

    Frequently Asked Questions

    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.