securitysecrets | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / securitysecrets

securitysecrets

maintained by mgreenly

star 1 account_tree 0 verified_user MIT License
bolt View GitHub

name: security/secrets description: Secrets Management security skill

Secrets Management

API keys and credentials require careful handling throughout their lifecycle.

ikigai Application

API keys (OpenAI, Anthropic, etc.):

  • Store in config file with 0600 permissions
  • Load once at startup, hold in memory
  • Never log, never include in error messages
  • Never embed in source code or commits

Memory handling:

  • Scrub secrets from memory when done: explicit_bzero(key, len)
  • Avoid strdup() for secrets (can't track copies)
  • Keep secret lifetime short and scoped

Config file security:

// Check permissions before reading
struct stat st;
if (stat(path, &st) == 0 && (st.st_mode & 077) != 0) {
    return ERR(ctx, SECURITY, "Config file permissions too open");
}

Never expose:

  • In logs or debug output
  • In error messages shown to user
  • In core dumps (prctl(PR_SET_DUMPABLE, 0))
  • Via environment to child processes

Review red flags: Secrets in printf/logging, strdup on credentials, missing permission checks.

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 1
GitHub Forks 0
Created Jan 2026
Last Updated 4 months ago
tools tools system admin

Related Skills

docker-expert
chevron_right
caffeine
chevron_right
telnyx-network
chevron_right
discord-governance
chevron_right
plex

plex

openclaw
star 2.4k
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.