Pod identity based authentication #3581
Replies: 5 comments 6 replies
-
Hey, did you find any solution for this ? |
Beta Was this translation helpful? Give feedback.
-
Looks like docs are either misleading or incomplete. They kinda imply that pod identity will "just work" while obviously it does not or just requires some extra steps. But anyway, after playing with this I believe that using dedicated keda-operator irsa role with minimal read only permissions is a better way: giving same level of access that app's pod have to completely separated controller is probably not a good idea. Or if it's really needed then perhaps allow keda's role to assume pod's role and then it should work, theoretically. |
Beta Was this translation helpful? Give feedback.
-
Is this issue resolved now ? |
Beta Was this translation helpful? Give feedback.
-
Restarting the keda deployments worked in my case |
Beta Was this translation helpful? Give feedback.
-
@vineetsharma883 restarting the keda deployment does not worked out for me |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have deployed the latest KEDA version 2.8.0 in my EKS Cluster (version v1.22.10-eks-84b4fe6), I'm trying to leverage KEDA for AWS SQS Queue scaler via Pod identity based authentication, however when I follow the documentation https://keda.sh/docs/2.8/scalers/aws-sqs/#example and deploy the scaledobject and triggerauth with the below manifests targeting my POD with IRSA enabled, I could see errors that indicates KEDA is trying to use the underlying worker node's IAM Role to perform sts:AssumeRole action on the IAM role annotated to my POD's ServiceAccount.
Ideally I would like KEDA operator and metric server to use my POD IAM role to connect with SQS Queue. Was looking at the scaler (https://github.com/kedacore/keda/blob/main/pkg/scalers/aws_sqs_queue_scaler.go) and aws IAM auth code (https://github.com/kedacore/keda/blob/main/pkg/scalers/aws_iam_authorization.go) not sure if my above requirement is feasible. Any help/guidance would be very useful.
My POD IRSA works as expected as I was able to test it out by pushing messages to Queue and was able to have the POD read them, also below is the POD STS getcallerIdentity O/P,
{'UserId': 'xxxxxx', 'Account': 'xxxxx', 'Arn': 'arn:aws:sts::xxxxx:assumed-role/consumer-role/botocore-session-xxxxxx', 'ResponseMetadata': {'RequestId': 'xxxxxx', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amzn-requestid': 'xxxxxx', 'content-type': 'text/xml', 'content-length': '500', 'date': 'Tue, 23 Aug 2022 02:34:24 GMT'}, 'RetryAttempts': 0}}
Beta Was this translation helpful? Give feedback.
All reactions