Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for workload identity #2619

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

gapra-msft
Copy link
Member

@gapra-msft gapra-msft commented Mar 21, 2024

  1. Marks the servicePrincipal and identity flags as soon to be deprecated. This is replaced by login-type.
  2. Currently we have custom workload identity flags/env variables, but to me it seems reasonable to just rely on the default of the environment variables the Identity SDK uses, this would reduce our test burden.

common/environment.go Outdated Show resolved Hide resolved
cmd/login.go Outdated Show resolved Hide resolved
@gapra-msft gapra-msft linked an issue Apr 3, 2024 that may be closed by this pull request
@gapra-msft gapra-msft marked this pull request as ready for review May 8, 2024 21:37
func (s *WorkloadIdentitySuite) Scenario_SingleFileUploadDownloadWorkloadIdentity(svm *ScenarioVariationManager) {
// Run only in environments that support and are set up for Workload Identity (ex: Azure Pipeline, Azure Kubernetes Service)
if os.Getenv("NEW_E2E_ENVIRONMENT") != "AzurePipeline" {
svm.InvalidateScenario()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: logging skips may be a good idea-- But there's no proper mechanism for this at the moment.

InvalidateScenario was intended to basically be "in no context does this scenario ever make sense, or should it ever exist", like local to local.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add a svm.Skip thing and enhance the e2e framework then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for AAD Workload Identity
4 participants