Azure / Azure/azure-powershell

[Feature]: Get-AzRedisCacheKey should use securestring to protect key in result

Open
#18,308 2 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad feature-request Redis Cache Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description of the new feature

Below is current return:
```
Get-AzRedisCacheKey -ResourceGroupName "MyResourceGroup" -Name "MyCacheKey"

PrimaryKey : pJ+**********=
SecondaryKey : pJ+**********=
```

data type of PrimaryKey and SecondaryKey should be securestring.

### Proposed implementation details (optional)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start from the Get-AzRedisCacheKey cmdlet and trace how its PrimaryKey and SecondaryKey result properties are defined and returned. Check the existing cmdlet tests, if present, for the result shape and add coverage for the requested types. Done means both properties are returned as SecureString values while the cmdlet continues to retrieve Redis cache keys correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, powershell, redis
Domain
cli, cloud, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.