Monorepo for Tangled tangled.org

proposal: pipelines secrets (ux): allow importing multiple secrets through copy-pasting #371

open
opened by samanthanguyen.me edited

Importing multiple secrets one at a time could be slightly time consuming, depending how many secrets there are.

Proposed changes#

  1. Proposed change 1:
    1. There could be a button in the repository settings via "settings > pipelines > secrets", which has its own separate dialog (like the "+ add secret" button).
    2. The content is parsed with a package like https://github.com/joho/godotenv, which then gets encrypted the same way secrets already are.
  2. Proposed change 2:
    1. The current "+ add secret" could also allow pasting a string in the pattern of a "KEY=VALUE", which is then parsed with the same package. The key text input would listen to the paste event, which would detect if the string matches the pattern. If it does, it would automatically move the value string into the value input. The dialog's description should also explain this to make the UX affordance explicit.

Proposal implementation#

I'm imagining something like below:

Settings page#

A UI prototype showcasing an extra button in the secrets settings, labeled "import multiple".

The import dialog#

A UI prototype showcasing a dialog overlay for importing multiple secrets

sounds good to me. I think having single "add secret" button with KEY=VALUE textarea dialog is a way to go.

+1; this should be a quick one!

Ok! I'll look into setting up tangled locally tomorrow and hopefully open a PR this weekend :)

sign up or login to add to the discussion
Labels

None yet.

area

None yet.

assignee

None yet.

Participants 3
AT URI
at://did:plc:smd2mvg2dao4rqnnz6qexdov/sh.tangled.repo.issue/3mbyz2mezbj22