-
Notifications
You must be signed in to change notification settings - Fork 695
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
vmss linux ssh for local admin enabled #1820
base: master
Are you sure you want to change the base?
vmss linux ssh for local admin enabled #1820
Conversation
plugins/azure/virtualmachinescaleset/scaleSetLinuxSSHEnabled.js
Outdated
Show resolved
Hide resolved
domain: 'Compute', | ||
description: 'Ensures that Azure Virtual Machine scale sets with Linux OS has SSH enabled.', | ||
more_info: 'SSH is an encrypted connection protocol that allows secure sign-ins over unsecured connections. SSH is the default connection protocol for Linux VMs hosted in Azure.', | ||
link: 'https://learn.microsoft.com/en-us/azure/virtual-machines/linux/ssh-from-windows', |
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.
is this correct? i think it should be this https://learn.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys
category: 'Virtual Machine Scale Set', | ||
domain: 'Compute', | ||
description: 'Ensures that Azure Virtual Machine scale sets with Linux OS has SSH enabled.', | ||
more_info: 'SSH is an encrypted connection protocol that allows secure sign-ins over unsecured connections. SSH is the default connection protocol for Linux VMs hosted in Azure.', |
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.
write an advantage of using SSH key.
var source = {}; | ||
var locations = helpers.locations(settings.govcloud); | ||
|
||
async.each(locations.vmScaleSet, function(location, rcb) { |
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.
We have two resources in locations.js vmScaleSet and virtualMachineScaleSets, can you use virtualMachineScaleSets instead making it consistent, and also remove the other from locations file along with its usage
if ((scaleSet.virtualMachineProfile.storageProfile && scaleSet.virtualMachineProfile.storageProfile.osDisk && | ||
scaleSet.virtualMachineProfile.storageProfile.osDisk.osType && | ||
scaleSet.virtualMachineProfile.storageProfile.osDisk.osType.toLowerCase() === 'linux')){ | ||
|
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.
if ((scaleSet.virtualMachineProfile.storageProfile && scaleSet.virtualMachineProfile.storageProfile.osDisk && | |
scaleSet.virtualMachineProfile.storageProfile.osDisk.osType && | |
scaleSet.virtualMachineProfile.storageProfile.osDisk.osType.toLowerCase() === 'linux')){ | |
if (scaleSet.virtualMachineProfile && | |
scaleSet.virtualMachineProfile.storageProfile && | |
scaleSet.virtualMachineProfile.storageProfile.osDisk && | |
scaleSet.virtualMachineProfile.storageProfile.osDisk.osType && | |
scaleSet.virtualMachineProfile.storageProfile.osDisk.osType.toLowerCase() === 'linux'){ | |
scaleSet.virtualMachineProfile.osProfile.linuxConfiguration.ssh){ | ||
helpers.addResult(results, 0, 'VM scale set for linux has SSH enabled', location, scaleSet.id); | ||
} else { | ||
helpers.addResult(results, 2, 'VM scale set for linux does not have SSH enabled', location, scaleSet.id); |
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.
produce the message according to ssh keys
No description provided.