-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Replace hardcoded cloud-to-scope mappings with static SSH auth scope and deprecate SshAuthScope parameter #29228
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
base: main
Are you sure you want to change the base?
Changes from all commits
f8e4057
5d7a413
031e850
3802250
a165a45
0aee3e8
7f1d4be
8745549
9e0c724
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -226,7 +226,7 @@ public string DataLakeAudience | |
| public string MicrosoftGraphUrl { get; set; } | ||
|
|
||
| [Parameter(ParameterSetName = EnvironmentPropertiesParameterSet, Mandatory = false, ValueFromPipelineByPropertyName = true, | ||
| HelpMessage = "The scope for authentication when SSH to an Azure VM.")] | ||
| HelpMessage = "This parameter is deprecated and will be removed in a future release. The SSH authentication scope is now determined automatically and does not need to be configured.")] | ||
| public string SshAuthScope { get; set; } | ||
|
Comment on lines
228
to
230
|
||
|
|
||
| protected override bool RequireDefaultContext() | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -197,7 +197,7 @@ public string DataLakeAudience | |||||||||||||||||||||||||||||||||||||||||
| public string MicrosoftGraphUrl { get; set; } | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| [Parameter(ParameterSetName = EnvironmentPropertiesParameterSet, Mandatory = false, ValueFromPipelineByPropertyName = true, | ||||||||||||||||||||||||||||||||||||||||||
| HelpMessage = "The scope for authentication when SSH to an Azure VM.")] | ||||||||||||||||||||||||||||||||||||||||||
| HelpMessage = "This parameter is deprecated and will be removed in a future release. The SSH authentication scope is now determined automatically and does not need to be configured.")] | ||||||||||||||||||||||||||||||||||||||||||
| public string SshAuthScope { get; set; } | ||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||
| public string SshAuthScope { get; set; } | |
| [Obsolete("This parameter is deprecated and is ignored. SSH authentication scope is determined automatically.")] | |
| public string SshAuthScope | |
| { | |
| get | |
| { | |
| // This parameter is deprecated and intentionally ignored. | |
| // Returning null ensures that any existing code paths that read this | |
| // property will not use a user supplied value. | |
| return null; | |
| } | |
| set | |
| { | |
| if (!string.IsNullOrEmpty(value)) | |
| { | |
| // Emit a warning so users know this parameter no longer affects SSH authentication. | |
| WriteWarning("The SshAuthScope parameter is deprecated and is ignored. SSH authentication scope is now determined automatically and does not need to be configured."); | |
| } | |
| } | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These ChangeLog entries are fairly implementation-focused (e.g., “cloud-to-scope mappings in SSH credential factory”). Since the ChangeLog is user-facing, consider rephrasing in terms of user impact (e.g., SSH certificate auth now works across Azure clouds without configuring
-SshAuthScope, and-SshAuthScopeis deprecated).