coder/coderd
Spike Curtis 04991f425a
fix: set node callback each time we reinit the coordinator in servertailnet (#12140)
I think this will resolve #12136 but lets get a proper test at the system level before closing.

Before this change, we only register the node callback at start of day for the server tailnet.  If the coordinator changes, like we know happens when we are licensed for the PGCoordinator, we close the connection to the old coord, and open a new one to the new coord.

The callback is designed to direct the updates to the new coordinator, but there is nothing that specifically triggers it to fire after we connect to the new coordinator.

If we have STUN, then period re-STUNs will generally get it to fire eventually, but without STUN it we could go indefinitely without a callback.

This PR changes the servertailnet to re-register the callback each time we reconnect to the coordinator.  Registering a callback (even if it's the same callback) triggers an immediate call with our node information, so the new coordinator will have it.
2024-02-14 20:45:31 +04:00
..
agentapi feat: add activity status and autostop reason to workspace overview (#11987) 2024-02-13 10:50:17 -07:00
apidoc feat: expose DERP server debug metrics (#12135) 2024-02-14 15:11:45 +04:00
apikey chore: pass lifetime directly into api key generate (#11715) 2024-01-22 11:42:55 -09:00
appearance chore: refactor Appearance to an interface callable by AGPL code (#11769) 2024-01-29 12:17:31 +04:00
audit chore(Makefile): use linter version from dogfood Dockerfile (#11147) 2023-12-12 10:02:32 +00:00
autobuild fix: use correct logger for lifecycle_executor (#11763) 2024-01-23 14:33:55 -06:00
awsidentity fix: add new aws regions to instance identity (#10434) 2023-10-30 19:44:29 +00:00
azureidentity fix: test for expiry 3 months on Azure certs (#11362) 2024-01-02 09:30:36 +04:00
batchstats feat: add AgentAPI using DRPC (#10811) 2023-12-18 22:53:28 +10:00
coderdtest feat: use Agent v2 API for Service Banner (#11806) 2024-01-30 07:44:47 +04:00
database fix: do not query user_link for deleted accounts (#12112) 2024-02-13 13:02:21 -06:00
devtunnel chore: fix flake in tunnel (#9746) 2023-09-19 18:54:56 +00:00
externalauth fix: always attempt external auth refresh when fetching (#11762) (#11830) 2024-01-29 08:55:15 -06:00
gitsshkey chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
healthcheck fix(coderd): correctly show warning when no provisioner daemons are registered (#11591) 2024-01-12 11:22:59 +00:00
httpapi chore: move app URL parsing to its own package (#11651) 2024-01-17 10:41:42 -06:00
httpmw feat: add port-sharing backend (#11939) 2024-02-13 09:31:20 -05:00
metricscache feat: add port-sharing backend (#11939) 2024-02-13 09:31:20 -05:00
oauthpki chore: instrument external oauth2 requests (#11519) 2024-01-10 09:13:30 -06:00
parameter feat: add custom error message on signups disabled page (#11959) 2024-02-01 18:01:25 +01:00
portsharing feat: add port-sharing backend (#11939) 2024-02-13 09:31:20 -05:00
prometheusmetrics feat: use map instead of slice in metrics aggregator (#11815) 2024-01-29 09:12:41 +01:00
promoauth fix: always return a clean http client for promoauth (#11963) 2024-02-01 11:13:34 -05:00
provisionerdserver feat: support `order` property of `coder_app` resource (#12077) 2024-02-12 15:11:31 +01:00
rbac feat: add user-level parameter autofill (#11731) 2024-01-30 16:02:21 -06:00
schedule feat: add template activity_bump property (#11734) 2024-02-13 07:00:35 +00:00
searchquery feat: add "updated" search param to workspaces (#11714) 2024-01-23 11:52:06 -06:00
telemetry chore: collect more template telemetry to gauge feature usage 2024-01-22 18:55:27 +10:00
testdata/insights feat!: add `sections` parameter to template insights (#10010) 2023-10-03 15:44:50 +02:00
tracing feat: allow external services to be authable (#9996) 2023-10-03 14:04:39 +00:00
unhanger chore: compute job status as column (#10024) 2023-10-04 20:57:46 -05:00
updatecheck chore: rename dbfake to dbmem (#10432) 2023-10-30 17:42:20 +00:00
userpassword chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
util feat: use tailnet v2 API for coordination (#11638) 2024-01-22 11:07:50 +04:00
workspaceapps feat: add port-sharing backend (#11939) 2024-02-13 09:31:20 -05:00
wsbuilder chore: mockgen archived, moved to new location (#11415) 2024-01-04 18:35:56 -06:00
activitybump_test.go feat!: bump workspace activity by 1 hour (#10704) 2023-11-15 09:42:27 -06:00
apikey.go chore: pass lifetime directly into api key generate (#11715) 2024-01-22 11:42:55 -09:00
apikey_test.go refactor(coderd/database): split `Time` and `Now` into `dbtime` package (#9482) 2023-09-01 16:50:12 +00:00
apiroot.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
audit.go docs: fix /audit & /insights params (#12043) 2024-02-07 08:38:54 -05:00
audit_test.go chore: rename `AwaitTemplateVersionJobCompleted` and `AwaitWorkspaceBuildJobCompleted` (#10003) 2023-10-03 11:02:56 -06:00
authorize.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
authorize_test.go chore: rename `AwaitTemplateVersionJobCompleted` and `AwaitWorkspaceBuildJobCompleted` (#10003) 2023-10-03 11:02:56 -06:00
client_test.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
coderd.go feat: expose DERP server debug metrics (#12135) 2024-02-14 15:11:45 +04:00
coderd_test.go feat: add setAllPeersLost to the configMaps subcomponent (#11665) 2024-01-22 12:12:15 +04:00
csp.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
debug.go feat: expose DERP server debug metrics (#12135) 2024-02-14 15:11:45 +04:00
debug_test.go fix(coderd/debug): fix caching issue with dismissed sections (#11051) 2023-12-06 08:38:03 +00:00
deployment.go feat: add customizable upgrade message on client/server version mismatch (#11587) 2024-01-30 17:11:37 -06:00
deployment_test.go feat(coderd): connect dbcrypt package implementation (#9523) 2023-09-07 15:49:49 +01:00
deprecated.go feat(coderd): add support for sending batched agent metadata (#10223) 2023-10-13 16:37:55 +03:00
experiments.go feat: add all safe experiments to the deployment page (#10276) 2023-10-17 14:49:19 -04:00
experiments_test.go feat: add all safe experiments to the deployment page (#10276) 2023-10-17 14:49:19 -04:00
externalauth.go fix: always attempt external auth refresh when fetching (#11762) (#11830) 2024-01-29 08:55:15 -06:00
externalauth_test.go chore: implement device auth flow for fake idp (#11707) 2024-01-22 20:46:05 +00:00
files.go chore(coderd): add logging to agent rpc yamux conn (#11965) 2024-01-31 23:17:20 -06:00
files_test.go feat: support template bundles as zip archives (#11839) 2024-01-31 14:49:55 +01:00
fileszip.go feat: support template bundles as zip archives (#11839) 2024-01-31 14:49:55 +01:00
gitsshkey.go refactor(coderd/database): split `Time` and `Now` into `dbtime` package (#9482) 2023-09-01 16:50:12 +00:00
gitsshkey_test.go chore: rename `AwaitTemplateVersionJobCompleted` and `AwaitWorkspaceBuildJobCompleted` (#10003) 2023-10-03 11:02:56 -06:00
insights.go docs: fix /audit & /insights params (#12043) 2024-02-07 08:38:54 -05:00
insights_internal_test.go fix: pass in time parameter to prevent flakes (#11023) 2023-12-04 12:20:22 -05:00
insights_test.go fix: strip timezone information from a date in dau response (#11962) 2024-01-31 16:01:50 -06:00
latencycheck.go chore: add prometheus timing to latency endpoint (#7742) 2023-06-06 10:26:13 -05:00
members.go fix: stop leaking User into API handlers unless authorized 2023-10-11 09:41:14 +04:00
organizations.go chore: enable exhaustruct linter for database param structs (#9995) 2023-10-03 09:23:45 +01:00
organizations_test.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
pagination.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
pagination_internal_test.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
provisionerjobs.go feat: add AgentAPI using DRPC (#10811) 2023-12-18 22:53:28 +10:00
provisionerjobs_internal_test.go chore: mockgen archived, moved to new location (#11415) 2024-01-04 18:35:56 -06:00
provisionerjobs_test.go chore: rename `AwaitTemplateVersionJobCompleted` and `AwaitWorkspaceBuildJobCompleted` (#10003) 2023-10-03 11:02:56 -06:00
roles.go chore: add display name to member role (#10239) 2023-10-12 10:52:32 -05:00
roles_test.go chore(cli): add linter to detect potential spurious usage of owner user in cli tests (#10133) 2023-10-10 11:14:20 +01:00
tailnet.go fix: set node callback each time we reinit the coordinator in servertailnet (#12140) 2024-02-14 20:45:31 +04:00
tailnet_internal_test.go fix: set node callback each time we reinit the coordinator in servertailnet (#12140) 2024-02-14 20:45:31 +04:00
tailnet_test.go feat: change agent to use v2 API for reporting stats (#12024) 2024-02-07 15:26:41 +04:00
templates.go feat: add port-sharing backend (#11939) 2024-02-13 09:31:20 -05:00
templates_test.go feat: add port-sharing backend (#11939) 2024-02-13 09:31:20 -05:00
templateversions.go chore: make `"users"."avatar_url"` `NOT NULL` (#11112) 2023-12-11 10:09:51 -07:00
templateversions_test.go chore: instrument external oauth2 requests (#11519) 2024-01-10 09:13:30 -06:00
updatecheck.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
updatecheck_test.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
userauth.go feat: add custom error message on signups disabled page (#11959) 2024-02-01 18:01:25 +01:00
userauth_internal_test.go feat: allow IDP to return single string for roles/groups claim (#10993) 2023-12-04 10:01:45 -06:00
userauth_test.go fix: do not query user_link for deleted accounts (#12112) 2024-02-13 13:02:21 -06:00
users.go feat: add user-level parameter autofill (#11731) 2024-01-30 16:02:21 -06:00
users_test.go feat: add user-level parameter autofill (#11731) 2024-01-30 16:02:21 -06:00
workspaceagentportshare.go feat: add port-sharing backend (#11939) 2024-02-13 09:31:20 -05:00
workspaceagentportshare_test.go feat: add port-sharing backend (#11939) 2024-02-13 09:31:20 -05:00
workspaceagents.go chore: consolidate websocketNetConn implementations (#12065) 2024-02-09 11:39:08 +04:00
workspaceagents_test.go feat: support custom order of agent metadata (#12066) 2024-02-08 17:29:34 +01:00
workspaceagentsrpc.go chore: consolidate websocketNetConn implementations (#12065) 2024-02-09 11:39:08 +04:00
workspaceagentsrpc_internal_test.go feat: move agent v2 API connection monitoring to yamux layer (#11910) 2024-02-01 08:18:35 +04:00
workspaceagentsrpc_test.go fix: allow startup scripts larger than 32k (#12060) 2024-02-07 22:26:42 +04:00
workspaceapps.go chore: pass lifetime directly into api key generate (#11715) 2024-01-22 11:42:55 -09:00
workspaceapps_test.go feat: add port-sharing backend (#11939) 2024-02-13 09:31:20 -05:00
workspacebuilds.go feat(site): display user avatar (#11893) 2024-01-30 17:07:06 +00:00
workspacebuilds_test.go feat(site): display user avatar (#11893) 2024-01-30 17:07:06 +00:00
workspaceproxies.go fix: allow ports in wildcard url configuration (#11657) 2024-01-18 09:44:05 -06:00
workspaceproxies_test.go fix: allow ports in wildcard url configuration (#11657) 2024-01-18 09:44:05 -06:00
workspaceresourceauth.go chore: add /v2 to import module path (#9072) 2023-08-18 18:55:43 +00:00
workspaceresourceauth_test.go chore: rename `AwaitTemplateVersionJobCompleted` and `AwaitWorkspaceBuildJobCompleted` (#10003) 2023-10-03 11:02:56 -06:00
workspaces.go feat: add activity status and autostop reason to workspace overview (#11987) 2024-02-13 10:50:17 -07:00
workspaces_test.go feat: support `order` property of `coder_app` resource (#12077) 2024-02-12 15:11:31 +01:00