Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KMS access denied when trying to save an app with the GitHub PAT option populated. #34

Open
kendavis2 opened this issue Sep 18, 2020 · 0 comments

Comments

@kendavis2
Copy link

Explanation

When trying to integrate an application in udeploy with GitHub to display commit history, a GitHub Personal Access Token (PAT) is requited. However, when you enter the PAT on the app configuration portal screen and try to save, you receive an error stating KMS access is denied, and the save is aborted. If you clear the Personal Access Token field, you can then save successfully.

Solution

Give the udeploy role access to encrypt using the KMS key.

https://github.com/turnerlabs/udeploy/blob/master/infrastructure/modules/portal/kms.tf

list of saml users for policies
    configUserIds = flatten([
        data.aws_caller_identity.current.account_id,
        "${aws_iam_role.app_role.unique_id}:*",  <<<<-----------
        formatlist(
        "%s:%s",
        data.aws_iam_role.saml_role_config.unique_id,
        var.saml_users,
        )
   ])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant