cli icon indicating copy to clipboard operation
cli copied to clipboard

Unable to start sidecar when using secrets components with dapr run -f

Open bondz opened this issue 1 year ago • 8 comments

Expected Behavior

When running the a daprized app using the dapr cli, it should be able to read secrets defined in a configuration

Actual Behavior

The dapr sidecar is never started.

Steps to Reproduce the Problem

See a small repro here - https://github.com/bondz/dapr-secrets

Clone the repo.

cd my-service
npm install

There's a single secret defined in the .dapr/secrets.json file that the app (my-service) reads.

When running the app directly using dapr multi-app run in the root directory, the sidecar is never started.

dapr run -f .

It hangs for a while, eventually errors and exits.

alt text

However, if you use vscode and run the app using the launch configuration, passing the config flags directly, it works fine.

alt text

bondz avatar Jun 19 '24 21:06 bondz

When using dapr run -f ., daprd is looking for the file in the my-service directory rather than relative to where dapr run was invoked.

Moving the secret file to the same directory as the service is a workaround.

bondz avatar Jun 20 '24 03:06 bondz

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Jul 20 '24 03:07 dapr-bot

Bot comment

bondz avatar Jul 20 '24 10:07 bondz

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Aug 19 '24 10:08 dapr-bot

Bot comment

bondz avatar Aug 19 '24 11:08 bondz

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Sep 18 '24 11:09 dapr-bot

Bot comment

bondz avatar Sep 18 '24 15:09 bondz

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Oct 18 '24 15:10 dapr-bot

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Nov 17 '24 15:11 dapr-bot

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Dec 17 '24 15:12 dapr-bot

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Jan 16 '25 16:01 dapr-bot

Bot comment

bondz avatar Jan 16 '25 16:01 bondz

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged (pinned, good first issue, help wanted or triaged/resolved) or other activity occurs. Thank you for your contributions.

dapr-bot avatar Feb 15 '25 16:02 dapr-bot