Skip to content

SecureString shouldn't be used warning. #10880

Closed

Description

In the SecureString Class documentation, there is a Warning from the platform-compat team, that Securestring shouldn't be used.
Direct Link to the Warning on Github

I like and used SecureString much in the past.

How do we deal with that?

Activity

  1. added
    Issue-Enhancement
    on Oct 24, 2019
  2. added
    Issue-Question
    and removed
    Issue-Enhancement
    on Oct 24, 2019
  3. iSazonov commented on Oct 24, 2019

    @iSazonov
    Collaborator

    We have to use SecureString for backward compatibility (scripts and public API).

  4. Kriegel commented on Oct 24, 2019

    @Kriegel
    Author

    I am aware of removing SecureString is a breaking change.
    So since PowerShell is running on non Windows systems, which perhaps doesn't support SecureString encryption.
    I think we have to talk about to implement user warnings, either into the documentation and on screen!?
    See also in the docs #4985

  5. vexx32 commented on Oct 24, 2019

    @vexx32
    Collaborator

    I believe this will be addressed during implementation of Steve Lee (@SteveL-MSFT)'s proposal for secrets handling which is currently in the RFC stage. 🙂

    PowerShell/PowerShell-RFC#208

  6. SteveL-MSFT commented on Oct 24, 2019

    @SteveL-MSFT
    Member

    Rain Sallow (/u/ta11ow) (@vexx32) yes and no. The SecureString type still exists and we need it to tell PowerShell when to prompt masked input. The Secrets Management module is more about not having plaintext secrets in scripts and also abstracting remote vaults (like Azure KeyVault) making them seamless to use.

  7. ghost closed this as completedon Oct 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-QuestionResolution-Answered

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions