-
Notifications
You must be signed in to change notification settings - Fork 57
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
Get: auto redirect is disabled - azure-devops-exporter k8s #56
Comments
can you post your settings (dont post PAT token and org)? |
Sure.
|
if you use |
Even without AZURE_DEVOPS_URL i've got same issue.
|
Can you access the Azure DevOps API with the accesstoken using Postman? There should be not a redirect (which means you're redirected to the login page). BTW: you should not overcommit memory, the Azure DevOps exporter should not use more then 512 Mi. Overcommiting memory could trigger a Kernel OOMKiller. |
I tried with PAT and Azure AD access token and in Postman I get Azure Devops Sing In page. |
The exporter only works with PAT (because it doesn't offer AzureAD auth). The 2fa should not be active when using PAT token because it's a technical authentication. Please double check that your PAT token is correct configured (needs to be encoded base64 inside a Kubernetes secret). |
Thank you, I generated new PAT and everything is working... :) |
Hey guys, I've got exactly the same issue today.
I tried to re-generate my PAT (what helped @Crulex above), also to generate a completely new one, I still get this:
BTW, adding
doesn't help to see any more details. Any help would be much appreciated. |
Have you created a PAT for the correct organisation? Please dont use a "all accessible org" PAT. |
@Bootcody + You need to encode it in base64 before you paste it into secret. |
Thanks for your prompt response @mblaschke! When I feed this PAT in the deployment file as plain text, it all works fine. I was testing this whole morning and see that my PAT is not being picked up properly. This type of error basically means ADOE doesn't have proper PAT passed over. Having no sh/ash/bash makes troubleshooting a bit slower as well... But any advice from this point? What exactly does ADOE expect from the token file? UPD: You know how it works, right? You do a lot of testing. Write huge text with details and then find out that the issue is actually you... Apparently, using a PS script to encode the string was not the best idea. Right after publishing this response I tried with another encoding option and suddenly all started working -.- |
have you used this? $patb64 = [Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($Pat)) then you get a utf16 encoded pat token so you should use: $patb64 = [Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($Pat)) |
use helm to deploy your apps to AKS/kubernetes. there you can easily encode values using base64: |
Indeed, Unicode was used at first. With ASCII it works fine. Thanks for the advice, I will take a look. Still fairly new to the subject. |
solution: please make sure your PAT is up2date and encoded correctly if you use them in a Kubernetes secret: as ASCII base64 (use helm |
Hello,
could you please help, I am trying to deploy this exporter in k8s cluster and got CrashLoopBackOff on the pod.
Seems like exporter is not able connect to Azure REST API, I generated PAT with full access permissions.
From the kctl logs I got:
_
_
Regards,
M
PS. This link is working correctly in web browser - it is redirecting to Azure REST API (https://dev.azure.com/(Organization_name)/_apis/projects?%24top=100&api-version=5.1
The text was updated successfully, but these errors were encountered: