Skip to content

coderd: audit project and personal agent definitions and plugin pack enablement #355

Closed

Description

@ibetitsmike

Coder Agents opened this issue on behalf of @ibetitsmike.

Follow-up to #218. The PR for #218 audits the organization admin mutations named in its acceptance criteria. These fork mutations still write no audit entry:

  • Project agent definitions: create, update, delete (coderd/fork_project_agent_definitions.go).
  • Personal agent definitions: create, update, delete (coderd/fork_agent_definitions.go).
  • Plugin pack enablement changes (coderd/fork_plugin_pack_enablement.go).

Use the same helper as #218 (coderd/fork_audit.go: initForkAudit, target, diff), so each change is a write of the owning organization with fork_resource, operation and changes in the additional fields.

Acceptance:

  • Each mutation above writes one audit entry on success, and a denied request before authorization writes none.
  • Tests with audit.NewMock() that fail without the change.

Activity

  1. ibetitsmike commented on Nov 17, 2026

    @ibetitsmike
    OwnerAuthor

    Coder Agents acted on behalf of @ibetitsmike.

    Merged as #381 (99056e8) at 14:22Z on 2026-11-17. Agent definition writes (personal, project, organization) and plugin pack enablement writes are now audited. Gates and tests: #381 (comment)

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions