pspete / psPAS

PowerShell module for CyberArk Privileged Access Security REST API
https://pspas.pspete.dev
MIT License
286 stars 90 forks source link

SSH Public Key cmdlets - Username validation issue when using UPN #445

Closed MarcGroot closed 1 year ago

MarcGroot commented 1 year ago

Describe the issue In some cmdlets the absence of the dot is validated, which causes problems in environments where e.g. UPN is used and cmdlets have to be edited locally.

To Reproduce Steps to reproduce the behavior:

  1. In Get-PASPublicSSHKey, Add-PASPublicSSHKey or Remove-PASPublicSSHKey use username with "."

Expected behavior Regular expression will allow to use a username of the form username@domain.com

Screenshots & Console Output image

image

Your Environment Include relevant details about your environment

pspete commented 1 year ago

HI @MarcGroot

Thanks for highlighting this - will investigate for the next module release.