Skip to content

PSAvoidUsingPlainTextForPassword is overzealous and wrong #371

Closed
@Jaykul

Description

@Jaykul

I have this parameter in one of my functions:

        # The user name to fetch roles for
        [Parameter(Position=1, Mandatory=$True, ValueFromPipelineByPropertyName=$true, ParameterSetName='ByName')]
        [string]$AuthenticatedUser,

It causes a Warning:

PSAvoidUsingPlainTextForPassword: Parameter '$AuthenticatedUser' should use SecureString, otherwise this will expose sensitive information. See ConvertTo-SecureString for more information.

This isn't a password. It's a USER NAME. Go Away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions