Skip to content

feat: wire and persist coder_dlp_policy from provisioner to database#25536

Closed
jscottmiller wants to merge 2 commits into
mainfrom
feat/dlp-policy-plumbing
Closed

feat: wire and persist coder_dlp_policy from provisioner to database#25536
jscottmiller wants to merge 2 commits into
mainfrom
feat/dlp-policy-plumbing

Conversation

@jscottmiller

@jscottmiller jscottmiller commented May 20, 2026

Copy link
Copy Markdown
Contributor

Adds the plumbing layer for DLP (Data Loss Prevention) policy enforcement. The coder_dlp_policy Terraform resource is wired through the provisioner protocol and persisted to a new template_version_dlp_policies table. No behavioral change; enforcement gates come in a follow-up PR.

  • Extend provisioner proto with DLPPolicy message and pipe it through CompletedJob.
  • Add template_version_dlp_policies table and SQLC queries.
  • Add coderd/dlppolicy package with ForAgent helper for downstream enforcement.

~80% of the diff is autogenerated (protobuf, SQLC, mocks, golden fixtures). Real changes are ~600 lines.

Depends on coder/terraform-provider-coder#510

Note

Generated by Coder Agents on behalf of @jscottmiller

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant