Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
User Secrets volume not mapped for Worker SDK #223
When you use the Web SDK for Docker, the User Secrets folders are correctly mapped:
However, for the Worker SDK, secrets are enabled by default (with a temporary workaround), but the secrets volume is not mapped.
I'm working around this today by mapping myself:
<Project Sdk="Microsoft.NET.Sdk.Worker"> <PropertyGroup> <TargetFramework>netcoreapp3.1</TargetFramework> <UserSecretsId>89595f67-a846-41e5-a74e-f876488ea8be</UserSecretsId> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerfileRunArguments>-v "$(AppData)/Microsoft/UserSecrets:/root/.microsoft/usersecrets:ro"</DockerfileRunArguments> </PropertyGroup>
The expected behavior is to be able to use user secrets in a worker SDK whether I'm debugging on the host machine or inside a container.
HI @jbogard ,
Do user-secrets get loaded by just adding the volume mapping -
Doesn't seem to load user-secrets, is there some step that I am missing?