summaryrefslogtreecommitdiff
path: root/controller
AgeCommit message (Collapse)Author
2023-10-31check hooks are enabled before firingGrant Limberg
2023-10-30remove some debug loggingGrant Limberg
2023-09-06Merge branch 'dev' into temporalGrant Limberg
2023-09-06fix /controller endpointGrant Limberg
2023-08-30simplify hook firingGrant Limberg
only need network and member IDs
2023-08-29fully wire up temporal. add startup script test to ensure temporal is runningGrant Limberg
2023-08-29get connected to temporalGrant Limberg
2023-08-28Merge branch 'dev' into temporalGrant Limberg
2023-08-28fix for issue #2114Grant Limberg
2023-08-25Fix primary port binding issue in 1.12 (#2107)Joseph Henry
* Add test for primary port bindings to validator - See #2105 * Add delay to binding test * Remove TCP binding logic from Binder to fix #2105 * add second control plane socket for ipv6 * fix controller network post endpoint * exit if we can't bind at least one of IPV4 or IPV6 for control plane port --------- Co-authored-by: Grant Limberg <[email protected]>
2023-08-15pass hook_id instead of urlGrant Limberg
2023-08-08limit to hooks with hook_type = NETWORK_JOIN enabledGrant Limberg
2023-08-07look up hook URLs dynamicallyGrant Limberg
2023-08-04should only run this if smee is configuredGrant Limberg
2023-08-04this should theoretically send the new member notificationGrant Limberg
2023-08-04instantiate smee clientGrant Limberg
2023-06-08don't unborrow bad connectionsGrant Limberg
pool will clean them up later
2023-05-31Fix oidc client lookup queryGrant Limberg
join condition referenced the wrong table. Worked fine unless there were multiple identical client IDs
2023-05-25fix init order for EmbeddedNetworkController (#2014)Grant Limberg
2023-05-23central controller metrics & request path updates (#2012)Grant Limberg
* internal db metrics * use shared mutexes for read/write locks * remove this lock. only used for a metric * more metrics * remove exploratory metrics place controller request benchmarks behind ifdef
2023-05-19fix typos (#2010)Brenton Bostick
2023-05-17Capture setContent by-value instead of by-reference (#2006)Brenton Bostick
Co-authored-by: Grant Limberg <[email protected]>
2023-05-16Controller Metrics & Network Config Request Fix (#2003)Grant Limberg
* add new metrics for network config request queue size and sso expirations * move sso expiration to its own thread in the controller * fix potential undefined behavior when modifying a set
2023-05-05Update readme files for metrics (#2000)Grant Limberg
2023-04-28use cpp-httplib for HTTP control plane (#1979)Grant Limberg
refactored the old control plane code to use [cpp-httplib](https://github.com/yhirose/cpp-httplib) instead of a hand rolled HTTP server. Makes the control plane code much more legible. Also no longer randomly stops responding.
2023-04-25Central startup update (#1973)Grant Limberg
* allow specifying authtoken in central startup * set allowManagedFrom * move redis_mem_notification to the correct place * add node checkins metric * wire up min/max connection pool size metrics
2023-04-21Add prometheus metrics for Central controllers (#1969)Grant Limberg
* add header-only prometheus lib to ext * rename folder * Undo rename directory * prometheus simpleapi included on mac & linux * wip * wire up some controller stats * Get windows building with prometheus * bsd build flags for prometheus * Fix multiple network join from environment entrypoint.sh.release (#1961) * _bond_m guards _bond, not _paths_m (#1965) * Fix: warning: mutex '_aqm_m' is not held on every path through here [-Wthread-safety-analysis] (#1964) * Serve prom metrics from /metrics endpoint * Add prom metrics for Central controller specific things * reorganize metric initialization * testing out a labled gauge on Networks * increment error counter on throw * Consolidate metrics definitions Put all metric definitions into node/Metrics.hpp. Accessed as needed from there. * Revert "testing out a labled gauge on Networks" This reverts commit 499ed6d95e11452019cdf48e32ed4cd878c2705b. * still blows up but adding to the record for completeness right now * Fix runtime issues with metrics * Add metrics files to visual studio project * Missed an "extern" * add copyright headers to new files * Add metrics for sent/received bytes (total) * put /metrics endpoint behind auth * sendto returns int on Win32 --------- Co-authored-by: Leonardo Amaral <[email protected]> Co-authored-by: Brenton Bostick <[email protected]>
2023-03-24move begin/commit into try/catch block (#1932)Grant Limberg
Thread was exiting in some cases
2023-02-22more info on exceptionGrant Limberg
2023-01-19Client & Central Controller updates to support additonal OIDC features (#1848)Grant Limberg
Client side: * Fix compatibility with OneLogin * Requested scopes vary by OIDC provider. Different providers have different Controller side: *Update Postgres queries to latest Central schema * Added Central Controller support for the different providers * Base OIDC provider details are still attached to an org. Client ID & group/email lists are now associated with individual networks.
2022-12-07fix actual typo in config key codeBrenton Bostick
2022-12-07fix typos in docs, comments, and stringsBrenton Bostick
2022-09-28Revert "modify sso queries for schema change"Grant Limberg
This reverts commit 8b67d062721ce65e8bbc4643da4cf351d0759229.
2022-09-28Optimize member load query for Central controllersGrant Limberg
2022-09-28Revert "query update for sso"Grant Limberg
This reverts commit 3c343eb7752e81d933a73e526cac534469ac1a38.
2022-09-28Revert "bump min db version"Grant Limberg
This reverts commit 802072ec17262b9fe62aac2e00bacbf86f26a15c.
2022-09-27bump min db versionGrant Limberg
2022-09-27query update for ssoGrant Limberg
2022-09-21modify sso queries for schema changeGrant Limberg
2022-06-30don't crash out of the controller heartbeat loop hereGrant Limberg
2022-06-30use connection pool instead of new connection for member status writesGrant Limberg
redis plus plus has an annoying feature where it will open a new connection for each tx or pipeline by default, rather than just fetching an existing connection from the pool. Let's change that
2022-06-29redis connection pool tuningGrant Limberg
2022-06-28exit here on errorGrant Limberg
2022-06-24Play with online notification timing againGrant Limberg
2022-06-22just sleep 1 secondGrant Limberg
2022-06-22don't spam the logs quite as much on first startupGrant Limberg
sleep the thread 1 second every round until we're actually updating members
2022-06-22redis connection tuningGrant Limberg
2022-06-22redis thread now uses this_thread::yield()Grant Limberg
2022-06-22fix log lineGrant Limberg
2022-06-22adjust sleep between onlineNotification runs. Added timer to outputGrant Limberg