-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Writing a cert file to a directory without permission system may fail #8994
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.VM SSHbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.VM SSHbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
In this line, after writing a certificate to file, the extension will set the mode. However if that file is located in a directory where the permission is not available, like a memory file system, function
set_modemay either crash or raise an exception. There should be an option to disable setting the mode or ignore the failure with a warning message.Related command
az ssh cert --public-key-file id_rsa.pub --file x:\memoryfsErrors
Issue script & Debug output
Expected behavior
Raise an exception and give us an option to not set mode
Or print an warning
Environment Summary
Additional context
No response