GithubHelp home page GithubHelp logo

AzSK_SVTs release task generates a warning about service principal secret being included in a file on a hosted VM (Only on AzSK Version 3.13.0) about devopskit HOT 3 OPEN

azsk avatar azsk commented on July 23, 2024 1
AzSK_SVTs release task generates a warning about service principal secret being included in a file on a hosted VM (Only on AzSK Version 3.13.0)

from devopskit.

Comments (3)

 avatar commented on July 23, 2024 1

I keep thinking we have a problem in our build because of this guy. The actual task runs fine, but one of the many, many lines of output is this tiny little warning that I hope is spurious. Would appreciate a fix or guidance.

from devopskit.

ankrause avatar ankrause commented on July 23, 2024

This appears to be an issue in 3.13.0 and above. I'm using the latest version of the SVTs task (v4.0.0) and I still get this warning on hosted releases.

from devopskit.

rafamarrara avatar rafamarrara commented on July 23, 2024

Does AzSK_SVT task use Azure PowerShell cmdlet Connect-AzAccount with -ServicePrincipal parameter?

I was troubleshooting another issue with similar warning msg and I found this issue here with the same msg.

 <data name="ServicePrincipalWarning" xml:space="preserve">
    <value>The provided service principal secret will be included in the '{0}' file found in the user profile ( {1} ). Please ensure that this directory has appropriate protections.</value>
 </data>

https://github.com/Azure/azure-powershell/blob/master/src/Accounts/Accounts/Properties/Resources.resx#L411

        if (azureAccount.Type == AzureAccount.AccountType.ServicePrincipal && string.IsNullOrEmpty(CertificateThumbprint))
        {
            azureAccount.SetProperty(AzureAccount.Property.ServicePrincipalSecret, password.ConvertToString());
            if (GetContextModificationScope() == ContextModificationScope.CurrentUser)
            {
                var file = AzureSession.Instance.ARMProfileFile;
                var directory = AzureSession.Instance.ARMProfileDirectory;
                WriteWarning(string.Format(Resources.ServicePrincipalWarning, file, directory));
            }
        }

https://github.com/Azure/azure-powershell/blob/master/src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs#L327

I hope this info can help you here :-)

from devopskit.

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.