kamu-data / kamu-node

Back-end implementation of the Open Data Fabric protocol
https://kamu.dev
Other
11 stars 1 forks source link

Env vars and secrets for dataset flows #56

Closed sergiimk closed 2 days ago

sergiimk commented 6 months ago

Tasks

sergiimk commented 1 month ago

Re-opening the issue as it is still in acceptance testing phase

sergiimk commented 1 month ago

Suggestions after acceptance testing of env vars:

1) Rename Add row button to Add variable/secret ("row" is confusing)

2) In the add dialog let's move the "Secret value" checkbox up. When checked the "Value" input should switch into the masked mode. This way during a demo / video recording it will be possible to paste a real secret in without revealing it to the viewers.

3) In place of Key-value pairs associated with dataset I think we should better explain the purpose of vars, where they can be used, and link to docs. For now you can link to: https://docs.kamu.dev/cli/ingest/input-formats/?highlight=env#dealing-with-api-keys

4) Variable and secrets menu should not be available on derivative datasets - there is no place that uses them in derivative data flows (yet)

5) Since our secrets are extractable - you can see them when editing and can even switch a checkbox to convert a secret into a variable - the difference between a secret and a variable is unclear.

Personally I feel that non-extractable secrets is a safer bet, but willing to give current implementation a try and see how it will interact with multi-user / organization sharing.

But for now I suggest adding a (?) tooltip for the "Secret" checkbox and explaining the difference. Even if the difference is as small as "secrets will be masked in all outputs like task logs"

sergiimk commented 3 weeks ago

Issues after next round of testing:

1) Visual artifacts: image

2) "Update now" button should use fetch_uncacheable: true

Before changing this we should also figure out why pressing this button now in our test scenario doesn't show the warning status.

3) (Not directly related but what I thought was fixed) "Add data" button should not be shown for root datasets with polling source defined

image

4) Another tricky scenario:

In other words, my manual request for force update did not effect the config of the flow that was already scheduled: image

(I suggest to ticket up this problem but not address it immediately)

sergiimk commented 2 weeks ago

Blocker found: https://github.com/kamu-data/kamu-web-ui/issues/404

sergiimk commented 2 days ago

Acceptance passed with only one minor issue found - closing kamu-data/kamu-web-ui#427