[Feature] A password type for extension settings

Open
#1,617 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
flutter, go
Domain
api, backend, frontend

Research direction

Start in pkg/download/extension.go where setting types are defined; add a password type alongside string/number/boolean. Trace the GET /api/v1/extensions handler to mask the value, and check the settings form widget used for the proxy password to reuse obscuring. Done means the form shows dots, API returns a mask, and saving the mask keeps the stored secret.

Written by the indexing model from the issue text.

Description

What. A password type for extension settings.

Why. Extensions for file hosts and debrid services need API keys and passwords. Setting types are only string, number and boolean (pkg/download/extension.go), so these values are shown in the settings form and returned by GET /api/v1/extensions in plain text. Anyone who sees the screen, or can call the API, can read them. Gopeed's own API token and proxy password fields are already obscured.

Proposal.

  • The settings form shows a password setting obscured, like the proxy password.
  • The API returns a mask instead of the value.
  • A settings update that sends the mask back keeps the stored value.

Our debrid extension (silasmariusz@debrid in the store) would use it for its API keys. Today our QNAP package masks these values in a proxy in front of the API, which only helps that package.

Version. main at b8ff5ff.

Dominant language
Dart
Stars
27.7k
Forks
1.8k
Avg merge
3d 3h
Merged PRs (30d)
26

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GopeedLab/gopeed

All issues in GopeedLab/gopeed

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.