koalaops/Koala Cloud Login

Unified cloud authentication with optional Kubernetes context and registry login.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Oct 27, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: koalaops/cloud-login@324facc4f315fa79181a04a4f7e1c9be275a437d # v1.10.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
imageDocker image URL to auto-detect provider/account/location/registryno
providerCloud provider (aws, gcp, azure, github, dockerhub) - auto-detected if image is providedno
accountAWS account ID / GCP project ID / Azure subscription IDno
locationAWS region (e.g., us-east-1) or GCP location (e.g., us|europe|asia|us-central1|us-central1-a). Not used for Azure.no
clusterKubernetes cluster name (EKS/GKE/AKS)no
login_to_container_registryLogin to container registry (ECR/GAR/ACR/GHCR/Docker Hub)nofalse
repositoriesAWS ECR: repositories to ensure exist (comma-separated)no
acr_registryAzure ACR registry name (e.g., 'myacrname')no
aws_role_to_assumeAWS IAM role ARN to assume (OIDC recommended)no
aws_access_key_idAWS Access Key ID (if not using OIDC)no
aws_secret_access_keyAWS Secret Access Key (if not using OIDC)no
aws_session_durationAWS session duration in secondsno3600
gcp_credentials_jsonGCP Service Account JSONno
gcp_workload_identity_providerGCP Workload Identity Provider resource nameno
gcp_service_accountGCP Service Account emailno
azure_client_idAzure client ID (Service Principal)no
azure_client_secretAzure client secret (Service Principal)no
azure_tenant_idAzure tenant IDno
azure_resource_groupAzure resource group for AKSno
registry_serverContainer registry hostname (e.g., quay.io, ghcr.io, docker.io)no
registry_usernameRegistry usernameno
registry_passwordRegistry password or tokenno
aws_codeartifact_domainAWS CodeArtifact domain nameno
aws_codeartifact_repositoryAWS CodeArtifact repository nameno
aws_codeartifact_toolTool to configure for CodeArtifact (npm, pip, twine, dotnet, nuget, swift, maven, gradle)no
aws_codeartifact_regionRegion for CodeArtifact (defaults to location/aws_region if not specified)no
aws_codeartifact_domain_ownerAWS account ID that owns the CodeArtifact domain (defaults to authenticated account)no
aws_codeartifact_durationDuration of the CodeArtifact token in secondsno43200
aws_codeartifact_namespaceCodeArtifact namespace for the repositoryno
aws_codeartifact_output_tokenOutput the CodeArtifact token instead of using aws codeartifact login (useful for Docker builds)nofalse
github_tokenGitHub token for GHCR (defaults to GITHUB_TOKEN)no
dockerhub_usernameDocker Hub username (alias for registry_username when provider=dockerhub)no
dockerhub_tokenDocker Hub access token (alias for registry_password when provider=dockerhub)no
quay_usernameQuay username (alias for registry_username when provider=quay)no
quay_tokenQuay token (alias for registry_password when provider=quay)no
namedescription
account_idResolved cloud account/subscription/project ID
registry_urlBase registry URL if registry login was requested
kubectl_contextCurrent kubectl context if configured
authenticatedWhether authentication completed successfully