Repository navigation
Conversation
blaubaer
force-pushed
the
feature/management-environment
branch
from
October 16, 2026 20:51
5a10737 to
9143ae7
Compare
This branch has not been deployed
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.
Summary
Add a restricted SSH management environment and a unified local/remote administration CLI. The command layer has been rebuilt on
github.com/echocat/cli4gv0.1.4: executable and management each have one compiled, reusable application definition. Options, authorization, transport dependencies and stdio are bound separately to each invocation through its context.Command architecture
audit, alongsidesession,flow,recording, andversion. The management application registers only these five subjects; executable-only commands never appear in its schema.pkg/cli; old Kingpin registrations, global remote option pointers, andpkg/managementare gone. The separatecmd/buildtool remains independent.pkg/cli/format, wire protocol code inpkg/cli/transport, and transfer DTOs inpkg/cli/model.cli4g.ContextWithStdiobinds stdout, stderr and stdin to the process or SSH session per invocation, including parsing and lifecycle hooks.--format=cboron the public CLI emits the unframed result. Only the internal SSH exchange uses the bounded, versioned CBOR envelope. Audit event time filters use typed RFC3339 timestamps andcli4genum support handles output formats.Security and behavior
includingCredentials. Raw signed artifacts and sensitive direct SSH output requireallowArtifactTransfer: true(default: false).known_hostsand supports Unix/Windows OpenSSH agents and Windows Pageant.@[USER@]HOST[:PORT]selects remote execution; file inputs remain local and incompatible options fail explicitly. Existing protected output-path checks and signed artifact formats are retained.Verification
go test ./...go test -racefor concurrent, repeated management invocations and SSH/service/CLI commandsgolangci-lint(0 issues each)mkdocs build --strict;go mod tidy -diffmise x -- go run ./cmd/bifroest session -c var/configuration.yaml lsexecutes successfully with the new CLI.This PR remains a draft. CI for commit
b6abd92is running. The real PuTTY Pageant runtime test still requires an available Windows host with Pageant running. The intentionally ignored local implementation log isvar/Management-Environment.md.