-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: save secrets on storage create #3274
feat: save secrets on storage create #3274
Conversation
You can access the deployment of this PR at https://renku-ci-ui-3274.dev.renku.ch |
00c822e
to
ed93aa9
Compare
ed93aa9
to
852f6a1
Compare
74acb20
to
4547fd7
Compare
19da6bd
to
2a1e82d
Compare
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.
The code looks good overall, but there are a few issues that need to be addressed:
- The secret title is currently displayed as the ID, but this ID is not shown in the data storage information. It would be better to use a more descriptive name, such as project/data-storageName.
-
When a secret is added while launching the store, it is saved as a user secret but doesn't show in the user secret list and does not indicate that it is saved in the storage information as
<saved credential>
. -
The icons are not properly aligned. I’ve left a comment in the code regarding this issue.
-
The data storage sidebar should not open when clicking on the form label while editing a data storage.
-
Clicking on user secrets redirects to Renku 1.0. It would be better to have a Renku 2.0 route for user secrets when accessed from Renku 2.0.
-
Here would be helpful to confirm that the secret is also created successfully.
- The checkbox to store the secret is not shown when creating the data source, although the secret is still stored.
Please address these issues here or create new issues to handle them in a separate PR
client/src/features/ProjectPageV2/ProjectPageContent/DataSources/DataSourceDisplay.tsx
Outdated
Show resolved
Hide resolved
client/src/features/project/components/cloudStorage/AddOrEditCloudStorage.tsx
Show resolved
Hide resolved
client/src/features/project/components/cloudStorage/AddOrEditCloudStorage.tsx
Outdated
Show resolved
Hide resolved
client/src/features/project/components/cloudStorage/projectCloudStorage.constants.ts
Show resolved
Hide resolved
efae265
to
30b1902
Compare
0ed4113
to
65dd221
Compare
fef13b3
to
7b89dd8
Compare
30b1902
to
6fc5a82
Compare
69109b5
to
a5e0b6f
Compare
Thanks for the review!
These bugs have been fixed.
I added this information to the dialog box
You are right -- I was able to reproduce this bug, but it has been around for longer, and was not introduced by the changes here. I will address it in a separate PR.
I agree, the current display of the secrets is not really usable. These limitations, however, were deemed acceptable in realizing the pitch, and improving the display will require changes to the backend because there is no efficient way to get the data source that a secret is for, so this will need to be handled separately, with support from the backend.
|
a5e0b6f
to
dc7c454
Compare
dc7c454
to
0b1d6a6
Compare
Thanks for applying those fixes! I've noticed one issue and a couple of minor CSS adjustments that need attention: [Bug] If the storage secret is removed from the secret page, the status on the project page doesn't update. As a result, when launching the session, the missing credential is not required. [CSS] In the storage credential modal, there's no vertical padding between fields. Please add some padding. [CSS] Similarly, on the data source page, there's no vertical padding between "Required credentials" and "Access mode." Please address this as well. |
Thanks for the review, I have fixed the issues you have raised.
Fixed in 311382d
Fixed in 65ce6e4
Fixed in 212c0c5 |
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.
lgtm 🚀
Tearing down the temporary RenkuLab deplyoment for this PR. |
Allow storing credentials when a storage is created.
Screenshots
Add an option to save credentials to the last page of the add data source flow
When checked, the credentials will be stored after the data source is added. This can be verified by looking at the data source, the credential field will be displayed as
Testing
Add a data source that requires credentials to a project (or example an S3 or polybox data source). Check that the credentials used to test are stored. Also, check that there is no option to store credentials for a public data source (like a public S3 bucket).
/deploy renku-notebooks=master renku-data-services=main