Kristoffer Dalby
b01eda721c
proto: add id field to API key expire/delete requests
...
Add id field to ExpireApiKeyRequest and DeleteApiKeyRequest messages.
This allows API keys to be expired or deleted by their database ID
in addition to the existing prefix-based lookup.
Updates #2986
2026-01-20 17:13:38 +01:00
Kristoffer Dalby
1398d01bd8
proto: change preauthkey API to ID-based operations
...
Remove user parameter from ListPreAuthKeys.
Change ExpirePreAuthKey and DeletePreAuthKey to use key ID.
2026-01-20 12:53:20 +01:00
Kristoffer Dalby
eec54cbbf3
api/v1: replace ForcedTags/InvalidTags/ValidTags with Tags
...
Simplifies the API by exposing a single tags field instead of three
separate fields for forced, invalid, and valid tags. The distinction
between these was an internal implementation detail that should not
be exposed in the public API.
Marks fields 18-20 as reserved to prevent field number reuse.
2026-01-14 09:32:46 +01:00
Kristoffer Dalby
3cf2d7195a
auth: ensure machines are allowed in when pak change ( #2917 )
2025-12-02 12:01:02 +01:00
Kristoffer Dalby
16d811b306
cli: remove node move command ( #2922 )
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Check Generated Files / check-generated (push) Has been cancelled
NixOS Module Tests / nix-module-check (push) Has been cancelled
Tests / test (push) Has been cancelled
2025-12-01 21:43:31 +01:00
Andrey
f9bb88ad24
expire nodes with a custom timestamp ( #2828 )
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Check Generated Files / check-generated (push) Has been cancelled
Tests / test (push) Has been cancelled
Close inactive issues / close-issues (push) Has been cancelled
update-flake-lock / lockfile (push) Has been cancelled
GitHub Actions Version Updater / build (push) Has been cancelled
2025-11-01 08:09:13 +01:00
Stavros Kois
c07cc491bf
add health command ( #2659 )
...
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Check Generated Files / check-generated (push) Has been cancelled
Deploy docs / deploy (push) Has been cancelled
Tests / test (push) Has been cancelled
* add health command
* update health check implementation to allow for more checks to added over time
* add change changelog entry
2025-10-16 12:00:11 +00:00
Kristoffer Dalby
a975b6a8b1
hscontrol: remove go-grpc-middleware v1 dependency ( #2653 )
...
Build / build-nix (push) Waiting to run
Build / build-cross (GOARCH=386 GOOS=linux) (push) Waiting to run
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Waiting to run
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Waiting to run
Build / build-cross (GOARCH=arm GOOS=linux GOARM=5) (push) Waiting to run
Build / build-cross (GOARCH=arm GOOS=linux GOARM=6) (push) Waiting to run
Build / build-cross (GOARCH=arm GOOS=linux GOARM=7) (push) Waiting to run
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Waiting to run
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Waiting to run
Tests / test (push) Waiting to run
Co-authored-by: Claude <noreply@anthropic.com >
2025-06-23 16:57:20 +02:00
Kristoffer Dalby
6b6509eeeb
notify nodes after owner change ( #2543 )
...
Build / build-nix (push) Waiting to run
Build / build-cross (GOARCH=386 GOOS=linux) (push) Waiting to run
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Waiting to run
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Waiting to run
Build / build-cross (GOARCH=arm GOOS=linux GOARM=5) (push) Waiting to run
Build / build-cross (GOARCH=arm GOOS=linux GOARM=6) (push) Waiting to run
Build / build-cross (GOARCH=arm GOOS=linux GOARM=7) (push) Waiting to run
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Waiting to run
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Waiting to run
Tests / test (push) Waiting to run
* proto: user id as identifier for move node
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* gen: regenr
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* grpc: move, use userid, one tx, send update
Updates #2467
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* integration: update move cli tests
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
2025-04-30 18:33:38 +02:00
Kristoffer Dalby
8f9fbf16f1
types/authkey: include user object in response ( #2542 )
...
* types/authkey: include user object, not string
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* make preauthkeys use id
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* changelog
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* integration: wire up user id for auth keys
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
2025-04-30 11:45:08 +02:00
Kristoffer Dalby
7891378f57
Redo route code ( #2422 )
...
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
2025-02-26 16:22:55 +01:00
Kristoffer Dalby
770f3dcb93
fix tags not resolving to username if email is present ( #2309 )
...
Build / build-nix (push) Has been cancelled
Build / build-cross (GOARCH=386 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=amd64 GOOS=linux) (push) Has been cancelled
Build / build-cross (GOARCH=arm GOOS=linux GOARM=5) (push) Has been cancelled
Build / build-cross (GOARCH=arm GOOS=linux GOARM=6) (push) Has been cancelled
Build / build-cross (GOARCH=arm GOOS=linux GOARM=7) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=darwin) (push) Has been cancelled
Build / build-cross (GOARCH=arm64 GOOS=linux) (push) Has been cancelled
Tests / test (push) Has been cancelled
update-flake-lock / lockfile (push) Has been cancelled
GitHub Actions Version Updater / build (push) Has been cancelled
* ensure valid tags is populated on user gets too
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* ensure forced tags are added
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* remove unused envvar in test
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* debug log auth/unauth tags in policy man
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* defer shutdown in tags test
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* add tag test with groups
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* add email, display name, picture to create user
Updates #2166
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* add ability to set display and email to cli
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* add email to test users in integration
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* fix issue where tags were only assigned to email, not username
Fixes #2300
Fixes #2307
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* 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 <kristoffer@tailscale.com >
* fix ssh unit test
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* update cli and oauth tests for users with email
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* index by test email
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
* fix last test
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
---------
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
2024-12-19 13:10:10 +01:00
Kristoffer Dalby
64fd1f9483
restructure command/api to use stable IDs ( #2261 )
2024-12-10 16:23:55 +01:00
Kristoffer Dalby
028d9aab73
add new user fields to grpc and list command ( #2202 )
...
Build / build (push) Has been cancelled
Build documentation / build (push) Has been cancelled
Tests / test (push) Has been cancelled
Build documentation / deploy (push) Has been cancelled
update-flake-lock / lockfile (push) Has been cancelled
GitHub Actions Version Updater / build (push) Has been cancelled
Updates #2166
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
2024-10-18 14:20:03 +00:00
hopleus
b3cda08af6
#2178 Fixed processing of fields in post request in MoveNode rpc ( #2179 )
...
Build / build (push) Has been cancelled
Build documentation / build (push) Has been cancelled
Tests / test (push) Has been cancelled
Build documentation / deploy (push) Has been cancelled
* #2178 Fixed processing of fields in post request in MoveNode rpc
* #2178 Updated CHANGELOG.md
2024-10-09 09:36:47 +02:00
Kristoffer Dalby
f039caf134
update godeps ( #2098 )
2024-09-04 07:55:16 +02:00
Pallab Pain
58bd38a609
feat: implements apis for managing headscale policy ( #1792 )
2024-07-18 07:38:25 +02:00
Kristoffer Dalby
2ce23df45a
Migrate IP fields in database to dedicated columns ( #1869 )
2024-04-17 07:03:06 +02:00
Kristoffer Dalby
3f162c212c
drop unused last_successful_update field from node table ( #1754 )
2024-02-18 23:22:07 +01:00
Pallab Pain
47405931c6
✨ feat(apikey): adds command to delete api keys ( #1702 )
...
We currently do not have a way to clean up api keys. There may be cases
where users of headscale may generate a lot of api keys and these may
end up accumulating in the database. This commit adds the command to
delete an api key given a prefix.
2024-02-12 11:31:21 +01:00
Juan Font
0030af3fa4
Rename Machine to Node ( #1553 )
2023-09-24 06:42:05 -05:00
Juan Font
ea82035222
Allow to delete routes ( #1244 )
2023-03-06 09:05:40 +01:00
Kristoffer Dalby
428d7c86ce
Rename namespace in protobuf files
...
While this truly breaks the point of the backwards compatible stuff with
protobuf, it does not seem worth it to attempt to glue together a
compatible API.
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com >
2023-01-18 15:40:04 +01:00
Juan Font
4b8d6e7c64
Include online field in proto for machine
2022-12-15 00:13:53 -08:00
Juan Font
1b557ac1ea
Update protobuf definitions + support methods for the API
...
Add more logging
Updated protos with new routes API
2022-12-06 08:17:14 +01:00
Juan Font
470c49394c
Merge branch 'main' into preauthkey-tags
2022-09-07 00:22:36 +02:00
Stefan VanBuren
0099dd1724
Run buf mod update
2022-09-06 14:52:09 -04:00
Benjamin George Roberts
e27a4db281
add acl_tags to PreAuthKey proto
2022-08-25 22:15:43 +10:00
Kristoffer Dalby
e631c6f7e0
Merge master
2022-05-16 21:41:46 +02:00
Adrien Raffin-Caboisse
a2fb5b2b9d
Merge remote-tracking branch 'origin/main' into feat-list-tags-of-machines
2022-05-03 20:35:28 +02:00
Igor Perepilitsyn
47c72a4e2e
add rpc method for moving node
2022-05-01 17:55:34 +04:00
Adrien Raffin-Caboisse
2c448d4a5c
chore: apply linting
2022-04-25 22:27:44 +02:00
Adrien Raffin-Caboisse
31debf7055
feat: rewrite proto to only update tags of machine
2022-04-25 22:17:23 +02:00
Kristoffer Dalby
caf79f6910
Change nickname to givenname in proto
2022-04-24 20:55:11 +01:00
Adrien Raffin-Caboisse
587bdc75de
feat: add valid and invalid fields
...
Also change ID in proto for ForcedTags since the previous ID's should be reserved for commented fields
2022-04-16 11:30:51 +02:00
Adrien Raffin-Caboisse
98f54c9f7f
chore: apply format and lint
2022-04-15 18:27:57 +02:00
Adrien Raffin-Caboisse
02f68ebac8
feat: add forcedTags field and update proto
2022-04-15 16:00:08 +02:00
bravechamp
663e8384a3
Nickname support
2022-03-13 21:03:20 +00:00
Kristoffer Dalby
5e1b12948e
Remove registered field from proto
2022-02-28 22:21:06 +00:00
Kristoffer Dalby
9d1752acbc
Remove protobuf share/unshare
2022-02-21 22:48:14 +00:00
Kristoffer Dalby
b8e9024845
Add proto model for api key
2022-01-25 22:11:15 +00:00
Csaba Sarkadi
8b40343277
Add multiple IP prefixes support to ProtoBuf schema
2022-01-16 14:17:27 +01:00
Kristoffer Dalby
f1c05f8010
Add ExpireMachine spec to rpc
2021-11-21 13:40:04 +00:00
Kristoffer Dalby
dae34ca8c5
Proto format
2021-11-13 08:36:56 +00:00
Kristoffer Dalby
43af11c46a
Fix typo in generated code
2021-11-08 20:47:40 +00:00
Kristoffer Dalby
a6aa6a4f7b
Add proto rpc interface for cli
...
This commit adds proto rpc definitions for the communication needed for
the CLI interface.
This will allow us to move the rest of the CLI interface over to gRPC
and in the future allow remote access
2021-11-04 22:02:10 +00:00
Kristoffer Dalby
2b340e8fa4
Rename protofile
2021-10-30 14:29:41 +00:00
Kristoffer Dalby
6aacada852
Switch from gRPC localhost to socket
...
This commit changes the way CLI and grpc-gateway communicates with the
gRPC backend to socket, instead of localhost. Unauthenticated access now
goes on the socket, while the network interface will require API key (in
the future).
2021-10-30 14:08:16 +00:00
Kristoffer Dalby
07bbeafa3b
Fix lint errors, add initial namespace rpc
2021-10-29 16:43:10 +00:00
Kristoffer Dalby
b096a2e7e5
Create an initial gRPC service
...
This commit adds protobuf files and tooling surrounding generating APIs
and datatypes.
2021-10-26 20:37:37 +00:00