Closed chandu412 closed 5 years ago
2019-08-19 10:16:46,881 INFO: [-->] Looking for changes in account: monkeytest, technology: alb [in /usr/local/lib/python2.7/dist-packages/security_monkey/task_scheduler/tasks.py:224]
Traceback (most recent call last):
File "/usr/local/bin/monkey", line 11, in
Did you grant SecurityMonkeyInstanceProfile
the proper sts:AssumeRole
permissions? Your screenshots don't showcase it.
Hi Mike, Thanks for the response. I have provided is as stated in the doc, please find the below screenshot.
security monkey is working fine when I work it though a EC2 instance and able to scan the account with out any issues, but when I setup through docker [ which is business requirement ] and trying to scan I am getting permission issues.
Ohhh! That is expected.
You need to find a way to get the credentials from your instance onto the container.
i didn't get you mike, I have passed the access key and secret key through secmonkey.env . can you help me to fix this issue.. its driving me crazy from days.
You won't be able to use IAM roles for this use case (unless you have some special metadata proxy thing running for your container, but let's not go there)
In your case, you will need to mint an IAM User, and create static keys. From there, you will need to set up your docker container to have the static keys available where boto expects them.
The best docs we have on this are here: https://github.com/Netflix/security_monkey/blob/develop/docs/docker.md
I am trying with the same doc from days Mike.. got this issue which i am unable to fix. Another question, is it possible to scan multiple accounts with docker case ?
Yes -- you just need the credentials in your container, which for Docker, our recommendation is to make use of IAM static credentials.
While we understand that static credentials are not great, it's the easiest solution for something without direct access to the AWS metadata service.
Alternatively, you might want to investigate the use of Fargate or ECS.
Ok Mike, thanks for your time. I will try it out today and will get back to you
Please make sure that you have checked the boxes:
Description of issue:
I did the set up of security monkey though docker in AWS and when i try to run monkey find_changes i am getting below error : "botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the AssumeRole operation: Access denied"
I have checked all the roles and permission and created as same as in documents and given all the inline policies as stated in the Docs, I have gone though all the issues here but i didn't get the solution that i was looking for.
Thanks in Advance