Implement Rust CLI for GitHub secrets management with audit logging#1
Merged
GeorgeIpsum merged 5 commits intomainfrom Nov 11, 2025
Merged
Conversation
|
Co-authored-by: GeorgeIpsum <2670350+GeorgeIpsum@users.noreply.github.com>
Co-authored-by: GeorgeIpsum <2670350+GeorgeIpsum@users.noreply.github.com>
Co-authored-by: GeorgeIpsum <2670350+GeorgeIpsum@users.noreply.github.com>
Co-authored-by: GeorgeIpsum <2670350+GeorgeIpsum@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Rust CLI application for managing secrets
Implement Rust CLI for GitHub secrets management with audit logging
Nov 11, 2025
GeorgeIpsum
approved these changes
Nov 11, 2025
Member
GeorgeIpsum
left a comment
There was a problem hiding this comment.
I have no idea what I'm reading but it looks cool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds a CLI tool to manage GitHub repository secrets/environments for an organization, with audit logging and command execution using environment variables.
Implementation
Core modules:
github/- REST API client for secrets/environments CRUD, libsodium encryption for secret valuesaudit/- Event logging to external URL with JSON payload (timestamp, action, repo, env, user)config/- TOML-based configuration at~/.config/with-env/config.tomlcommands/- 7 CLI commands: init, list-envs, list-secrets, get-secret, set-secret, delete-secret, runKey design decisions:
.envfiles store secret values (GitHub API doesn't return values), validated against GitHub secrets listwith-env, supports shorthandwith-env <cmd>(uses "default" environment)Usage
Dependencies
reqwest- GitHub API clientsodiumoxide0.2.7 - Secret encryption (sealed boxes)clap- CLI parsinggit2- Repository detection from git remoteWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/tilli-pro/env/environments/default/secrets./target/debug/with-env run default bash -c echo "TEST_VAR=$TEST_VAR"(http block)./target/debug/with-env echo Hello from with-env!(http block)./target/release/with-env /tmp/test_shorthand.sh(http block)https://api.github.com/repos/tilli-pro/env/environments/staging/secrets./target/release/with-env run staging /tmp/test_env_script.sh(http block)./target/release/with-env run staging bash -c echo "Database: $DATABASE_URL"(http block)https://api.github.com/repos/tilli-pro/env/environments/test/secrets./target/debug/with-env run test /tmp/check_env.sh(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.