-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Hiding Secrets options when Actions feature is disabled #24792
Conversation
`Secrets` options should be hidden if `Actions` feature is disabled. Fixes: 6590551 Author-Change-Id: IB#1134011 Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
As far as I know, there are plans to use secrets for more than just Actions, so I'm rather against this change. |
|
Nevertheless, enhancements are typically not backported once |
Could you elaborate? If optional, should be equipped with option to disable it. |
It's not enhancement but bugfix IHMO (assumes that |
At the moment, secrets are only used for Actions. Regarding bugfix: The fact that you can only use the secrets for Actions at the moment doesn't mean that secrets should be disabled if Actions are disabled. |
So Secrets should be enabled in 1.19 only when Actions are enabled (like in this PR) and when other optional features like webhooks require Secrets in future, Secrets should only be displayed when any of features requiring it is enabled (and hidden otherwise to not confuse users like now). |
Just my opinions:
So I agree with the idea of PR, but I also agree with delvh's opinion: it's not a bug. I don't think it has to be fixed in 1.19. |
Secrets should be split into serval groups and different groups should not share the secrets. So the current secrets under actions should be the part used only by Actions. |
That does sound like confusing UI, I think there should only be one set of secrets per repo/org and a global set for the whole instance, managed in the admin ui. |
Since currently all secrets are for Actions, I think we can think it's all for Actions. Once we have another PR that supports to use secrets on other places, then it's the responsibility of that PR to do the UI change. |
Visually, I'd follow GitHub, e.g. Repo > Secrets > Actions (per-repo) in case of name conflict, more specific secrets win, e.g. repo > org > global. |
I think it's OK. Let's close this one. |
You decided that secrets should be part of Actions in 1.19 if understood correctly but now are not (Secrets visible even if actions are disabled). This may confuse users. |
Proposed changes are enhancements (problably interfering with 63a401a) and this PR is quick bugfix for 1.19 only. Feel free to close it if you don't like fixing it in 1.19. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For 1.19 only , I think it's fine.
Secrets
options should be hidden ifActions
feature is disabled.This fixes in release/v1.19. In main probably fixed in 63a401a (didn't check).
Fixes: 6590551
Author-Change-Id: IB#1134011