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

Errors when using WorkloadIdentityFederation auth scheme #383

Open
freerangeeggs opened this issue Oct 5, 2023 · 2 comments
Open

Errors when using WorkloadIdentityFederation auth scheme #383

freerangeeggs opened this issue Oct 5, 2023 · 2 comments

Comments

@freerangeeggs
Copy link

With the introduction of Workload Identity Federation to Azure Pipelines (currently in preview) we've hit an error when running this pipeline task.

Logging in using ApplicationTokenCredentials, authScheme is 'WorkloadIdentityFederation'
Unhandled exception during ARM Outputs Task Error: secret must be a non empty string.
    at new ApplicationTokenCredentials (webpack://arm-outputs/./node_modules/ms-rest-azure/lib/credentials/applicationTokenCredentials.js?:83:13)
    at AzureDevOpsArmOutputsTaskHost.getCredentials (webpack://arm-outputs/./dist/index.js?:100:31)
    at AzureDevOpsArmOutputsTaskHost.eval (webpack://arm-outputs/./dist/index.js?:33:40)
    at next (native)
    at eval (webpack://arm-outputs/./dist/index.js?:8:71)
    at __awaiter (webpack://arm-outputs/./dist/index.js?:4:12)
    at AzureDevOpsArmOutputsTaskHost.run (webpack://arm-outputs/./dist/index.js?:20:26)
    at eval (webpack://arm-outputs/./dist/index.js?:118:31)
    at Object../dist/index.js (/home/vsts/work/_tasks/ARM Outputs_584bcff2-3353-4f11-872b-6ba01267a972/6.0.0/index.js:131:1)
    at __webpack_require__ (/home/vsts/work/_tasks/ARM Outputs_584bcff2-3353-4f11-872b-6ba01267a972/6.0.0/index.js:30:30)
##[error]Error: secret must be a non empty string.

We've reverted as we were testing the preview, but assuming this feature will eventually come out of preview I'd say it will need to be covered.

Thank you.

@pcoetzer-hyrdeiot
Copy link

Adding a +1 to this

Noted that it is currently in public preview, so reverted back until it is production release

MS document on the feature found here: Connect to Microsoft Azure with an ARM service connection

Cheers.

@andrewholler
Copy link
Contributor

andrewholler commented Oct 23, 2023

This is an open issue for us as well. All of the native Azure tasks for pipelines supports this functionality so I expect it will continue to be supported into the future.

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

No branches or pull requests

3 participants