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

🛂 Grant App roles trust permissions to be assumed by the app repo #4023

Closed
5 tasks
michaeljcollinsuk opened this issue Apr 11, 2024 · 4 comments
Closed
5 tasks
Labels
data-platform-apps-and-tools This issue is owned by Data Platform Apps and Tools stale story

Comments

@michaeljcollinsuk
Copy link
Contributor

michaeljcollinsuk commented Apr 11, 2024

User Story

As an app admin
I want to allow my github runner access to assume my app role
So that I can make use of app permissions in github runner actions

Value / Purpose

Users have asked us to create custom roles that can be assumed by github runners. By allowing the app repo to assume the role that we already create for the app, we wont need to manage additional roles for runners

Useful Contacts

@julialawrence @michaeljcollinsuk

User Types

No response

Hypothesis

If we... [do a thing]
Then... [this will happen]

Proposal

When creating an IAM role for an app, setup the trust policy so that it can assumed by the app repo by default. App roles are already created via the Control Panel, when a user registers their app. So this existing implementation will need to be updated to add the extra permissions statement to the trust policy. We store the repo url when an app is registered, so we can use this in the trust policy definition.

For existing apps, we will need to decide if we retrospectively apply the same changes, or only update for apps that have requested it.

Additional Information

See discussion about this in Slack https://mojdt.slack.com/archives/C04M8224WCV/p1712686094130389.
There may be related support/feature requests but I cannot find them at this time.

Definition of Done

  • Define the required trust policy to allow github runners to assume the app role
  • Update the code in Control Panel to create the trust policy statement when registering the app
  • (Optional) allow users to choose if they want this to be created. Or define it by default for apps
  • Changes to deployed and tested by the AP team
  • Comms to let users know about the change
Copy link
Contributor

This issue is being marked as stale because it has been open for 60 days with no activity. Remove stale label or comment to keep the issue open.

@github-actions github-actions bot added the stale label Jun 11, 2024
Copy link
Contributor

This issue is being closed because it has been open for a further 7 days with no activity. If this is still a valid issue, please reopen it, Thank you!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2024
@github-project-automation github-project-automation bot moved this from 👀 TODO to 🎉 Done in Analytical Platform Jun 18, 2024
@github-project-automation github-project-automation bot moved this from 🎉 Done to 🚀 In Progress in Analytical Platform Jun 18, 2024
@github-actions github-actions bot removed the stale label Jun 19, 2024
Copy link
Contributor

This issue is being marked as stale because it has been open for 60 days with no activity. Remove stale label or comment to keep the issue open.

@github-actions github-actions bot added the stale label Aug 18, 2024
Copy link
Contributor

This issue is being closed because it has been open for a further 7 days with no activity. If this is still a valid issue, please reopen it, Thank you!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 25, 2024
@github-project-automation github-project-automation bot moved this from 🚀 In Progress to 🎉 Done in Analytical Platform Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data-platform-apps-and-tools This issue is owned by Data Platform Apps and Tools stale story
Projects
Archived in project
Development

No branches or pull requests

1 participant