Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kube,tailcfg: store parsed recorder tags in a separate field #12429

Merged
merged 1 commit into from
Jun 11, 2024

Conversation

irbekrm
Copy link
Contributor

@irbekrm irbekrm commented Jun 11, 2024

Add an additional RecorderAddrs field to tailscale.com/cap/kubernetes capability rule to separate the field set by users only, from the field populated by control with the addresses resolved from the tags provided the Recorders field.

Updates tailscale/corp#19821

@irbekrm irbekrm requested a review from a team as a code owner June 11, 2024 18:47
@irbekrm irbekrm requested a review from maisem June 11, 2024 18:54
kube/grants.go Outdated
// This list must not contain more than one tag. The field
// name matches the `Recorder` field with equal semantics for Tailscale
// SSH session recorder. This field is set by users in ACL grants and is
// then parsed by control who resolves the tags and populates RecorderAddrs.
Copy link
Contributor

Choose a reason for hiding this comment

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

which resolves

kube/grants.go Outdated
// matching `dst` of this grant will be recorded and the recording will
// be sent to the tsrecorder. This field does not exist in the user
// provided ACL grants - it is populated by control who obtains the
// addresses by resolving the tags provided via .Recorders field.
Copy link
Contributor

Choose a reason for hiding this comment

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

no . before Recorders

Add an additional RecorderAddrs field to tailscale.com/cap/kubernetes
capability. RecorderAddrs will only be populated by control
with the addresses of any tsrecorder tags set via Recorder.

Updates tailscale/corp#19821

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
@irbekrm irbekrm force-pushed the irbekrm/kubegrants_split branch from 0006621 to 8418e97 Compare June 11, 2024 20:52
@irbekrm irbekrm merged commit a95ea31 into main Jun 11, 2024
48 checks passed
@irbekrm irbekrm deleted the irbekrm/kubegrants_split branch June 11, 2024 21:50
chen8945 pushed a commit to Ckid-Home/tailscale that referenced this pull request Jul 31, 2024

Verified

This commit was signed with the committer’s verified signature.
aduh95 Antoine du Hamel
…le#12429)

Add an additional RecorderAddrs field to tailscale.com/cap/kubernetes
capability. RecorderAddrs will only be populated by control
with the addresses of any tsrecorder tags set via Recorder.

Updates tailscale/corp#19821

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
Asutorufa pushed a commit to Asutorufa/tailscale that referenced this pull request Aug 23, 2024

Verified

This commit was signed with the committer’s verified signature.
targos Michaël Zasso
…le#12429)

Add an additional RecorderAddrs field to tailscale.com/cap/kubernetes
capability. RecorderAddrs will only be populated by control
with the addresses of any tsrecorder tags set via Recorder.

Updates tailscale/corp#19821

Signed-off-by: Irbe Krumina <irbe@tailscale.com>
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.

None yet

2 participants