Update authentication documentation #582
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update authentication documentation with serviceAccount recommendation for provider upgrade
Signed-off-by: smcavallo smcavallo@hotmail.com
Description of your changes
We use pod-iam which requires assigning the service account name to the aws role. The problem is that the service account name is the provider-aws revision and it changes during the release, breaking crossplane permissions
Ex. v.0.16.0 - provider-aws-6b36ca882d8e and v.0.17.0 - provider-aws-4ebd5d8c7cb7
Using a static
StringEquals
condition with a hard coded provider will break when theSERVICE_ACCOUNT_NAME
changes when the provider is upgradedThis condition can be avoided by using an alternative IAM policy which uses
StringLike
and a wildcardSERVICE_ACCOUNT_NAME
:This trust policy would cover both service account names -
provider-aws-6b36ca882d8e
andprovider-aws-4ebd5d8c7cb7
As long as provider-aws- will not change as part of a release the above should cover future cases of provider names changing during a release without needing to update the role trust policy.
Fixes #
I have:
make reviewable test
to ensure this PR is ready for review.How has this code been tested