Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

app: cliSubcommands omits update, bypasses human-terminal gate

Open Beginner friendly
#226 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
91/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
cli, security

Research direction

Read packages/app/main.go, especially the cliSubcommands map near line 26 and the table() command registrations near line 159. Check how isHumanCLI uses the map and compare the gating of update with repair. Add update to the map; done when solongate update is subject to assertHumanTerminal like the other listed commands.

Written by the indexing model from the issue text.

Description

bug

Problem

cliSubcommands in packages/app/main.go:26 lists the subcommands that must run from a human terminal, but omits "update", even though table() at line 159 registers "update" in the same command table alongside other gated commands like "repair".

cliSubcommands = map[string]bool{
    "init": true, "status": true, "repair": true, ...
}

"update" is missing from this map.

Impact

isHumanCLI := len(args) == 0 || cliSubcommands[sub] evaluates false for sub == "update", so assertHumanTerminal never runs for solongate update. Every other sensitive command in the table (repair, etc.) is blocked from running non-interactively, for example from a script, a CI job, or a confined agent shelling out, but update is not, letting it run and replace the installed binary outside the human-terminal guarantee the rest of the table enforces.

Suggested fix

Add "update": true to cliSubcommands.

Dominant language
Go
Stars
157
Forks
19
Avg merge
4h 28m
Merged PRs (30d)
88

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from solongate/agent-security

All issues in solongate/agent-security

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.