Skip to content
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

KEDA cannot parse PEM certificate from Azure Container Apps secrets when using GitHub Runner scaler #6083

Closed
krukowskid opened this issue Aug 16, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@krukowskid
Copy link

Report

I am trying to setup KEDA GitHub runner scaler in Azure Container Apps, using GitHub Actions .PEM certificate passed as secret. Unfortunately the only option is to pass .pem content as one liner. I've double-checked the pem and secret itself. The runner container is able to use same secret to register in GitHub.

I've tried multiple formats of one-liner pem - just copy pasted, without spaces, with /n

Expected Behavior

KEDA should connect to GitHub with .pem and scale runners

Actual Behavior

KEDA cannot parse the certificate

Steps to Reproduce the Problem

  1. Use azure container apps
  2. Setup KEDA GitHub scaler options
  3. Set the authenticationRef key as appKey and value as reference to secret with .pem content

Logs from KEDA operator

error creating GitHub App client: could not parse private key: invalid key: Key must be a PEM encoded PKCS1 or PKCS8 key

KEDA Version

2.14.0

Kubernetes Version

None

Platform

Microsoft Azure

Scaler Details

GitHub Runner

Anything else?

No response

@krukowskid krukowskid added the bug Something isn't working label Aug 16, 2024
@JorTurFer
Copy link
Member

Hello,
We don't have any relation with Azure Container Apps, this is the Open Source project and ACA is a Microsoft product. You have to ask directly to ACA team -> https://github.com/microsoft/azure-container-apps/issues
FYI @pauldotyu

@JorTurFer JorTurFer closed this as not planned Won't fix, can't repro, duplicate, stale Aug 18, 2024
@krukowskid
Copy link
Author

@JorTurFer I believe that this is not ACA specific error.

@JorTurFer
Copy link
Member

JorTurFer commented Aug 19, 2024

Although it can be KEDA's error by the message, it can be an implementation error in the ACA product passing any value. Microsoft sells KEDA as a product and offers support for it. If you face with the same error using your own KEDA installation, please send the KEDA operator logs, the ScaledObject/ScaledJob and KEDA version and we will be more than happy trying to help.

I understand that this problem affects you, but we are OSS maintainers and not ACA team members, we don't have all the details around how ACA works to help with this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Ready To Ship
Development

No branches or pull requests

2 participants