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

ApiKey required with 2.9.4-preview4 #2181

Closed
Haeavar opened this issue Feb 5, 2024 · 2 comments
Closed

ApiKey required with 2.9.4-preview4 #2181

Haeavar opened this issue Feb 5, 2024 · 2 comments
Labels
feature request New feature or request
Milestone

Comments

@Haeavar
Copy link
Contributor

Haeavar commented Feb 5, 2024

Describe the bug
With the latest preview version 2.9.4-preview4 we are no longer able to use the OpcPublisher REST Api. It requires an ApiKey. Since we do not use the IoTEdge we do not have this info available in the device twin.
Do you have any other options to get the ApiKey? Or is it possible to disable the authorization check?

To Reproduce
Steps to reproduce the behavior:

  1. Start OpcPublisher with --DefaultTransport=Dapr

With 2.9.4-preview3 we were still be able to access the REST Api without an ApiKey.

@marcschier marcschier added this to the 2.9.4 milestone Feb 5, 2024
@marcschier marcschier added the feature request New feature or request label Feb 5, 2024
@marcschier
Copy link
Collaborator

I am adding a way to set the Api Key via command line or using an "ApiKey" environment variable. However, I will also allow loading secrets from a file (.env format). The file name can be set through a "ADDITIONAL_CONFIGURATION" environment variable, the default will be /run/secrets/.env. The content then can include "ApiKey=" and this will then securely be included in the container. This should nicely integrate with docker secrets.

@Haeavar
Copy link
Contributor Author

Haeavar commented Feb 9, 2024

Hi @marcschier . Do you have already a new preview build containing this feature?

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

No branches or pull requests

2 participants