Skip to main content

TUI for managing Posit Connect environment variable secrets

Project description

posit-connect-secrets-manager

A terminal UI for bulk-managing environment variables across Posit Connect content items.

Rust License

What it does

Posit Connect stores environment variables per content item. Managing them one at a time through the web UI is tedious at scale. This tool lets you:

  • Browse all your content items and their environment variables
  • Maintain a local vault of key/value pairs (stored as JSON)
  • Safe-merge sync (Ctrl+U) — pushes vault values into each project's env vars without touching keys the vault doesn't know about and without adding new keys to projects that don't already define them
  • Filter any list with fuzzy search
  • Blacklist projects or individual variables from sync
  • Edit values in $EDITOR for multi-line or sensitive content

Install

uv tool install posit-connect-secrets-manager

Or from source (requires Rust toolchain):

uv tool install git+https://github.com/KalebJS/posit-connect-secrets-manager
# or
cargo install --git https://github.com/KalebJS/posit-connect-secrets-manager

Getting started

Launch the TUI:

posit-secrets

On first launch you'll land on the Projects page. Use j/k in the sidebar to navigate to Settings, then press l or Enter to enter the settings pane and fill in your server URL and API key. Press h or Esc to return to the sidebar, then Ctrl+P to fetch your content items — they'll populate the project list within a few seconds.

Once projects are loaded, navigate to Env Vars in the sidebar to see an aggregated list of every environment variable key across all your projects, alongside the matching value from your vault. Use Vault to manage those vault entries. When your vault is ready, press Ctrl+U from anywhere to sync vault values into every project that already has a matching key.

Pages

Page Description
Projects Browse content items and their env vars; expand to inspect, add, delete, or blacklist individual vars
Env Vars Aggregated view of all env var keys across projects, showing which have vault values
Vault Manage the local key/value store that gets synced to projects
Settings Server URL, API key, vault path, and theme

Configuration

Config is saved to ~/.config/posit-secrets/config.toml.

Field Description
Server URL Your Posit Connect base URL (e.g. https://connect.example.com)
API Key A Posit Connect API key with write access to your content
Vault Path Path to the local JSON vault file (default: ~/.config/posit-secrets/vault.json)
Theme Color theme — cycle with Enter on the theme row

Corporate TLS: set SSL_CERT_FILE (path to a PEM file) or SSL_CERT_DIR (directory of *.pem files) to inject custom CA certificates.

Keybindings

Global

Key Action
Tab Toggle sidebar / content focus
q / Ctrl+C Quit
Ctrl+P Refresh project list from Posit Connect
Ctrl+U Safe-merge sync vault → all projects (shows confirmation)

Navigation

Key Action
j / Move down
k / Move up
h / / Esc Return to sidebar
l / / Enter Enter content pane (from sidebar)
g Jump to top
G Jump to bottom
f / / Open fuzzy filter
F Clear filter

Projects page

Key Action
Enter / Space Expand / collapse project to show its env vars
x On a project row: toggle project in/out of sync whitelist. On a var row: toggle var exclusion for that project
a Add an env var to the selected project (fuzzy-picks from vault keys)
d Delete the selected env var from the project

Env Vars page

Key Action
Enter / Space Open popup showing which projects use the selected var
e / E Open the selected var's vault value in $EDITOR

Vault page

Key Action
n New entry (opens key field for editing)
e / Enter Edit value of selected entry
E Open value in $EDITOR
d / Delete Delete selected entry

Settings page

Key Action
e / Enter Edit selected field (theme field cycles values instead)
Esc Cancel edit

Safe-merge sync

Ctrl+U iterates every non-blacklisted content item and, for each one:

  1. Fetches current env vars from the Connect API
  2. Overlays vault values only for keys that already exist in the project
  3. PATCHes the merged set back

It never adds new environment variables to a project that doesn't already define them, and never deletes existing ones. Safe to run repeatedly.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

posit_connect_secrets_manager-0.4.1.tar.gz (55.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

posit_connect_secrets_manager-0.4.1-py3-none-win_amd64.whl (2.2 MB view details)

Uploaded Python 3Windows x86-64

posit_connect_secrets_manager-0.4.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

posit_connect_secrets_manager-0.4.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.2 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

posit_connect_secrets_manager-0.4.1-py3-none-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

posit_connect_secrets_manager-0.4.1-py3-none-macosx_10_12_x86_64.whl (2.3 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file posit_connect_secrets_manager-0.4.1.tar.gz.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.4.1.tar.gz
Algorithm Hash digest
SHA256 18d7d38c376692b9f9f3b0c12675da3e71903938a596e61c5d12ed5bb19c62a0
MD5 d2a874e28e3e54a70920b51f17700645
BLAKE2b-256 85eff4753821222d7a0c39649b9c0b73d6bf606b16b232b1503d1c172616b49c

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.4.1.tar.gz:

Publisher: release.yaml on KalebJS/posit-connect-secrets-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file posit_connect_secrets_manager-0.4.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.4.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 3da6f97a5aa14947e29ac118bb70f214847b37b5a28a6ac2c18b3751c0cfd57a
MD5 7b2b310f19d5e869f6c9414e2e543647
BLAKE2b-256 195f93a531e7ff2d977dcc2b59d06cefbfb3793f696c5bf4ea5cc640814fc9d7

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.4.1-py3-none-win_amd64.whl:

Publisher: release.yaml on KalebJS/posit-connect-secrets-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file posit_connect_secrets_manager-0.4.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.4.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 baf569242d31e3a569a87aecd0fe80df126aaeeebc83b0bd69ff3acf58a13b4d
MD5 a11e185069d66bf0a481a27425d3843c
BLAKE2b-256 a0fc086bb7920b75850f9670c691ea23b0136d1ea310ab4e17f509e46709c04d

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.4.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on KalebJS/posit-connect-secrets-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file posit_connect_secrets_manager-0.4.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.4.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 40f3f1ed2101898e1324a415ae7889b9d4b09abcd835c6ddd799e16b5c49bb7d
MD5 e88917175b52e9c702f6573936c00059
BLAKE2b-256 ba772fc0917ea1cbd6a39757813946e2cb51a00115048608ca85bb157092313b

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.4.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yaml on KalebJS/posit-connect-secrets-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file posit_connect_secrets_manager-0.4.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.4.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f724963394e34a8a14960bfc9754734058c02af945695e0f31656c1af0a7f14d
MD5 f3e39fec974724ad19005593d0c15b30
BLAKE2b-256 976ebbf9a2367c3de1a50a7d0dcd89423b8c92e4ea23bd169860fc56ff4182f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.4.1-py3-none-macosx_11_0_arm64.whl:

Publisher: release.yaml on KalebJS/posit-connect-secrets-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file posit_connect_secrets_manager-0.4.1-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.4.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0eaf30f1a3f5868ae80fdd3e08d12057be1394b4937634427e6cc5d5302f3578
MD5 bbefe660ecca67df888c63f865e879f7
BLAKE2b-256 b51c891407c212cd950cb8fc81ac5458375c8cb26c565987afe4b31c1a33f027

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.4.1-py3-none-macosx_10_12_x86_64.whl:

Publisher: release.yaml on KalebJS/posit-connect-secrets-manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page