-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Load StorageQueue SAS Tokens From Secret #514
Comments
Fair ask. Would it make sense if you can pass hard-coded value or a name of env variable to consume which is defined in the config file? Or how would you prefer this? |
My initial thinking would be something along these lines. Default should use an environment variable following this approach name: demo_queue_size
description: "Amount of messages in the 'orders' queue"
resourceType: StorageQueue
accountName: promitor
queueName: orders
sasToken:
environmentVariable: AZURE_STORAGE_SAS_TOKEN
azureMetricConfiguration:
metricName: MessageCount
aggregation:
type: Total However, in some scenarios a fixed one could make sense. It would look like this then: name: demo_queue_size
description: "Amount of messages in the 'orders' queue"
resourceType: StorageQueue
accountName: promitor
queueName: orders
sasToken:
value: ?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D
azureMetricConfiguration:
metricName: MessageCount
aggregation:
type: Total |
That could work i guess. |
It's not really up to Promitor to generate access and should only be a consumer in my opinion. For the time being, I think the configuration proposal from above should be good enough. Kamus looks like a nice library but I think the sheer amount of people will not use this and don't want to enforce this and keep it as simple as possible, sorry! |
Fair enough, I noticed the tokens are getting logged. That's also an issue... |
That's terrible, my bad - I wasn't aware of this and will fix it asap! Tracking in #530 |
Feature is done, only docs remain. |
Thanks @tomkerkhove, worked like a charm! |
Happy to hear and thanks for the suggestion @barakAtSoluto! |
Currently the metrics configuration is loaded from a Config Map object.
When querying an Azure StorageQueue (or other storage account types I assume) you must provide sasToken.
There should be a way to pass that token in a more secure fashion.
Specification
The text was updated successfully, but these errors were encountered: