forked from p15670423/monkey
Bolded the fact that user has to run monkey from Island to start ScoutSuite security scan
This commit is contained in:
parent
255bfe9444
commit
7761d16cf8
|
@ -12,13 +12,12 @@ from monkey_island.cc.services.config_schema.config_value_paths import AWS_KEYS_
|
|||
def is_cloud_authentication_setup(provider: CloudProviders) -> Tuple[bool, str]:
|
||||
if provider == CloudProviders.AWS.value:
|
||||
if is_aws_keys_setup():
|
||||
return True, "AWS keys already setup. Run Monkey on Island to start the scan."
|
||||
return True, "AWS keys already setup."
|
||||
|
||||
import common.cloud.scoutsuite.ScoutSuite.providers.aws.authentication_strategy as auth_strategy
|
||||
try:
|
||||
profile = auth_strategy.AWSAuthenticationStrategy().authenticate()
|
||||
return True, f" Profile \"{profile.session.profile_name}\" is already setup. " \
|
||||
f"Run Monkey on Island to start the scan."
|
||||
return True, f" Profile \"{profile.session.profile_name}\" is already setup. "
|
||||
except AuthenticationException:
|
||||
return False, ""
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ const getContents = (props) => {
|
|||
.then(res => res.json())
|
||||
.then(res => {
|
||||
if(res.is_setup){
|
||||
setDescription(res.message + ' Click next to change the configuration.');
|
||||
setDescription(getDescription(res.message));
|
||||
setIconType('icon-success');
|
||||
setIcon(faCheck);
|
||||
} else {
|
||||
|
@ -40,6 +40,14 @@ const getContents = (props) => {
|
|||
});
|
||||
}, [props]);
|
||||
|
||||
function getDescription(message){
|
||||
return (
|
||||
<>
|
||||
{message} Run <b>from the Island</b> to start the scan. Click next to change the configuration.
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<NextSelectionButton title={'AWS'}
|
||||
|
|
Loading…
Reference in New Issue