-
Notifications
You must be signed in to change notification settings - Fork 280
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
azuredevops_serviceendpoint_npm not triggering a change in plan when a new access_token is provided (if the first 71 characters are the same) #692
Comments
Just hit this too interestingly enough. Trying to figure out where that 71 character limit is coming from. I'm working on adding the JFrog v2 connections and really thought I had messed something up when testing our rotation logic. |
Here's the culprit: golang/go#36546 |
I'm switching to Argon2 on our fork. We'll be using Artifatory JWTs with a bunch of service connection types so really they all need to switch. Only downside should be that anyone updating the provider will see all their secrets detect a change and update on the first run. Looks like bcrypt has some constant prefixes to its hashes so I suppose with a bit more work the transition could be improved. I'm planning to submit a PR for the Artifactory v2 connections next week, not sure if the hashing stuff should be in that or Microsoft wants to take on updating that. |
This is a bug cause by the hash function used to encrypt the |
The length limitation is going to affect a number of other service connections for us. Namely all generic, Artifactory and Docker Registry connections since we use them with Artifactory that has long JWTs as passwords. |
Community Note
Terraform (and Azure DevOps Provider) Version
Latest as of 18/01/2023: Terraform v1.3.7, AzDO provider v0.3
Affected Resource(s)
azuredevops_serviceendpoint_npm
azuredevops_serviceendpoint
as well.Terraform Configuration Files
Debug Output
Expected Behavior
Terraform plan changes the service connection when a new 'access_token' is supplied
Actual Behavior
The Jfrog Artifactory produces an 809 characters access token, and the first 71 characters, unfortunately, does not change for a same user. This causes the service connection to stop working.
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: