Skip to content

[Feature]: Use stored secrets from rustgis-cli and the Python package #761

Closed

Description

@deniial00

Before you start

What problem does this solve?

rustgis-cli and the rustgis Python package read secrets only from their parameters and the environment (ANTHROPIC_API_KEY, PGPASSWORD, the AWS variables and others). Once the desktop app remembers a secret (#754's other sub-issues), scripts on the same computer still need it in an environment variable, in plain text in the shell's history or a .env file.

Proposed solution

Let the command line and the Python package use secrets the desktop app has stored, when the user asks for it.

Requirements

  1. Opt-in: a --use-saved-secrets flag for rustgis-cli run and a matching option for the Python package. Without it, nothing reads the store. That keeps CI and servers free of keychain prompts, and keeps runs reproducible.
  2. Same rules as the desktop: a stored secret is used only where the desktop app would use it: the same connection id and address ([Feature]: Optionally remember database connection passwords #755, [Feature]: Optionally remember S3 connection keys #756), the same origin ([Feature]: Remember and send API tokens: Earthdata, web-service logins, tokens in addresses #757), the same provider (the assistant).
  3. Parameters and the environment win over stored secrets, so existing scripts behave as before.
  4. No store (a headless server, a locked keyring): the run goes on without stored secrets and says so once. It doesn't fail because of that.
  5. Secrets never appear in the command line's output or its errors.
  6. Docs: the command-line and Python pages.

Estimated scope

Small: a minor tweak, small UI change, or text adjustment. Depends on #754 and the sub-issues whose secrets it reads.

Open questions

  1. On macOS the keychain may ask whether rustgis-cli can read an item the desktop app stored. Is one prompt per item acceptable?

Activity

  1. added
    enhancement
    on Oct 23, 2026
  2. deniial00 commented on Oct 23, 2026

    @deniial00
    MemberAuthor

    I am unsure if we want that. But I guess if its opt-in there is no harm and might benefit some people?
    Nevermind: it's necessary when we want to move chatgpt/assistant also to keychain.

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions