Skip to content

[P2][security] Insecure patterns taught in skill docs (auth-bypass examples, secrets in argv/stdout) #8

Description

@Toqsick

Source: RepoLens Security-Audit 2026-08-16 (findings security/authorization/001–005+007, security/secrets/002+004–006, adversarial-verified ✅)

Skill docs teach insecure patterns that get copied into real code:

  • 001 Telegram wildcard * allow-everyone example
  • 002/006 WS/REST patches re-enabling ?token= in query strings
  • 003 _TokenPasswordProvider static credential pattern
  • 004 PUBLIC_API_PATHS documented as auth-bypass knob
  • 007 gateway-adapter-development documents allow_all_env as first-class option
  • secrets/002 .gitignore misses credential filename patterns (partially fixed in 182b3fd)
  • secrets/004 Harbor default password Harbor12345 as CLI fallback
  • secrets/005 Telegram bot token passed as curl argv (visible in process list)
  • secrets/006 api-discovery.sh echoes token prefix to stdout

Suggested fix: rewrite doc examples to the secure variants (env vars, headers, fail-closed), add a doc-lint grep to CI.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions