feat(provider): add coder_dlp_policy resource and dlp_policy field on coder_agent#510
Draft
jscottmiller wants to merge 1 commit into
Draft
feat(provider): add coder_dlp_policy resource and dlp_policy field on coder_agent#510jscottmiller wants to merge 1 commit into
jscottmiller wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new
coder_dlp_policyresource and an optionaldlp_policyattribute oncoder_agentthat 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/coordinatesucceeds).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 byssh_access).allowed_applications: list ofcoder_appslugs 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_policyattribute, which isForceNewand 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.