Skip to content
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

Creating a Secret #215

Open
3 tasks done
BurtJohnsonfbl opened this issue Sep 20, 2023 · 1 comment
Open
3 tasks done

Creating a Secret #215

BurtJohnsonfbl opened this issue Sep 20, 2023 · 1 comment

Comments

@BurtJohnsonfbl
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest released version
  • Search the existing issues.

Steps to reproduce

According to the documentation I've seen, Set-Secret is supposed to create Secrets in Keeper. However, I cannot get that done thru PowerShell.

Set-Secret -Name "Just A Test" -Secret "P@ssVord" -Vault Keeper_SER_Creds

This returns an error "Set-Secret: Set-Secret can be used only on a single field"

I am probably doing something wrong, so I'm not sure if it is documentation opportunity or a bug or a feature.

Thanks, Burt

Expected behavior

I expect it to create an entry in Keeper.

Actual behavior

Error thrown as shown above.

Error details

Exception             :
    Type    : Microsoft.PowerShell.Commands.WriteErrorException
    Message : Set-Secret can be used only on a single field
    HResult : -2146233087
CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Microsoft.PowerShell.SecretManagement.SetSecretCommand
InvocationInfo        :
    MyCommand        : Set-Secret
    ScriptLineNumber : 1
    OffsetInLine     : 1
    HistoryId        : 1
    Line             : Set-Secret -Name "Just A Test" -Secret "P@ssVord" -Vault Keeper_SER_Creds
    PositionMessage  : At line:1 char:1
                       + Set-Secret -Name "Just A Test" -Secret "P@ssVord" -Vault Keeper_SE …
                       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    InvocationName   : Set-Secret
    CommandOrigin    : Internal
ScriptStackTrace      : at Set-Secret, C:\Users\E015401\Documents\PowerShell\Modules\SecretManagement.Keeper\16.6.1\SecretManagemen
t.Keeper.Extension\SecretManagement.Keeper.Extension.psm1: line 73
                        at <ScriptBlock>, <No file>: line 19
PipelineIterationInfo :

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.0-preview.5
PSEdition                      Core
GitCommitId                    7.4.0-preview.5
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

-AND-

Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

Not sure what Crescendo is

Visuals

No response

@SydneyhSmith
Copy link
Collaborator

Thanks @BurtJohnsonfbl from the SecretManagement perspective it looks like you are doing everything correct, the error message you are seeing is coming from the SecretManagement.Keeper module so I suggest opening an issue in that repo--thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants