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

New federated credentials for preapproved-prod github environment #905

Closed
mirkoSekulic opened this issue Sep 4, 2024 · 6 comments
Closed
Assignees
Labels
kind/chore Non functional, often repeating tasks. status/draft Status: When you create an issue before you have enough info to properly describe the issue.

Comments

@mirkoSekulic
Copy link

mirkoSekulic commented Sep 4, 2024

Description

We currently manage multiple services in our repository and deploy them using Flux. Our prod environment in altinn-studio repo on GitHub requires approval from a team member due to the protection settings for required reviewers.

However, we now have a different scenario. For one specific API, we want to bypass the review step. To achieve this, we need to create a new environment in GitHub that doesn’t have the required reviewers defined. We’re considering adding a preapproved-prod environment. This would allow us to deploy our API to production continuously, while maintaining the review step for other services.

@mirkoSekulic mirkoSekulic added status/draft Status: When you create an issue before you have enough info to properly describe the issue. kind/chore Non functional, often repeating tasks. labels Sep 4, 2024
@mirkoSekulic
Copy link
Author

mirkoSekulic commented Sep 8, 2024 via email

@andreasisnes
Copy link
Contributor

yes, I wrote the comment before checking environment configuration and protection branch, Thus I deleted the comment

@Herskis Herskis assigned Herskis and tjololo and unassigned Herskis Sep 9, 2024
@tjololo
Copy link
Member

tjololo commented Sep 9, 2024

We are currently having another look at the products automation #914 PR#916
The need for team/product specific envs for federated credentials is something we probably should take into account.
For now I will create a new federation rule that satisfies the needs

@tjololo
Copy link
Member

tjololo commented Sep 9, 2024

@mirkoSekulic is preapproved the correct name or is noapproval or continuous more describing? preapproved might be the correct one, just want to make sure you have had a talk about the env name in your team
Scratch that, I have created the azure side of the preapproved-prod federated identity for the prod user

@sduranc
Copy link
Collaborator

sduranc commented Sep 9, 2024

I think if this helps the team to go faster just go for it @mirkoSekulic. I understand that this will happen eventually with monorepos. Since we use GH environments this is inevitable and can't really see another way that adding a new env either. That being said, I don't think this really belongs to a golden path way of doing things.
Nevertheless, we shoud consider this scenario as a requirement/feature of the platform.

@tjololo
Copy link
Member

tjololo commented Sep 10, 2024

I have manually created a federated credential for your prod user. It has a federated credential allowing you to get credentials when using environment: preapproved-prod.
Everything should be done from the platform side so the rest is up to you.

@tjololo tjololo closed this as completed Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/chore Non functional, often repeating tasks. status/draft Status: When you create an issue before you have enough info to properly describe the issue.
Projects
None yet
Development

No branches or pull requests

5 participants