2.43.0 sources - re-use existing credentials? #13232
-
Ask a Question!Before updating to 2.43.0, I could simply create a new stack, point it at a GitHub repository, use my existing GitHub credentials, and it just worked. After 2.43.0 with the new Sources page, I have to re-enter my GitHub username and token, which means I now have to go and create a token for each repository and have to deal with X amount of re-roll of tokens, when they expire. Is this the intended behavior? I am not going to keep a copy of my token laying around in plain text, so that I can re-use the same token and only have to roll it once. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
Hi, Thanks for the detail, this helps clarify things. The re-entry you're seeing is expected on Community Edition. CE has never supported saved or reusable Git credentials, so each stack (or each Source) needs its own set of credentials entered directly. This isn't a regression introduced by the new Sources page in 2.43.0, it's a longstanding CE limitation that the new page doesn't change. Reusable, saved Git credentials (referenced by name across stacks, rather than re-entered each time) are a Business Edition feature, under Settings > Shared credentials. That's confirmed here: https://docs.portainer.io/admin/settings/credentials So on CE, the practical options are:
|
Beta Was this translation helpful? Give feedback.
Hey @mortenmoulder,
You've read it correctly, and your frustration is fair. Repository-scoped Sources work well for a single repo, but turn into ten-plus credentials holding the same PAT for anyone splitting across many. That wasn't meant to remove the reuse option for people who relied on it.
We're planning to bring reusable/shared Git credentials back, so you can save one credential and reference it across multiple Sources. No firm version yet, but I'll update this thread once it lands.