Skip to content

[Yopass] Extension posts to legacy POST /secret endpoint — 404 on Yopass v9+ (endpoint moved to /create/secret) #30813

Closed

Description

@realAbitbol

Extension

https://www.raycast.com/ricoberger/yopass

Description

The extension creates secrets by POSTing to ${preferences.apiUrl}/secret (see src/encryptmessage.tsx):

const response = await fetch(`${preferences.apiUrl}/secret`, { method: "post", ... });

Since Yopass v9 (current master, also what official api.yopass.se runs today), the create endpoint moved from POST /secret to POST /create/secret:

// pkg/server/server.go (jhaals/yopass)
mx.Handle("/create/secret", y.maybeRequireAuth(y.createSecret)).Methods(http.MethodPost)
mx.HandleFunc("/secret/"+keyParameter, y.getSecret).Methods(http.MethodGet) // read-only

The official CLI already uses the new path (pkg/yopass/client.go: server+"/create/secret").

Repro (verified against a self-hosted v9 instance and against api.yopass.se)

POST https://<instance>/secret         -> 404 page not found
POST https://<instance>/create/secret  -> 400 {"message":"Message must be PGP encrypted"}   (route alive)

So with default preferences (or any modern instance), the extension always fails with 404 page not found after encryption.

Expected behaviour

  • POST to ${preferences.apiUrl}/create/secret instead of /secret.
  • Keep building the share URL as ${preferences.url}/#/s/${id}/${password} (unchanged, still current Yopass format).

Note: for self-hosted single-origin instances both preferences (Yopass URL and Yopass API URL) are the same base URL, e.g. https://yopass.example.com — that part works fine; the only blocker is the legacy endpoint path.

Steps To Reproduce

  1. Install the Yopass extension.
  2. Configure a Yopass v9+ instance (self-hosted or the default yopass.se/api.yopass.se).
  3. Run "Encrypt Message".

Current Behaviour

Encryption succeeds locally (openpgp) then the POST fails with 404 page not found and the error toast shows.

Expected Behaviour

Secret is stored and the /#/s/<id>/<key> link is copied.

Relates to #25058 / #25073 (previous 'doesn't work' fixes, different cause).

Activity

  1. added a commit that references this issue on Sep 10, 2026
    0eae02c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Severity

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions