Browser-based RDP clipboard controls#28670
Open
asamborski wants to merge 5 commits intocloudflare:productionfrom
Open
Browser-based RDP clipboard controls#28670asamborski wants to merge 5 commits intocloudflare:productionfrom
asamborski wants to merge 5 commits intocloudflare:productionfrom
Conversation
Initial draft for clipboard control changelog
Changelog updates and dev docs
ymarcus93
reviewed
Mar 2, 2026
Comment on lines
+232
to
+270
| connection_rules: { | ||
| rdp: { | ||
| allow_local_clipboard_to_remote: true, | ||
| allow_remote_clipboard_to_local: false, | ||
| }, | ||
| }, | ||
| }} | ||
| /> | ||
|
|
||
| | Parameter | Type | Description | | ||
| | --- | --- | --- | | ||
| | `allow_local_clipboard_to_remote` | boolean | When `true`, users can paste text from their local client to the browser-based RDP session. Defaults to `false`. | | ||
| | `allow_remote_clipboard_to_local` | boolean | When `true`, users can copy text from the browser-based RDP session to their local client. Defaults to `false`. | | ||
|
|
||
| </TabItem> | ||
| <TabItem label="Terraform"> | ||
|
|
||
| Use the `connection_rules` block within a [`cloudflare_zero_trust_access_policy`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zero_trust_access_policy) resource: | ||
|
|
||
| ```tf | ||
| resource "cloudflare_zero_trust_access_policy" "rdp-policy" { | ||
| application_id = cloudflare_zero_trust_access_application.rdp-app.id | ||
| account_id = var.cloudflare_account_id | ||
| name = "Allow engineers with restricted clipboard" | ||
| decision = "allow" | ||
| precedence = 1 | ||
|
|
||
| include { | ||
| email_domain = ["example.com"] | ||
| } | ||
|
|
||
| connection_rules { | ||
| rdp { | ||
| allow_local_clipboard_to_remote = true | ||
| allow_remote_clipboard_to_local = false | ||
| } | ||
| } | ||
| } | ||
| ``` |
There was a problem hiding this comment.
It's not a boolean, but an array of allowed formats for that particular direction. Currently, only text is supported. Set the array to empty ([]) to block all copy/paste actions for that particular direction.
RDP Connection Rules Schema
Object: connection_rules.rdp (optional)
| Field | Type | Required | Description | Valid Values |
|---|---|---|---|---|
allowed_clipboard_local_to_remote_formats |
array[string] |
No | Clipboard formats allowed when copying from local machine to remote RDP session | ["text"] or [] |
allowed_clipboard_remote_to_local_formats |
array[string] |
No | Clipboard formats allowed when copying from remote RDP session to local machine | ["text"] or [] |
Both Directions Example
{
"connection_rules": {
"rdp": {
"allowed_clipboard_local_to_remote_formats": ["text"],
"allowed_clipboard_remote_to_local_formats": ["text"]
}
}
}Empty RDP Rules (No Clipboard Access)
{
"connection_rules": {
"rdp": {
"allowed_clipboard_local_to_remote_formats": [],
"allowed_clipboard_remote_to_local_formats": []
}
}
}
ymarcus93
reviewed
Mar 2, 2026
Comment on lines
+263
to
+269
| connection_rules { | ||
| rdp { | ||
| allow_local_clipboard_to_remote = true | ||
| allow_remote_clipboard_to_local = false | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
connection_rules = {
rdp = {
allowed_clipboard_local_to_remote_formats = ["text"]
allowed_clipboard_remote_to_local_formats = []
}
}
ymarcus93
reviewed
Mar 2, 2026
| Use the `connection_rules` block within a [`cloudflare_zero_trust_access_policy`](https://registry.terraform.io/providers/cloudflare/cloudflare/latest/docs/resources/zero_trust_access_policy) resource: | ||
|
|
||
| ```tf | ||
| resource "cloudflare_zero_trust_access_policy" "rdp-policy" { |
There was a problem hiding this comment.
There are some syntax errors in this resource:
application_idis not supported as a top-level field incloudflare_zero_trust_access_policy.cloudflare_zero_trust_access_policyrepresents a reusable policy; you can add it as an attachment to Access applications incloudflare_zero_trust_application.policiesfield.precedenceis not valid in this resource for the same reason as above- Fix:
includeneeds=:
include = [{
email_domain = {
domain = "cloudflare.com"
}
}]
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.
Summary
This change encompasses the changelog for browser-based RDP (anticipated on Monday, March 2) as well as the necessary dev doc updates.
Screenshots (optional)
Documentation checklist