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

Headscale: Added an option to set an Access-Control-Allow-Origin resp… #1

Open
wants to merge 45 commits into
base: updated
Choose a base branch
from

Conversation

Jisse-Meruma
Copy link

  • [ x ] read the CONTRIBUTING guidelines
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • [ x ] updated documentation if needed
  • updated CHANGELOG.md

@Jisse-Meruma Jisse-Meruma requested a review from yuri91 December 12, 2024 15:50
* consolidate scheduled tasks into one goroutine

Signed-off-by: Kristoffer Dalby <[email protected]>

* rename Tailcfg dns struct

Signed-off-by: Kristoffer Dalby <[email protected]>

* add dns.extra_records_path option

Signed-off-by: Kristoffer Dalby <[email protected]>

* prettier lint

Signed-off-by: Kristoffer Dalby <[email protected]>

* go-fmt

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
Copy link
Member

@yuri91 yuri91 left a comment

Choose a reason for hiding this comment

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

squash the commits together. other than that it looks clean to me.
Make the PR to upstream first thing on Monday (so you don't get potentially pinged on the weekend).

@Jisse-Meruma Jisse-Meruma force-pushed the enable-cors-with-config branch from 2c2085a to 39bd024 Compare December 13, 2024 14:22
@Jisse-Meruma Jisse-Meruma added bug Something isn't working and removed bug Something isn't working labels Dec 13, 2024
@Jisse-Meruma Jisse-Meruma requested a review from yuri91 December 16, 2024 09:24
Jumpcloud send invalid json, so we need to handle it.

Fixes juanfont#2293

Signed-off-by: Kristoffer Dalby <[email protected]>
* Fix excess error message during writes

Fixes juanfont#2290

Signed-off-by: Kristoffer Dalby <[email protected]>

* retry filewatcher on removed files

This should handled if files are deleted and added again, and for rename
scenarios.

Fixes juanfont#2289

Signed-off-by: Kristoffer Dalby <[email protected]>

* test more write and remove in filewatcher

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
@Jisse-Meruma Jisse-Meruma force-pushed the enable-cors-with-config branch from 39bd024 to 4183039 Compare December 16, 2024 11:02
showier-drastic and others added 9 commits December 17, 2024 12:11
…uanfont#2306)

* Correct macOS GUI connect guide because there's no ALT key on a mac
* also correct macOS GUI connect in hscontrol text
…odesInUser (juanfont#2038)

* Add -race flag to Makefile and integration tests; fix data race in CreateTailscaleNodesInUser

* Fix data race in ExecuteCommand by using local buffers and mutex

Signed-off-by: Dongjun Na <[email protected]>

* lint

Signed-off-by: Dongjun Na <[email protected]>

---------

Signed-off-by: Dongjun Na <[email protected]>
The referenced version is outdated (0.23.0-beta1) and seems
unmaintained.
* Describe both ways to add extra DNS records
* Use "extra" instead of "custom" to align with the configuration file
* Include dns.extra_records_path in the configuration file
* Bump go crypto

Closes juanfont#2281

Signed-off-by: Kristoffer Dalby <[email protected]>

* upgrade tailscale

Signed-off-by: Kristoffer Dalby <[email protected]>

* upgrade rest

Signed-off-by: Kristoffer Dalby <[email protected]>

* nix: flake update

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
@Jisse-Meruma Jisse-Meruma force-pushed the enable-cors-with-config branch 2 times, most recently from e07c42b to dfad6a1 Compare December 18, 2024 16:27
kradalby and others added 4 commits December 19, 2024 13:10
* ensure valid tags is populated on user gets too

Signed-off-by: Kristoffer Dalby <[email protected]>

* ensure forced tags are added

Signed-off-by: Kristoffer Dalby <[email protected]>

* remove unused envvar in test

Signed-off-by: Kristoffer Dalby <[email protected]>

* debug log auth/unauth tags in policy man

Signed-off-by: Kristoffer Dalby <[email protected]>

* defer shutdown in tags test

Signed-off-by: Kristoffer Dalby <[email protected]>

* add tag test with groups

Signed-off-by: Kristoffer Dalby <[email protected]>

* add email, display name, picture to create user

Updates juanfont#2166

Signed-off-by: Kristoffer Dalby <[email protected]>

* add ability to set display and email to cli

Signed-off-by: Kristoffer Dalby <[email protected]>

* add email to test users in integration

Signed-off-by: Kristoffer Dalby <[email protected]>

* fix issue where tags were only assigned to email, not username

Fixes juanfont#2300
Fixes juanfont#2307

Signed-off-by: Kristoffer Dalby <[email protected]>

* expand principles to correct login name

and if fix an issue where nodeip principles might not expand to all
relevant IPs instead of taking the first in a prefix.

Signed-off-by: Kristoffer Dalby <[email protected]>

* fix ssh unit test

Signed-off-by: Kristoffer Dalby <[email protected]>

* update cli and oauth tests for users with email

Signed-off-by: Kristoffer Dalby <[email protected]>

* index by test email

Signed-off-by: Kristoffer Dalby <[email protected]>

* fix last test

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
* feat: add PKCE verifier for OIDC

* Update CHANGELOG.md
github-actions bot and others added 24 commits January 5, 2025 07:35
* set state and nounce in oidc to prevent csrf

Fixes juanfont#2276

* try to fix new postgres issue

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
The official iOS app now has a simpler login process for custom instances, directly within the app.
* correct changelog date

Signed-off-by: Kristoffer Dalby <[email protected]>

* update docs version and copyright

Signed-off-by: Kristoffer Dalby <[email protected]>

* fix deprecated goreleaser key and DRY

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
…oviders (juanfont#2364)

* relax user validation to allow emails, add tests from various oidc providers

Signed-off-by: Kristoffer Dalby <[email protected]>

* changelog

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
* make it harder to insert invalid routes

Signed-off-by: Kristoffer Dalby <[email protected]>

* dont panic if node is not available for route

Signed-off-by: Kristoffer Dalby <[email protected]>

* update changelog

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
* fix postgres migration issue with 0.24

Fixes juanfont#2351

Signed-off-by: Kristoffer Dalby <[email protected]>

* add postgres migration test for 2351

Signed-off-by: Kristoffer Dalby <[email protected]>

* update changelog

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
* fix panic if derp update is 0

Fixes juanfont#2362

Signed-off-by: Kristoffer Dalby <[email protected]>

* update changelog

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
* update users doc on unique constraints

Signed-off-by: Kristoffer Dalby <[email protected]>

* simplify finduser func

Signed-off-by: Kristoffer Dalby <[email protected]>

* add initial tests for findUserFromToken

Signed-off-by: Kristoffer Dalby <[email protected]>

* add changelog

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
The routes table has a NOT NULL constraint on node_id.

Fixes: juanfont#2376
* clean up handler methods, common logging

Signed-off-by: Kristoffer Dalby <[email protected]>

* streamline http.Error calls

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
* initial capver packet tracking version

Signed-off-by: Kristoffer Dalby <[email protected]>

* Log the minimum version as client version, not only capver

Signed-off-by: Kristoffer Dalby <[email protected]>

* remove old versions

Signed-off-by: Kristoffer Dalby <[email protected]>

* use capver for integration tests

Signed-off-by: Kristoffer Dalby <[email protected]>

* changelog

Signed-off-by: Kristoffer Dalby <[email protected]>

* patch through m and n key

Signed-off-by: Kristoffer Dalby <[email protected]>

---------

Signed-off-by: Kristoffer Dalby <[email protected]>
…onse header to enable Cross-Origin Resource Sharing (CORS)
@Jisse-Meruma Jisse-Meruma force-pushed the enable-cors-with-config branch from dfad6a1 to 68ce697 Compare February 5, 2025 11:08
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.

9 participants