summaryrefslogtreecommitdiff
path: root/controller/DB.hpp
AgeCommit message (Collapse)Author
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-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-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-05-13Add injaGrant Limberg
Requries update to C++17 standard
2022-04-18Simplify SSO logic. SSO should just normally expire when it expires. No full ↵Adam Ierymenko
deauth needed. Deauth is for really giving someone the boot.
2021-11-11rename stuff for clarityGrant Limberg
authenticationURL will still be used by the client for v1 and v2 of sso
2021-11-04plumbing full flow from controller -> client networkGrant Limberg
2021-08-18Adjust deauth time window and send revocation when SSO members expire.Adam Ierymenko
2021-07-30Tweak auth timeout notify.Adam Ierymenko
2021-07-23Notification of about-to-expire status... almost there.Adam Ierymenko
2021-07-23Handling of soon-to-expire membersAdam Ierymenko
2021-06-04add "ssoRedirectURL" to local.confGrant Limberg
plumbed it through to the central controller code
2021-06-03Big SSO updateGrant Limberg
make things hopefully work
2021-06-02make DB::_memberChanged and _networkChanged virtualGrant Limberg
2021-05-28Postgres code for SSO (almost certainly needs work)Adam Ierymenko
2020-08-20BSL date bumpAdam Ierymenko
2019-08-23Relicense: GPLv3 -> ZeroTier BSL 1.1Adam Ierymenko
2019-08-08Add periodic sync check when syncing LF<>another DBAdam Ierymenko
2019-08-08Fix race in multiple DB mirroring configurations.Adam Ierymenko
2019-08-06Remove debug lineAdam Ierymenko
2019-08-06More work on DB mirroring.Adam Ierymenko
2019-08-06Cruftectomy, work in progress on mirrorringAdam Ierymenko
2019-08-06Refactoring in prep for mirroringAdam Ierymenko
2019-08-04Add optional function in DB change listener for member online events.Adam Ierymenko
2019-07-26Abstract out change listener from controller itself to permit DBs to shadow ↵Adam Ierymenko
changes from other DBs.
2019-07-15Track online status in FileDBAdam Ierymenko
2019-01-14Updated licenses for 2019Joseph Henry
2018-12-06update # of threads for PostgresGrant Limberg
2018-07-11Return error 503 if RethinkDB is down when built as RethinkDB-based controller.Adam Ierymenko
2018-03-08docsAdam Ierymenko
2018-03-08Fix for FileDB _networkChanged / _memberChanged problem.Adam Ierymenko
2018-01-09Move DB stuff into Db.Adam Ierymenko
2017-12-07docs, and make RethinkDB controller DB driver upsert into the Controller DB ↵Adam Ierymenko
and also update the hostname field.
2017-11-08Move more ephemeral stuff to a tiny MemberLastRequest table instead of the ↵Adam Ierymenko
main Member table.
2017-11-08More Central work.Adam Ierymenko
2017-11-08Fix a deadlock and some more work on RethinkDB (for central) integration.Adam Ierymenko
2017-11-07Re-integrate in-filesystem DB into new controller DB structure.Adam Ierymenko