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
While using below KeptnMetricsProvider and KeptnMetric when I am trying to use a DQL query I am getting error as Err Msg: could not unmarshal secret containing access credentials: invalid character 'd' looking for beginning of value
Quick update: I work with @kekjoshi
Wanted to provide an update since we made some progress, and to save anyone else trouble of looking into the same.
We found that this issue was due to KeptnMetricsProvider type: dql requires a secret in a specific format (different than type:dynatrace). We could not find this documented in the Docs or examples, ie https://keptn.sh/stable/docs/reference/crd-reference/metricsprovider/
But it seems clear from the provider implementation and tests that the format for the secret string value should be: {"token": "dt0s08.XX.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", "authUrl":"https://my-auth-url.test"}
So we have generated an oauth token and updated the secret in this format.
Our new, related issue: Error : Err Msg: secret contains invalid credentials: secret does not start with required prefix dt0s08: the Dynatrace token has an invalid format
So looking in the code, it seems that only tokens that begin with that prefix are accepted. DT docs on token prefixes. User generated oAuth tokens have a different prefix, and so, are rejected.
We're checking with DT Support to see if we can get a token that will be accepted here. Curious to see if this is a hard requirement, or an artifact of development...
Yes, this seems to be a bug. Care to contribute a fix for it @BDunneInTheSun@kekjoshi ?
Should be easy to just validate against the dt0s prefix instead of dt0s08.
Hi Team,
While using below KeptnMetricsProvider and KeptnMetric when I am trying to use a DQL query I am getting error as
Err Msg: could not unmarshal secret containing access credentials: invalid character 'd' looking for beginning of value
Ant the same is running fine if I am using builtin query and
spec:
type:dynatrace
Could you please help in debugging the root cause.
The text was updated successfully, but these errors were encountered: