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

[Repository] add a request flag to control at which level credentials are redacted when fetching a repository #4867

Open
dlaloue-vmware opened this issue Jun 7, 2022 · 5 comments
Labels
component/apprepository Issue related to kubeapps apprepository kind/feature An issue that reports a feature (approved) to be implemented

Comments

@dlaloue-vmware
Copy link
Collaborator

When doing a GET on a given repository, plugins will ensure that credentials are marked as redacted.
The current setting is to do full redaction, but some users may want to be able to view more useful data (e.g. see the username but not the password), or all data.

the proposal is to pass an option/flag to the GET request to indicate what level of redaction to apply, something like FULL | MIXED | NONE.

@dlaloue-vmware dlaloue-vmware added the kind/proposal An issue that reports a new feature proposal to be discussed label Jun 7, 2022
@absoludity
Copy link
Contributor

Thanks, this will be helpful as a pattern in other areas too so that we don't send the actual secret data across the network unless explicitly requested to do so: for example, when fetching the resources for an installed app, currently we fetch the secrets in full (though they are not displayed unless the reveal/eye icon is clicked in the UX). This pattern will allow us to fetch redacted secrets initially (so the UX can display the secrets along with other resources as it does currently) and only fetch the actual secret data for a particular secret if the user explicitly requests it.

@antgamdia antgamdia added this to the App repository revamping milestone Jun 8, 2022
@ppbaena ppbaena added the component/apprepository Issue related to kubeapps apprepository label Jun 8, 2022
@ppbaena ppbaena added kind/feature An issue that reports a feature (approved) to be implemented and removed kind/proposal An issue that reports a new feature proposal to be discussed labels Jun 20, 2022
@antgamdia antgamdia self-assigned this Jun 28, 2022
@smerschjohann
Copy link
Contributor

It would be great if the values are hidden by default as well. In some cases, there are secrets/passwords in there as well, so it would be good to hide them behind a "show helm values" toggle or something.

@antgamdia antgamdia removed their assignment Jul 1, 2022
@antgamdia
Copy link
Contributor

Do you mean from the API response as well?

Currently, the repos API is doing it, so the UI (still in progress) shows the REDACTED value by default.

image

However, the packages API does send the secret values, although the UI hides them by default:

image

In case you mean also using a config-level flag to disable that feature (in the packages API, not the repos one), I think it's worth opening a separate issue for that. From memory, I don't know how easy it would be, but certainly worth discussing.

@smerschjohann
Copy link
Contributor

Oh sorry, this is about the repos api. my bad, I meant those values:

grafik

@ppbaena ppbaena added the next-iteration Issues to be discussed in planning session label Oct 18, 2022
@dlaloue-vmware
Copy link
Collaborator Author

dlaloue-vmware commented Nov 28, 2022

before implementing a solution for a flag, i think we need to fix the following 2 bugs:
issue #5746
issue #5747

The current UI does not provide a "view" UI, so the only time we would see the data is during an edit/update. This diminishes the need for such a flag as the UI would not be using it.

Finally, we would need to decide how we want to use this flag in the UI. For example, do we have an install flag that defines the default option, do we use a preference settings, or just a toggle on the view/update page (which would reload the page).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/apprepository Issue related to kubeapps apprepository kind/feature An issue that reports a feature (approved) to be implemented
Projects
Status: 🗂 Backlog
Development

No branches or pull requests

6 participants
@absoludity @ppbaena @antgamdia @smerschjohann @dlaloue-vmware and others