GithubHelp home page GithubHelp logo

Comments (4)

PaulHigin avatar PaulHigin commented on May 30, 2024

This is kind of a chicken and egg thing. SecretStore needs a configuration when loaded and it will default to the interactive password required configuration by default.

You can avoid this by running Set-SecretStoreConfiguration first thing after installing the module (before you register SecretStore as an extension vault).

Alternatively, you can also use the Reset-SecretStore to force set the configuration. This causes any secret data to be deleted, but since you haven't yet added any secret data, it should be Ok to use.

PS C:\> Register-SecretVault -ModuleName Microsoft.PowerShell.SecretStore -Name SecretStore -DefaultVault

PS C:\> Reset-SecretStore -Authentication None -Interaction None -Force
WARNING: !!This operation completely removes all SecretStore module secrets and resets configuration settings to new values!!

PS C:\> Set-Secret -Name Testing -Secret 'Testing123'

PS C:\> Get-SecretInfo

Name    Type   VaultName
----    ----   ---------
Testing String SecretStore

PS C:\> Get-Secret -Name Testing -AsPlainText
Testing123

from secretstore.

chadbaldwin avatar chadbaldwin commented on May 30, 2024

@PaulHigin, thanks! that appears to work for me.

I would think that when the vault is initially configured it would splat the parameters from -VaultParameters and use those as the new defaults. It seems odd that in your example, the "Authentication" and "Interaction" parameters are specified twice.

from secretstore.

PaulHigin avatar PaulHigin commented on May 30, 2024

Whoops, I just copied/pasted. There is no need to pass Authentication/Interaction as vault parameters, as SecretStore does not currently handle them.

from secretstore.

chadbaldwin avatar chadbaldwin commented on May 30, 2024

@PaulHigin Ah! Okay, that completely clears that up then. Thanks! I guess since this isn't a bug, and it's intentional (though I'd admit a bit of an odd workflow) I'll close with comment. Thanks!

from secretstore.

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.