You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
Create a secrets file. Put { "Rollbar": { "AccessToken": "abc1234"}}. Examine RollbarLocator.RollbarInstance.Config.AccessToken notice its not the one from secrets.
Expected behavior
Get the config setting from configuration and let ASPNET Core decide where to look
The text was updated successfully, but these errors were encountered:
@VictorioBerra , correct, currently, we are only supporting loading configuration either via appsettings.json, or app.config, or any other similarly-formatted file (either JSON or XML based using dedicated Rollbar section): https://docs.rollbar.com/docs/logger-configuration.
It is not really a bug but a scenario we never considered to support yet.
We may consider supporting this scenario but, first, we would like to learn what is the motivation for it. The access token is stored on a server under your control. The token does appear in the web requests posting the payload so it is not an absolute secret on the big scale.
Describe the bug
If you have your access token in a secrets file for example, this will not get loaded. Same with environment vars, CLI args, etc.
https://github.com/rollbar/Rollbar.NET/blob/master/Rollbar/NetCore/AppSettingsUtility.cs#L181
To Reproduce
Create a secrets file. Put
{ "Rollbar": { "AccessToken": "abc1234"}}
. ExamineRollbarLocator.RollbarInstance.Config.AccessToken
notice its not the one from secrets.Expected behavior
Get the config setting from configuration and let ASPNET Core decide where to look
The text was updated successfully, but these errors were encountered: