Skip to content

refactor(auth): use CLI-based authentication for GCE and Azure#419

Merged
dirien merged 1 commit intomainfrom
dirien/cli-auth-refactor
Jan 2, 2026
Merged

refactor(auth): use CLI-based authentication for GCE and Azure#419
dirien merged 1 commit intomainfrom
dirien/cli-auth-refactor

Conversation

@dirien
Copy link
Copy Markdown
Owner

@dirien dirien commented Jan 2, 2026

Summary

  • Refactored GCE authentication to use Application Default Credentials (ADC) instead of JSON keyfile
  • Removed unused authFile parameter from Azure's NewAzure() function
  • Updated golangci-lint config to v2 format

Breaking Changes

GCE

  • NewGCE(keyfile, zone string) changed to NewGCE(zone string)
  • GCE_KEY environment variable is no longer used
  • New required environment variables: GOOGLE_PROJECT and GOOGLE_SERVICE_ACCOUNT_EMAIL
  • Optional: GOOGLE_APPLICATION_CREDENTIALS for service account JSON (if not using gcloud auth application-default login)

Azure

  • NewAzure(authFile string) changed to NewAzure()
  • AZURE_AUTH_LOCATION environment variable is no longer used (it was never actually used in the implementation)

Test plan

  • go build ./... passes
  • go test ./... passes
  • golangci-lint runs successfully

- GCE: Replace JSON keyfile auth with Application Default Credentials (ADC)
- Azure: Remove unused authFile parameter from NewAzure()
- Update golangci-lint config to v2 format
- Document breaking changes in README

Signed-off-by: Engin Diri <engin.diri@ediri.de>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Jan 2, 2026

@dirien dirien merged commit 72fa603 into main Jan 2, 2026
4 checks passed
@dirien dirien deleted the dirien/cli-auth-refactor branch January 2, 2026 12:11
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 1, 2026

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant