bug in function excludeCorrectlyTaggedNodes() #261

Closed
opened 2025-12-29 01:25:13 +01:00 by adam · 2 comments
Owner

Originally created by @awsong on GitHub (Apr 28, 2022).

In function excludeCorrectlyTaggedNodes() when matching tags with tagOwners:
e80954b6c8/acls.go (L314)
The above line missing the condition when tagOwners are groups.
Adding two lines here could fix this problem
owners, _ := expandTagOwners(aclPolicy, namespace, true)
ns = append(owners, namespace)
But the third parameter (true/false) needs to be filled correctly, which I'm not sure how could be elegantly done.

Originally created by @awsong on GitHub (Apr 28, 2022). In function excludeCorrectlyTaggedNodes() when matching tags with tagOwners: https://github.com/juanfont/headscale/blob/e80954b6c8f97f19ca881ab1c3bf5d7d2428d74c/acls.go#L314 The above line missing the condition when tagOwners are groups. Adding two lines here could fix this problem `owners, _ := expandTagOwners(aclPolicy, namespace, true)` `ns = append(owners, namespace)` But the third parameter (true/false) needs to be filled correctly, which I'm not sure how could be elegantly done.
adam closed this issue 2025-12-29 01:25:14 +01:00
Author
Owner

@kradalby commented on GitHub (Jun 12, 2022):

We will be grateful for a PR to solve this issue :)

@restanrm, does this look right to you? Maybe this is already fixed?

@kradalby commented on GitHub (Jun 12, 2022): We will be grateful for a PR to solve this issue :) @restanrm, does this look right to you? Maybe this is already fixed?
Author
Owner

@restanrm commented on GitHub (Jun 15, 2022):

I'll check this as soon as I found some time to do it.

@restanrm commented on GitHub (Jun 15, 2022): I'll check this as soon as I found some time to do it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#261