Unless I'm missing something, isn't this whole process made a lot simpler just by using STS? It also works incredibly well with Vault's STS backend.
AWS bastions and assume-role
21–30 of 68 posts
Re: AWS bastions and assume-role
#22Earlier quoted context omitted.
This is actually a best practice and I believe Amazon also advises this. So it's not really something secret. For me as a customer it is good to know they follow these practices and communicate their understanding of it outwards. For private projects I have been experimenten with how far I can go in open sourcing everything (including server configuration) and where you hit limits. Example project: https://gitlab.com…
The first step of an attack is reconnaissance. How is making that step very easy for an attacker best practice?
Re: AWS bastions and assume-role
#23I also recommend looking into using SAML with your own login provider, if you have one, to assume individual roles in AWS accounts.
Re: AWS bastions and assume-role
#24As coinbase is a Bitcoin wallet and they transact a lot of money it suprises me that they reveal details of their implementation publicly. Edit - Getting downvoted a lot. Seems that some people think that the expression 'You shouldn't rely on security through obscurity' means that it's OK to publish your backend infrastructure. Best practice is defence in depth. That means you secure everything including your impleme…
Good security doesn't require obscurity.
Re: AWS bastions and assume-role
#25As coinbase is a Bitcoin wallet and they transact a lot of money it suprises me that they reveal details of their implementation publicly. Edit - Getting downvoted a lot. Seems that some people think that the expression 'You shouldn't rely on security through obscurity' means that it's OK to publish your backend infrastructure. Best practice is defence in depth. That means you secure everything including your impleme…
People say that security trough obscurity is not a good idea.
Re: AWS bastions and assume-role
#26They have an exec command but you can also export your credentials to env variables with somethings like
aws-vault exec "$AWS_PROFILE" -- env | egrep '^AWS' | awk '{print "export " $1}'
[1] https://github.com/99designs/aws-vaultRe: AWS bastions and assume-role
#27Re: AWS bastions and assume-role
#28Earlier quoted context omitted.
This is actually a best practice and I believe Amazon also advises this. So it's not really something secret. For me as a customer it is good to know they follow these practices and communicate their understanding of it outwards. For private projects I have been experimenten with how far I can go in open sourcing everything (including server configuration) and where you hit limits. Example project: https://gitlab.com…
The first step of an attack is reconnaissance. How is making that step very easy for an attacker best practice?
Re: AWS bastions and assume-role
#29Also take a look at aws-vault [1]. This not only assumes roles but also helps you store your original credentials in an encrypted form rather than a plain text ~/.aws/credentials file. You do have to configure all assumed roles in ~/.aws/config They have an exec command but you can also export your credentials to env variables with somethings like aws-vault exec "$AWS_PROFILE" -- env | egrep '^AWS' | awk '{print "exp…