error establishing Datadog connection: error connecting to Datadog API endpoint: 403 Forbidden #5995
-
I have installed Keda in a dedicated keda namespace using helm. The Keda scaledObject, Deployment and datadog secret are in the same namespace. I am isung a ClusterTriggerAuthentication. Getting 403 error when I try to use Datadog scaler following this steps https://keda.sh/docs/2.7/scalers/datadog/
The secrets are valid as curl command works when using the same secrets. KEDA version: 2.14.0 |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 5 replies
-
Hello @Anand03 . The "By default, Secrets loaded from a secretTargetRef must be in the same namespace as KEDA is deployed in (usually keda). This can be overridden by setting a KEDA_CLUSTER_OBJECT_NAMESPACE environment variable for the keda-operator container." |
Beta Was this translation helpful? Give feedback.
-
Someone in Slack had the same issue, and solved it moving the secret to the keda namespace: https://kubernetes.slack.com/archives/CKZJ36A5D/p1720498658146869 |
Beta Was this translation helpful? Give feedback.
-
Hi @arapulido .. Thanks for the prompt reply. As mentioned in the issue description, the secret, scaledobject and the deployment all are in the same namespace |
Beta Was this translation helpful? Give feedback.
-
@Anand03 ah, I thought you mentioned that the deployment, scaledobject and secret were all in the same namespace, not that they were also in the keda namespace. Can you please double check that that's the case? Can you report the output of |
Beta Was this translation helpful? Give feedback.
-
hey! not sure if relevant, but in your first set of screenshots, the secret is called |
Beta Was this translation helpful? Give feedback.
-
It was relevant, I was hoping it would go un-noticed. I had updated the files with correct value |
Beta Was this translation helpful? Give feedback.
-
The screenshots were old.. error still exists after updating everything. I have updated the screenshot in description. |
Beta Was this translation helpful? Give feedback.
-
I am puzzled. With the current information, it should work. It is clear that it is something with how the secrets are being read. How did you create the |
Beta Was this translation helpful? Give feedback.
Again, not sure if relevant, but the keys in that secret are called
api-key
andapp-key
, but in the ClusterTriggerAuthentication object you reference different keys (apiKey
andappKey
)