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

Declarative Secrets with Apps in Any Namespace #11874

Open
patrickbardo opened this issue Jan 4, 2023 · 8 comments
Open

Declarative Secrets with Apps in Any Namespace #11874

patrickbardo opened this issue Jan 4, 2023 · 8 comments
Labels
apps-in-any-namespace Issues related to the "Apps in any namespace" feature introduced in 2.5 enhancement New feature or request enhancement-proposal-required

Comments

@patrickbardo
Copy link
Contributor

patrickbardo commented Jan 4, 2023

Summary

Apps in any namespace was a wonderful change for ArgoCD that allows ArgoCD tenants manage their own resources, and following those changes, I believe that applying a x-in-any-namespace pattern for declarative repository connections would be a helpful enhancement.

Motivation

Instead of an Admin team having to manage repository connection secrets in the ArgoCD namespace, this would be used to allow teams to store repository connections as secrets in their own namespaces.

Proposal

How do you think this should be implemented?

All secrets in --application-namespaces with label argocd.argoproj.io/secret-type: repository should be included in a get repositories. The schema of a repository needs to include an AppProject it belongs to so that the proper RBAC can be applied to restrict access, while defaulting to default AppProject to maintain backwards compatibility.

@patrickbardo patrickbardo added the bug Something isn't working label Jan 4, 2023
@jannfis
Copy link
Member

jannfis commented Mar 15, 2023

This is not a bug.

However, I think it is a valid enhancement request, but we must be careful. It's a big change, with possible side-effects that we need to evaluate. I would suggest this to be designed & agreed on with a formal enhancement proposal.

@jannfis jannfis added enhancement New feature or request enhancement-proposal-required and removed bug Something isn't working labels Mar 15, 2023
@patrickbardo
Copy link
Contributor Author

patrickbardo commented Mar 16, 2023

My apologies, I assumed this was expected behaviour, but I was incorrect. Rewriting the first comment to the format of an enhancement proposal :)

Let me know if theres any more detail you think should be added to the proposal.

@jannfis
Copy link
Member

jannfis commented Mar 16, 2023

@patrickbardo Thank you for adapting the issue's description!

We discussed this topic in today's contributors meeting, and we think it is something to take forward. There are currently a few serious caveats and implications which we need to find solutions for.

We do have a formal proposal process for these kind of architectural changes. When you take a look at the template, and other existing architectural proposals, you can get a glimpse of what level of detail we are looking for.

I'd be willing to work together with you to come up with a proposal, I can't make any promises about my availability currently as there are some higher priority items on my plate right now. But I'm interested in bringing this feature to live, since it's a logical extension of the app-in-any-namespace feature :)

@patrickbardo
Copy link
Contributor Author

@jannfis Sounds great! I will start the formal proposal, and link it here once I have a first draft written :)

@patrickbardo
Copy link
Contributor Author

@jannfis I have started a proposal PR. Still a work in progress, but it can be found here. I also hope you don't mind I have piggy backed a lot from your previous proposal :D

@jannfis
Copy link
Member

jannfis commented Mar 21, 2023

@patrickbardo Awesome! I took a quick glance and it looks good, I will take a closer look during the week when I have some spare time.

I don't know what you mean by "piggy backing" - It's the beauty of Open Source that we all can get inspired to build new & better things upon work that exists somewhere, isn't it? :)

@jannfis jannfis added the apps-in-any-namespace Issues related to the "Apps in any namespace" feature introduced in 2.5 label Apr 4, 2023
@jannfis
Copy link
Member

jannfis commented Apr 4, 2023

Sorry for the late update; I still couldn't manage to come around for a proper review of your draft.

I have the review on my task list for this week, though.

@patrickbardo
Copy link
Contributor Author

No rush, I haven't had a good chunk of time to sit and finish the other half. I will hopefully find some time in the coming weeks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apps-in-any-namespace Issues related to the "Apps in any namespace" feature introduced in 2.5 enhancement New feature or request enhancement-proposal-required
Projects
None yet
Development

No branches or pull requests

2 participants