Skip to content

tailcfg/peercap, types/appctype: prepare for conn25 grants - #20852

Open
sailorfrag wants to merge 1 commit into
mainfrom
adrian/conn25-acl-tailcfg
Open

tailcfg/peercap, types/appctype: prepare for conn25 grants#20852
sailorfrag wants to merge 1 commit into
mainfrom
adrian/conn25-acl-tailcfg

Conversation

@sailorfrag

Copy link
Copy Markdown
Member

This change contains the protocol changes needed to support describing authorization for conn25 apps. As a temporary transition measure during development, app configurations can disable authorization enforcement.

Updates tailscale/corp#40076

Change-Id: I3183c10374aacb0048f6632c384f71f758c20f2f

This change contains the protocol changes needed to support
describing authorization for conn25 apps. As a temporary transition
measure during development, app configurations can disable authorization
enforcement.

Updates tailscale/corp#40076

Change-Id: I3183c10374aacb0048f6632c384f71f758c20f2f
Signed-off-by: Adrian Dewhurst <adrian@tailscale.com>
@sailorfrag
sailorfrag requested review from a team and mzbenami August 13, 2026 20:59
// ToAttribute returns the full [Cap] key for the given value under this prefix,
// of the form prefix+value.
func (p Prefix) ToAttribute(value string) Cap {
return Cap(string(p) + value)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worthwhile to panic if value == ""?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, I'd like to keep this consistent with the nodecap equivalent and it doesn't do that, so that feels like a separate cleanup?

// BypassFilter indicates that the connector should not look for peer
// capabilities when determining authorization to use an app. This is a
// temporary measure during development and will be removed without warning.
BypassFilter bool `json:"bypassFilter,omitzero"`

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should give it a less "attractive" name, e.g., ExperimentalBypassFilter or UnsafeBypassFilter or something?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this has been in the back of my mind. I can do that easily enough, but I also plan to have this deleted in under a month.

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.

2 participants