Skip to content

feat(provider): add coder_dlp_policy resource and dlp_policy field on coder_agent#510

Draft
jscottmiller wants to merge 1 commit into
mainfrom
feat/dlp-policy-enforcement
Draft

feat(provider): add coder_dlp_policy resource and dlp_policy field on coder_agent#510
jscottmiller wants to merge 1 commit into
mainfrom
feat/dlp-policy-enforcement

Conversation

@jscottmiller
Copy link
Copy Markdown

@jscottmiller jscottmiller commented May 18, 2026

Adds a new coder_dlp_policy resource and an optional dlp_policy attribute on coder_agent that references a policy by id. This is the Terraform side of the first slice of DLP policy support; the matching server changes live in coder/coder#25464.

The resource exposes four enforcement flags, all defaulting to false:

  • ssh_access: gate the CLI peering channel (ssh / port-forward / cp / speedtest, coarse together because the data plane is peer-to-peer Wireguard once /coordinate succeeds).
  • web_terminal_access: gate the dashboard PTY.
  • port_forwarding_access: gate the dashboard "Ports" tab. Does not affect the CLI port-forward (that is covered by ssh_access).
  • allowed_applications: list of coder_app slugs the workspace user may reach via the dashboard app proxy. Anything not listed is blocked.

Agents reference a policy by id via the new coder_agent.dlp_policy attribute, which is ForceNew and validated as a UUID. A single policy may be referenced by any number of agents.

This PR is a precursor to coder/coder#25464. They must merge in order: this one first, then a tagged release, then the version bump on the coder/coder PR before that one merges.


This PR was generated by Coder Agents on behalf of @jscottmiller.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant