I set up CodeDeploy with Bitbucket UI. So if I'm sharing my repo with someone he can deploy to the server. And he can also modify appspec.yml
file, what means that he could add hooks
and run them as root
user.
I know that this is unlikely could be happened but I don't want to give root access for all contributors.
Can I prevent hooks from runas: root
somehow? Maybe I can add some restrictions for IAM role?