-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
tags: process tags on registration, simplify policy #2931
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
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
4d264c0
policy: simplify tag and autogroup resolution for tags-as-identity
kradalby 3ffb2c7
policy: update tests for tags-as-identity model
kradalby 30a5d66
state: process advertise-tags during registration
kradalby d95f3c4
integration: add CreateAuthKeyWithTags helper
kradalby eeeb36b
integration: add tests for advertise-tags behavior
kradalby 9cacfa4
changelog: document tags-as-identity changes
kradalby 8c2e5f5
integration: initial full tag matrix test
kradalby f29988a
.github/workflows: regen
kradalby 6651911
auth: fixup tests
kradalby 7326d61
integration: cleanup duplicate tests
kradalby d5f0055
integration: fix missing and left over imports
kradalby f159d66
state: align error message with Tailscale SaaS format
kradalby a792a5b
policy: add user-based fallback for new node tag authorization
kradalby 5122cfc
policy: fix stale comment in autogroup:member
kradalby 093ba4e
policy: extend test coverage for NodeCanHaveTag and userMatchesOwner
kradalby f4d81e2
hscontrol: update tests for new error message format
kradalby 024a8d1
integration: rename test and improve error handling
kradalby a957a23
integration: remove unused tag option in TestAutoApproveMultiNetwork
kradalby 6254279
ci: update integration test name
kradalby 5323366
integration: more time for route tests
kradalby a12f295
policy: move flattenTags and flattenTagOwners to policy.go
kradalby b991080
integration: replace time.Sleep with EventuallyWithT in tags tests
kradalby fe0934c
golangci-lint: use forbidigo to block time.Sleep
kradalby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The forbidigo rule to ban
time.Sleepeverywhere is overly restrictive. While the intent to useassert.EventuallyWithTin tests is good, there are legitimate uses oftime.Sleepin production code (e.g., rate limiting, deliberate delays, exponential backoff implementations). Consider:time.Sleepis intentional_test.go)The current rule may force developers to work around it in ways that make code less clear.