Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cs/src/Contracts/TunnelConstraints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public static class TunnelConstraints
/// formatted name with email. The service will block any other use of angle-brackets,
/// to avoid any XSS risks.
/// </remarks>
public const string AccessControlSubjectNamePattern = "[ \\w\\d-.,/'\"_@()<>]{0,200}";
public const string AccessControlSubjectNamePattern = "[ \\w\\d-.,/:'\"_@()<>]{0,200}";

/// <summary>
/// Regular expression that can match or validate an access control subject name, when resolving
Expand Down
2 changes: 1 addition & 1 deletion go/tunnels/tunnel_constraints.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const (
// Note angle-brackets are only allowed when they wrap an email address as part of a
// formatted name with email. The service will block any other use of angle-brackets, to
// avoid any XSS risks.
TunnelConstraintsAccessControlSubjectNamePattern = "[ \\w\\d-.,/'\"_@()<>]{0,200}"
TunnelConstraintsAccessControlSubjectNamePattern = "[ \\w\\d-.,/:'\"_@()<>]{0,200}"
)
var (
// Regular expression that can match or validate tunnel cluster ID strings.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ public class TunnelConstraints {
* formatted name with email. The service will block any other use of angle-brackets,
* to avoid any XSS risks.
*/
public static final String accessControlSubjectNamePattern = "[ \\w\\d-.,/'\"_@()<>]{0,200}";
public static final String accessControlSubjectNamePattern = "[ \\w\\d-.,/:'\"_@()<>]{0,200}";

/**
* Regular expression that can match or validate an access control subject name, when
Expand Down
2 changes: 1 addition & 1 deletion rs/src/contracts/tunnel_constraints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ pub const ACCESS_CONTROL_SUBJECT_PATTERN: &str = r#"[0-9a-zA-Z-._:/@]{0,200}"#;
// Note angle-brackets are only allowed when they wrap an email address as part of a
// formatted name with email. The service will block any other use of angle-brackets, to
// avoid any XSS risks.
pub const ACCESS_CONTROL_SUBJECT_NAME_PATTERN: &str = r#"[ \w\d-.,/'"_@()<>]{0,200}"#;
pub const ACCESS_CONTROL_SUBJECT_NAME_PATTERN: &str = r#"[ \w\d-.,/:'"_@()<>]{0,200}"#;
2 changes: 1 addition & 1 deletion ts/src/contracts/tunnelConstraints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export namespace TunnelConstraints {
* formatted name with email. The service will block any other use of angle-brackets,
* to avoid any XSS risks.
*/
export const accessControlSubjectNamePattern: string = '[ \\w\\d-.,/\'"_@()<>]{0,200}';
export const accessControlSubjectNamePattern: string = '[ \\w\\d-.,/:\'"_@()<>]{0,200}';

/**
* Regular expression that can match or validate an access control subject name, when
Expand Down
Loading