Giter Club home page Giter Club logo

Comments (5)

liprec avatar liprec commented on July 18, 2024

As far as I know the task should be able to process secret variables.
Is this also the case with other tasks, eg https://docs.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#secret-variables?

from vsts-release-aas.

jazminelich avatar jazminelich commented on July 18, 2024

I would think it should. What's weird is when I go into variables and I attempt to set a variable for the application key associated with a service principal, it looks like it works fine, but then I run the release and it says "invalid client secret". I wondered if it was because I was copy/pasting the key into the variable and then clicking the lock icon to lock it. So then I tried copy/pasting with it already locked. I also tried typing in the key in case it was adding ASCII characters to the string. After the release fails, it seems like the variables are not being stored because I click on the lock icon and it's empty. This is probably just so that people don't actually go in and see the key, but I'm confused by it. I tried using a variable group as well, and ran into the same issues. Yet somehow, if I simply copy/paste the client secret into the application key field, then the release succeeds just fine. I found that this issue happens with any variables I try to set. I wanted to do the same thing for our Azure SQL credentials and received the same type of error.
image

from vsts-release-aas.

liprec avatar liprec commented on July 18, 2024

You are correct that you cannot retrieve the secret by 'unlocking' it: the value is empty.
And secrets are only hidden for the user output/log and not for the tasks itself. The only thing I can think of is that there are characters in the password that are not correctly parsed by PowerShell.
Can you change the password to one without any special characters?

from vsts-release-aas.

jazminelich avatar jazminelich commented on July 18, 2024

That would make sense. Unfortunately, I am not able to change most of these passwords, but I did notice this when I looked at the YAML, so it does look like it's not recognizing the variables.
image

from vsts-release-aas.

stale avatar stale commented on July 18, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from vsts-release-aas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.