Skip to content

Credential vault, credential files, and secret handling #32

Closed

Description

@somethingwithproof

Summary

No cloud credential is stored in the clear in the Cacti database.

Requirements

  • REQ-CRED-001 Vault secrets MUST be encrypted with AES-256-GCM, a random nonce, and additional data binding the ciphertext to its account.
  • REQ-CRED-002 The vault key MUST be read from a file outside the database that the plugin never creates or writes, and refused unless it is a regular file, not a symbolic link, not readable or writable by others, and exactly 32 bytes or 64 hex characters.
  • REQ-CRED-003 Credential files MUST be read only by absolute path and refused unless they are regular files of bounded size, not symbolic links, and not readable or writable by others.
  • REQ-CRED-004 Stored secrets MUST NOT be sent to the browser, written to logs, included in exceptions, or exported.
  • REQ-CRED-005 Error text from providers and the transport MUST pass through a redactor that removes known secrets and Authorization values.
  • REQ-CRED-006 Objects holding secrets MUST refuse serialization and redact debug output.

Acceptance criteria

  • A test searches logs, responses, and a database dump for the test secrets and finds none.
  • Key and credential file checks tested for each refusal.

References

Dependencies

Activity

  1. somethingwithproof commented on Nov 15, 2026

    @somethingwithproof
    OwnerAuthor

    Done in #81 (merged as b3730b1).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: credentialsCredential sources, vault, and token handlingarea: securityTrust boundaries, permissions, and secret safetyphase: 1 coreCore and DigitalOceanpriority: blockerStops its milestone until resolvedtype: requirementA testable behavior the plugin must have

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions