-
Notifications
You must be signed in to change notification settings - Fork 650
NM-341-v6 #4107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+152
−104
Merged
NM-341-v6 #4107
Changes from all commits
Commits
Show all changes
476 commits
Select commit
Hold shift + click to select a range
5468eae
wip(go): wire ctx in extclient apis;
VishalDalwadi a5778bd
wip(go): wire ctx in extclient apis;
VishalDalwadi ce0ffd1
wip(go): remove org id check from global scoped get tenant api;
VishalDalwadi 7c8bda4
wip(go): add scope slug to discover response;
VishalDalwadi c1323fe
wip(go): wire ctx in get users;
VishalDalwadi 7362717
wip(go): set tenant id in posture check violations;
VishalDalwadi d8e3740
wip(go): upsert membership instead of user;
VishalDalwadi 7533081
wip(go): pass correct len;
VishalDalwadi b1800a5
wip(go): optimize (single loop);
VishalDalwadi 4df1935
wip(go): unify todos;
VishalDalwadi 5f3845b
wip(go): add todo;
VishalDalwadi f0e3afd
wip(go): wire context for network get;
VishalDalwadi 822feff
wip(go): wire context;
VishalDalwadi 57397bf
wip(go): wire context;
VishalDalwadi 79b3816
wip(go): wire ctx when getting tenant superadmin;
VishalDalwadi 19acfe9
wip(go): add network creator to network admin group;
VishalDalwadi b5d2ea8
wip(go): check for user membership on sync;
VishalDalwadi 36e8b0a
wip(go): add methods with strict membership check;
VishalDalwadi 075f045
wip(go): remove unwanted feature flags;
VishalDalwadi e294b6f
wip(go): report per-tenant usage during license validation;
VishalDalwadi d29bfa2
wip(go): move email setting from tenant to org;
VishalDalwadi 5924d20
wip(go): pass org scope to email init;
VishalDalwadi 20f0019
wip(go): remove old tenant email settings usages; use org settings to…
VishalDalwadi 8fb6c50
wip(go): use get email settings from org settings;
VishalDalwadi ac6ec69
wip(go): remove email settings migration;
VishalDalwadi 3abccf9
wip(go): migrate email settings from server to org settings;
VishalDalwadi b1e322d
wip(go): assign global network admin group membership only for super-…
VishalDalwadi 558b873
wip(go): assign global network admin group membership only for super-…
VishalDalwadi 27b85b1
wip(go): add membership alias to filter;
VishalDalwadi f7c5004
wip(go): skip clearing local license validation response cache;
VishalDalwadi 4d3c18c
wip(go): extend license validation response for multi-tenancy;
VishalDalwadi b2e293a
wip(go): add functions to get sole tenant and org;
VishalDalwadi ea62d78
wip(go): use tenant-specific feature flags;
VishalDalwadi b644ed2
wip(go): add tenant status type;
VishalDalwadi c9fe29b
wip(go): remove old hook comment;
VishalDalwadi 793ffec
wip(go): expect ctx during license validation;
VishalDalwadi 676ef17
wip(go): always create default org and tenant for ce;
VishalDalwadi ac40166
wip(go): add tenant-specific check for license validation error;
VishalDalwadi 9fa9ffe
wip(go): cache license validation response in memory;
VishalDalwadi 7e9a1bd
wip(go): add todo to handle multiple-tenant for integration pull;
VishalDalwadi 44994f6
wip(go): pass ctx during license validation;
VishalDalwadi 28b8dda
wip(go): add todo for making changes later; run hook separately for e…
VishalDalwadi 82cfd64
wip(go): return specific errors when license validation response not …
VishalDalwadi 07b7a6c
wip(go): use retryable.httpclient for calling license validation api;
VishalDalwadi 2533aa6
wip(go): process license validation;
VishalDalwadi 15e9ba7
wip(go): license validation function;
VishalDalwadi ce93de9
wip(go): migration on license validation;
VishalDalwadi 402f425
wip(go): org settings not expected;
VishalDalwadi 20bd32d
Merge branch 'NM-341-v4' of https://github.com/gravitl/netmaker into …
VishalDalwadi 473ab63
Merge pull request #4100 from gravitl/NM-341-v7
VishalDalwadi 9d237ee
wip(go): remove expiry from license validation response;
VishalDalwadi ed0b5b5
wip(go): add limits and limits enforcement to license validation resp…
VishalDalwadi ebe684f
wip(go): remove expiry usages;
VishalDalwadi 023bf55
wip(go): add arg to clear cache;
VishalDalwadi 5ba7afc
wip(go): add arg to clear cache;
VishalDalwadi 3e2e9df
wip(go): skip license validation if cached resp;
VishalDalwadi be3f9c4
wip(go): allow org_id and tenant_id query params;
VishalDalwadi 59ec777
wip(go): upsert tenant membership on sync;
VishalDalwadi 26ad4bc
wip(go): pass ctx to delete network roles;
VishalDalwadi 5baa752
wip(go): create tenant membership on org owner creation on ce;
VishalDalwadi 9244f8d
wip(go): add tenant orchestrator;
VishalDalwadi de0feb3
wip(go): use tenant orchestrator;
VishalDalwadi bafe710
wip(go): add default settings for tenant;
VishalDalwadi bf2f863
wip(go): make org owner superadmin on all tenants;
VishalDalwadi a294027
wip(go): simplify SyncOrgAndTenants;
VishalDalwadi 6a9f08f
wip(go): retry license validation only 3 times
VishalDalwadi ce12567
wip(go): store invalid err;
VishalDalwadi f55216a
wip(go): add function to check if limits are to be enforced on a tenant;
VishalDalwadi 64e0f72
Merge branch 'NM-341-v4' of https://github.com/gravitl/netmaker into …
VishalDalwadi 68dbe80
wip(go): pass tenant scope if possible when checking for license vali…
VishalDalwadi 40906de
wip(go): remove merge errors;
VishalDalwadi 8911d05
wip(go): add functions for limit checks;
VishalDalwadi e0e1d74
wip(go): wire host limit check;
VishalDalwadi 58ac0f1
wip(go): wire ingress limit check;
VishalDalwadi c7232f3
wip(go): wire egress limit check;
VishalDalwadi e9b2b98
wip(go): wire client limit check;
VishalDalwadi 2c5bf70
wip(go): wire network limit check;
VishalDalwadi 97e78d1
wip(go): wire user limit check;
VishalDalwadi 1d1d015
wip(go): use correct errors;
VishalDalwadi c7614bd
wip(go): skip telemetry for msps;
VishalDalwadi 75e10de
wip(go): disable telemetry on msp tenants;
VishalDalwadi 02ed915
wip(go): err check;
VishalDalwadi d0bb11a
wip(go): uncomment log event;
VishalDalwadi a7bf546
Merge branch 'NM-341-v4' of https://github.com/gravitl/netmaker into …
VishalDalwadi d5beee4
wip(go): get sso state to get scope for non-headless oauth login;
VishalDalwadi 7cbb243
wip(go): inline delete pending user;
VishalDalwadi 28b396a
wip(go): allow both org and tenant scope for pending users table;
VishalDalwadi 3f06df1
wip(go): add migration for pending user table during set tenant id an…
VishalDalwadi e6b5087
wip(go): update queries to use new scope fields in pending users table;
VishalDalwadi 534a4b7
wip(go): allow both org and tenant scope for user invites table;
VishalDalwadi 3012fcc
wip(go): update queries to use new scope fields;
VishalDalwadi aa13d5f
wip(go): add migration for rekey-ing org/tenant id and setting tenant…
VishalDalwadi 7fa9b68
wip(go): inline delete user invite;
VishalDalwadi 768a646
wip(go): set scope when creating invite;
VishalDalwadi 3ae8fd8
wip(go): get user count with membership is ctx is tenant scoped;
VishalDalwadi bf194db
wip(go): add methods to upsert and delete org memberships;
VishalDalwadi b4bf05a
wip(go): add global valid tenant and org roles map;
VishalDalwadi 5c1c245
wip(go): add scope query in user invite get by email;
VishalDalwadi 66f11f5
wip(go): add support for upsert and delete of org and tenant membersh…
VishalDalwadi d8d14b6
wip(go): infer scope for user invite apis;
VishalDalwadi 6f715dd
wip(go): wire ctx in get user invite by email;
VishalDalwadi 96f01c8
wip(go): allow no scope headers to be passed in infer scope apis;
VishalDalwadi 22a9a60
wip(go): add validation and checks for org-scoped invite api handlers;
VishalDalwadi 31293e9
wip(go): wire ctx to is pending user check;
VishalDalwadi 0a2c535
wip(go): infer scope for pending user apis;
VishalDalwadi 79dccc6
wip(go): set default role based on ctx scope;
VishalDalwadi 445c299
wip(go): move mfa to tenant membership table; move account status to …
VishalDalwadi 932eb79
wip(go): migrate account status and mfa settings;
VishalDalwadi 3dd5875
wip(go): update account status on sync;
VishalDalwadi 1be4975
wip(go): use update mfa to update mfa setting;
VishalDalwadi 89c9f16
wip(go): set new membership settings on user creation;
VishalDalwadi aeb3e78
wip(go): use membership where required;
VishalDalwadi df69e36
wip(go): wire ctx on key unlink refs;
VishalDalwadi 02a6fa7
wip(go): use r.Context directly without reinitializing db;
VishalDalwadi a927bd9
wip(go): wire ctx in acls;
VishalDalwadi 627573f
wip(go): add tenant scoped primary key constructor;
VishalDalwadi ff00039
wip(go): use tenant scoped primary key for acls, dns, extclients and …
VishalDalwadi 6af5402
wip(go): wire ctx for get groups in network;
VishalDalwadi 6a999ea
wip(go): wire ctx for get groups;
VishalDalwadi 4ce893d
wip(go): scope non-uuid group ids by tenant id;
VishalDalwadi 914e3ba
wip(go): migrate non-uuid group ids to scoped ids;
VishalDalwadi 84cfffd
wip(go): don't expect scope id in invite validation and signup apis;
VishalDalwadi 3ce20b2
wip(go): wire ctx for get matching user; allow org scope when queryin…
VishalDalwadi 1bcc2d2
wip(go): add mfa to org;
VishalDalwadi 60a0931
wip(go): scope preauth token;
VishalDalwadi 2913b20
wip(go): add fallback for older auth tokens;
VishalDalwadi 2fefd20
wip(go): wire ctx for preauth token creation;
VishalDalwadi 4d28aaa
wip(go): migrate mfa settings;
VishalDalwadi f2fe31f
wip(go): resolve mfa settings for inherited auth;
VishalDalwadi 84cceba
wip(go): update mfa for org;
VishalDalwadi 6bc0a8c
wip(go): infer scope for totp apis;
VishalDalwadi 8aa37dd
Merge branch 'NM-341-v6' of https://github.com/gravitl/netmaker into …
VishalDalwadi 0e21bb5
wip(go): use ctx when passed;
VishalDalwadi b99af29
wip(go): infer scope for list user apis;
VishalDalwadi 7a498d0
wip(go): ensure set primary keys don't cause errors during fetch;
VishalDalwadi d75e12f
wip(go): make primary key for integrations uuid and store provider in…
VishalDalwadi 1eb7578
wip(go): migrate integration ids;
VishalDalwadi 467266c
wip(go): use provider instead of id everywhere;
VishalDalwadi acb970b
wip(go): remove gorm column;
VishalDalwadi f9410af
Merge branch 'develop' of https://github.com/gravitl/netmaker into NM…
VishalDalwadi b7091ea
wip(go): wire ctx for igw egress creation;
VishalDalwadi 3e0aa71
wip(go): wire ctx for igw egress update;
VishalDalwadi a0cd801
wip(go): wire ctx for host registration;
VishalDalwadi f21e875
wip(go): wire ctx for host registration;
VishalDalwadi c2f6c51
wip(go): merge errors;
VishalDalwadi 51fe2a6
Merge branch 'NM-341-v4' of https://github.com/gravitl/netmaker into …
VishalDalwadi cb6b8fd
wip(go): merge errors;
VishalDalwadi def373e
wip(go): wire ctx; remove default scope usages;
VishalDalwadi 109e9f2
wip(go): use get with membership;
VishalDalwadi 25883e0
wip(go): org scope license validation;
VishalDalwadi 3b38f10
wip(go): remove debug log;
VishalDalwadi cd162ce
wip(go): remove scoping on list roles;
VishalDalwadi 4952e33
wip(go): ignore invite creation if already exists;
VishalDalwadi 1db706c
wip(go): add is msp func to check if deployment is msp deployment;
VishalDalwadi 2819a80
wip(go): ensure username is email for msp users;
VishalDalwadi 24c59b6
Merge branch 'NM-341-v6' of https://github.com/gravitl/netmaker into …
VishalDalwadi 68448cd
wip(go): add email validated check on user table;
VishalDalwadi 4723b75
wip(go): mark email validated when oauth user;
VishalDalwadi 369f72e
wip(go): handle gorm error;
VishalDalwadi 0c69960
wip(go): add tenant id to siem grpc schema;
VishalDalwadi 83f40c8
wip(go): read tenant from scoped ctx;
VishalDalwadi 132f4e3
wip(go): pass scoped ctx to siem grpc client;
VishalDalwadi 104fe6b
wip(go): remove unused publisher;
VishalDalwadi ed5a96a
wip(go): publish all tenant exporter updates on pull;
VishalDalwadi 09a473b
wip(go): fix wg usage;
VishalDalwadi e3b076e
wip(go): tenant scope the ctx when getting server info;
VishalDalwadi 212ea3d
wip(go): add tenant id to enrollment key token;
VishalDalwadi 28cbda3
wip(go): make host register tenant scope;
VishalDalwadi 0469974
wip(go): add default settings;
VishalDalwadi 5a44c68
wip(go): use correct checks for is msp tenant;
VishalDalwadi daaa410
wip(go): add email validation extension;
VishalDalwadi 2c2dcfc
wip(go): add pages for validation check;
VishalDalwadi 3ba1c37
wip(go): use extension for validating user;
VishalDalwadi b55c55a
wip(go): add invite type;
VishalDalwadi 3bec55b
wip(go): create only one validation invite per user email;
VishalDalwadi de7a5be
wip(go): add validate email handler;
VishalDalwadi ff5737c
wip(go): add email builder;
VishalDalwadi c6a5c87
wip(go): add user invite type migration logic;
VishalDalwadi 3d53e31
wip(go): only log email send failures;
VishalDalwadi 1316a77
wip(go): add tenant id to flows table;
VishalDalwadi 059160f
wip(go): add func to check if connected to clickhouse;
VishalDalwadi 15ae726
wip(go): migrate clickhouse;
VishalDalwadi 39130f3
wip(go): add tenant id to mdm and edr state;
VishalDalwadi 980948d
wip(go): add delete methods for tables;
VishalDalwadi 06464fe
wip(go): add tenant teardown method;
VishalDalwadi 87ab866
wip(go): handle tenant deletion;
VishalDalwadi 3f3fe75
Merge branch 'NM-341-v6' of https://github.com/gravitl/netmaker into …
VishalDalwadi d51426f
wip(go): clean up flow logs on tenant deletion;
VishalDalwadi 03ef29c
wip(go): add update org membership role id method;
VishalDalwadi 4c9fb96
wip(go): add transfer org ownership api;
VishalDalwadi 5030040
wip(go): move audit logs retention period to org settings;
VishalDalwadi d97b40e
wip(go):get retention period from org settings;
VishalDalwadi be5848a
wip(go): remove old audit logs usage;
VishalDalwadi 629f2ff
wip(go): migrate audit logs retention period;
VishalDalwadi b9993ba
wip(go): unmarshal decodes nums as float64;
VishalDalwadi ebfd275
wip(go): run flow logs cleanup for all tenants in one go;
VishalDalwadi 95dcedf
wip(go): add audit logs retention period and smtp settings to tenant …
VishalDalwadi 9db2b99
wip(go): resolve retention period and smtp settings correctly;
VishalDalwadi da59cd1
wip(go): handle retention period and smtp settings updates and fetche…
VishalDalwadi f17a456
wip(go): overlay retention period and smtp settings on server settings;;
VishalDalwadi aad44c8
wip(go): upsert overlayed settings;
VishalDalwadi c18b40d
wip(go): add azure tenant id to org settings;
VishalDalwadi 83faa74
wip(go): tenant scope list roles;
VishalDalwadi d55f5af
wip(go): add noop creds;
VishalDalwadi 0efe299
wip(go): use first instead of find;
VishalDalwadi e8aa65c
wip(go): use correct roles when transfering ownership;
VishalDalwadi 3519738
wip(go): delete access tokens only if tenant scoped;
VishalDalwadi efcbe2b
wip(go): make delete user work for both org and tenant scope;
VishalDalwadi e1d0c4a
wip(go): delete extclients only if tenant scoped;
VishalDalwadi 7f0cc6f
wip(go): check if caller is allowed to delete user;
VishalDalwadi 3760cd3
wip(go): infer scope for update user;
VishalDalwadi 2250e03
wip(go): prevent org-owner elevation;
VishalDalwadi 01832fa
wip(go): permissions check for update;
VishalDalwadi 00a7744
wip(go): delete user access tokens only if tenant scope;
VishalDalwadi 8fcbaf6
wip(go): delete extclients only if tenant scope;
VishalDalwadi 8ea77e0
wip(go): move upsert membership in upsert user;
VishalDalwadi f938eb8
wip(go): set api host when constructing server config;
VishalDalwadi 533e817
wip(go): fix static errors;
VishalDalwadi 24e2bf1
wip(go): fix test cases;
VishalDalwadi 6ee9eb2
wip(go): use correct get ns order;
VishalDalwadi cc48b3c
wip(go): use correct get pending host order;
VishalDalwadi 97527bb
wip(go): use correct get access token order;
VishalDalwadi 2d83203
wip(go): use correct get event order;
VishalDalwadi 5065848
wip(go): return error response on emqx user creation error;
VishalDalwadi f593f7a
wip(go): store correct value in cache;
VishalDalwadi 5aa1b29
wip(go): return better error response;
VishalDalwadi 331c43d
wip(go): return better error response;
VishalDalwadi 7610a81
wip(go): use cache when listing egress acls;
VishalDalwadi 5a305cc
wip(go): wire ctx in UserHasNetworkGroupAccess;
VishalDalwadi e2b7af6
wip(go): remove double scope wrapping;
VishalDalwadi 2633d8d
wip(go): add security check for list and get org;
VishalDalwadi be0bbc2
wip(go): ratelimit discover api;
VishalDalwadi 6082b41
wip(go): expect sole org id in get and create org owner;
VishalDalwadi 594cb82
wip(go): wrap create org owner in tx;
VishalDalwadi c404ad4
wip(go): wire ctx correctly;
VishalDalwadi 7ba579e
wip(go): wire ctx for posture check functions;
VishalDalwadi 4341e56
wip(go): remove resolved todo;
VishalDalwadi 257e707
wip(go): wire ctx for posture check function;
VishalDalwadi eccd17f
wip(go): remove scope from netdesk login api;
VishalDalwadi d7f9d26
Merge branch 'NM-341-v6' of https://github.com/gravitl/netmaker into …
VishalDalwadi e7fdf96
Merge branch 'develop' of https://github.com/gravitl/netmaker into NM…
VishalDalwadi 2dc1840
wip(go): use orgid correctly;
VishalDalwadi e52d8f1
wip(go): scope user update checks correctly;
VishalDalwadi 61d12f0
wip(go): wire ctx for fetch oauth secret;
VishalDalwadi 1942fe4
wip(go): add tenant_id and org_id query string param to user invite url;
VishalDalwadi a398bc4
wip(go): get sole org;
VishalDalwadi 611f6cc
wip(go): set query string correctly;
VishalDalwadi ebe3eb2
wip(go): wire ctx in update user groups;
VishalDalwadi 6a0642c
wip(go): allow delete oauth non-idp users;
VishalDalwadi ebd8576
wip(go): delete access tokens post update but check before update;
VishalDalwadi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.