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.5.1.tar.gz (55.3 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.5.1-py3-none-win_amd64.whl (2.2 MB view details)

Uploaded Python 3Windows x86-64

posit_connect_secrets_manager-0.5.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.5.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.5.1-py3-none-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

posit_connect_secrets_manager-0.5.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.5.1.tar.gz.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.5.1.tar.gz
Algorithm Hash digest
SHA256 4465ba51b4620bf8c84a623d93f66441abd8cc3a88dacec580b445f6cfe0d13f
MD5 fe10f62458b00aa92fd80c379eba58d4
BLAKE2b-256 e39a2c6f20cac5a124022f6c47b2731ed355885501cfb7387dab89126ace6252

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.5.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.5.1-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.5.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1d3bd511dabcc460ad7449150a63e416774017708710e8dd4b57268ddfbb4221
MD5 f8f5ee176537aa7ac72631304dbecbef
BLAKE2b-256 420f8b5190664857d7ca5c7791302caa3af92205e362335d26e8ec390d7f4968

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.5.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.5.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.5.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e2c21bb73c60f24564e87f51bb0e8e98e4bb76cb3c633550619fe2bb474cb20f
MD5 dab524032122ed1e7855a8962673f86b
BLAKE2b-256 d96bde0d505b28750960856d050f5c23bb61e7ea9c46079a08a107f3b9a352c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.5.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.5.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.5.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 06f0667b8317b6c4d2fb9e7e3d2c286143ed56cce54f553b5ccfacb595d4f547
MD5 5cc737170dd00f2dd787f3fc727e318e
BLAKE2b-256 6eb763c33e96416068403f3e840c89d7ff794c1206562ae336726e5f6d4aaf4f

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.5.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.5.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.5.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e871be995a372aceff673b30f13e076e40c3f2a192c59fc668c2b42b99c3848f
MD5 78b6256803aac0d15e17a08c339eb43e
BLAKE2b-256 2951197f83a3aed4c6ccd06395c91a46d95dc8db4158a714f971b48d4dafe4ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.5.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.5.1-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for posit_connect_secrets_manager-0.5.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 86edc7e4f2378366a25b499d8b80dca015862f2bc17b20c2432bbb6a451d1bcf
MD5 ebf98398a5f10d7d945568739e63f7e1
BLAKE2b-256 5570a2f3b6e262c6b97b1465eb919d8e4540a6dde91ee990a9b4d366ddca3b4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for posit_connect_secrets_manager-0.5.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