Commit Graph

395 Commits

Author SHA1 Message Date
Aarnav Tale
d34c6e8d11
fix: shamefully-hoist dependencies 2025-03-18 00:25:26 -04:00
Aarnav Tale
749f809119
feat: switch to a central singleton handler
This also adds support for Headscale TLS installations
2025-03-18 00:25:26 -04:00
Aarnav Tale
47cf9b726f
fix: slice off trailing slash if present on headscale url 2025-03-18 00:25:26 -04:00
Aarnav Tale
96ee1a5fc6
fix: navigate back to machines page on node deletion 2025-03-18 00:25:25 -04:00
Aarnav Tale
82da46e218
fix: loosen headscale config validation 2025-03-18 00:25:25 -04:00
Aarnav Tale
4c671f197d
chore: begin bundling all deps into the server 2025-03-18 00:25:25 -04:00
Igor Ramazanov
95316ced46 feat: nix: CI without depending on flakehub.com 2025-03-13 01:21:04 +01:00
Igor Ramazanov
e958813ccb feat: nix: setup Nix CI 2025-03-12 15:43:15 +00:00
Igor Ramazanov
4e886c1a5b docs: improve Nix documentation
* Reflect recent changes.
* Link `Nix` in README
2025-03-12 13:32:02 +00:00
Igor Ramazanov
654d09b44d feat: nix: do not hardcode headplane-agent configuration environment variables
To make the module more flexible and to reduce the dependency on the
config API.
2025-03-12 13:31:11 +00:00
Igor Ramazanov
7ad851d49e fix: nix: remove unnecessary sed substitutions
A left over from previous versions.
See: https://github.com/tale/headplane/issues/95#issue-2807487849
2025-03-12 12:47:17 +00:00
Igor Ramazanov
2f13cfa7ed fix: delete unnecessary version file 2025-03-12 11:44:17 +00:00
Igor Ramazanov
8e5c0c764e feat: nix: add services.headplane.agent.debug option 2025-03-12 11:43:09 +00:00
Igor Ramazanov
d355128a6e fix: nix: fix agent env vars configuration 2025-03-12 11:31:50 +00:00
Igor Ramazanov
cde4b2e9f2 feat: nix: read version from package.json 2025-03-12 11:23:33 +00:00
Igor Ramazanov
484fba4f6c Merge branch 'main' into nix 2025-03-12 11:20:13 +00:00
Aarnav Tale
79d83537d5
chore: track semver in package.json 2025-03-11 22:44:23 -04:00
Aarnav Tale
251c16ca48
fix: handle ws upgrade smoothly 2025-03-11 22:39:49 -04:00
Aarnav Tale
134b38ceda
chore: update agent var scheme 2025-03-11 22:39:05 -04:00
Aarnav Tale
b8fb1fa40f
chore: switch to x-headplane-tailnet-id 2025-03-11 22:35:52 -04:00
Aarnav Tale
951a96fad6
fix: set id ref to none to fetch agent data on first change 2025-03-11 22:35:02 -04:00
Aarnav Tale
5b9dc7cfc6
feat: ingest data from new agent system 2025-03-11 22:34:30 -04:00
Aarnav Tale
e36352b7f3
fix: define globals for context 2025-03-11 21:59:26 -04:00
Aarnav Tale
296e4d489c
fix: set a default for global dns nameservers 2025-03-11 21:57:40 -04:00
Igor Ramazanov
ff39e66c1d docs: add Nix/NixOS docs 2025-03-11 22:49:22 +00:00
Igor Ramazanov
49c7be3e05 fix: NixOS module: fix /etc/headplane/config.yaml generation 2025-03-11 22:49:22 +00:00
Igor Ramazanov
12592936f1 fix: NixOS module: allow passing bool in services.headplane.settings.* 2025-03-11 22:49:22 +00:00
Igor Ramazanov
a9b0ca3464 fix: NixOS module: generate /etc/headplane/config.yaml from services.headplane.settings 2025-03-11 22:49:22 +00:00
Igor Ramazanov
c526459cef fix: use relative path imports in nix 2025-03-11 22:49:22 +00:00
Igor Ramazanov
9043c8fe69 fix: version error message 2025-03-11 22:49:22 +00:00
Igor Ramazanov
22e6460b0c feat: include hp_agent to the NixOS module 2025-03-11 22:49:22 +00:00
Igor Ramazanov
8268de92c4 feat: do not rely on git for versioning
It causes lots of pain when building with `nix` for a local `flake.nix`.

Not sure if it's a good general solution:
* now it requires a manual step of updating `./version` on each release.
* we're losing commit hash abbreviation, like `0.5.3-5-gbe5a291`

I guess, this can be fixed by installing git-pre-commit-hook, but even
then it'd be wrong, because the output of `git describe --tags --always`
won't be the same before and after commit.
2025-03-11 22:49:18 +00:00
Igor Ramazanov
af733eb311 feat: nix: start headplane after headscale 2025-03-11 22:44:46 +00:00
Igor Ramazanov
60d399940f feat: add hp_agent as a flake output 2025-03-11 22:44:46 +00:00
Igor Ramazanov
c6a7a0faa1 feat: build hp_agent with nix 2025-03-11 22:44:46 +00:00
Igor Ramazanov
8c79c4ff04 feat: wip nix
Add initial code to be used when working with `nix` and `NixOS`.

* a Nix flake
* building a package
* a NixOS module
2025-03-11 22:44:46 +00:00
Aarnav Tale
c3ddac42a0
fix: memoize agent query params to prevent infinite refetching 2025-03-11 18:16:47 -04:00
Aarnav Tale
01f432cedc
feat: support oidc client_secret_path with env interpolation 2025-03-11 18:15:56 -04:00
Aarnav Tale
9c8a2c0120
feat: support oidc picture if available 2025-03-11 15:35:11 -04:00
Aarnav Tale
5f6460f42f
fix: use the userinfo endpoint for oidc 2025-03-11 15:29:45 -04:00
Aarnav Tale
d9314887fb
feat: keep track of agent ids 2025-03-11 15:29:45 -04:00
Aarnav Tale
5dd4c41291
feat: use a new ws implementation thats encapsulated 2025-03-11 15:29:45 -04:00
bitbronze
45537620a6
fix: stop checking for mkey prefix on registration (#131)
String "mkey:" was being appended to the node registration http request causing it to fail. Removed mkey presence check and changed default hint. Form validation is based on length instead.
2025-03-11 15:24:31 -04:00
Gage Orsburn
21af5c4a4d
fix: handle missing split dns config (#129)
Closes #127
2025-03-11 15:12:49 -04:00
Steve Wills
983356611e
docs: fix mistake in env docs (#119) 2025-03-03 14:32:05 -05:00
Aarnav Tale
41ca4c40ad
chore: v0.5.3 2025-03-01 10:37:18 -05:00
Aarnav Tale
f7c9a14e92
chore: temporarily halt full form validation 2025-03-01 10:36:58 -05:00
Aarnav Tale
6e514a9064
fix: handle oidc scope types correctly 2025-03-01 10:36:58 -05:00
Aarnav Tale
631ea15895
docs: warn on breaking change 2025-03-01 10:36:58 -05:00
nerdlich
762bc6a793
fix: cosmetic docs/config fixes (#112)
* fix config path

* fix typo
2025-03-01 10:30:15 -05:00