Commit graph

393 commits

Author SHA1 Message Date
abhishek9686
f5ff9b903d check if networks output is null 2024-10-07 08:31:55 +04:00
abhishek9686
ea610281d1 update inet gw dns 2024-10-04 18:41:34 +04:00
abhishek9686
675a900b9a fix data arg 2024-10-04 14:27:31 +04:00
abhishek9686
0060d2bd04 fix inet gw creation req 2024-10-04 12:33:53 +04:00
abhishek9686
cc0a2ae4b3 fix inet gw creation req 2024-10-04 12:30:45 +04:00
abhishek9686
3d1c3ad3fb setup internet-access-vpn network 2024-10-03 20:22:29 +04:00
abhishek9686
61e2b46f9d change network to carrier grade reserved range 2024-09-30 12:43:51 +04:00
abhishek9686
de1b5f51ed change cidr to /16 2024-09-30 12:06:40 +04:00
abhishek9686
8eb0e5bfae change network log 2024-09-30 11:26:08 +04:00
abhishek9686
e2f0bf5a0f rename used tenant id var in script 2024-09-06 20:10:42 +04:00
abhishek9686
76d57c4d65 Merge branch 'NET-1574' of https://github.com/gravitl/netmaker into NET-1574 2024-09-06 16:53:31 +04:00
abhishek9686
ac6c99b6a8 copy license and tenant id from previous config 2024-09-06 16:53:17 +04:00
Abhishek K
ce19f5d3aa
Merge branch 'develop' into NET-1574 2024-09-06 18:15:56 +05:30
abhishek9686
57434423a5 use jq -r 2024-09-06 12:03:35 +04:00
abhishek9686
cc003c8f73 trim double quotes from netmaker token 2024-09-06 06:43:51 +04:00
abhishek9686
f475abafec trim double quotes from netmaker tag 2024-09-06 06:27:54 +04:00
abhishek9686
f467dda773 get token if exists already 2024-09-04 13:12:16 +05:30
abhishek9686
883902d91e add pro arg 2024-09-04 12:55:40 +05:30
abhishek9686
b534c670b6 resolve merge conflicts 2024-09-04 12:42:43 +05:30
Max Ma
5d9ff1f10c add BATCH_PEER_UPDATE in netmaker.env with default values 2024-09-04 09:03:19 +02:00
Aceix
19d7bb1ea2
fix: update yml references to json for v0.25.0 (#3083) 2024-08-28 18:52:59 +05:30
abhishek9686
ece5951625 add pro arg to usage 2024-08-27 09:31:47 +05:30
abhishek9686
5bded324ef add install log 2024-08-27 09:21:45 +05:30
abhishek9686
3e35dfcc9a collect tenant id and license on pro install 2024-08-27 09:20:00 +05:30
abhishek9686
c6ebc004c6 collect tenant id and license on pro install 2024-08-27 09:19:16 +05:30
abhishek9686
f25ee0aab4 add flag to install pro 2024-08-27 08:53:37 +05:30
Abhishek K
1924da2956
Net 1227 v1 (#3063)
* generalise smtp config

* copy over smtp vars

* env new line

* fix master key api access

* comment user tests

* fix network and user invite for master key access

* remove email sender type
2024-08-22 13:03:49 +05:30
abhishek9686
e29b4e080b remove email sender type 2024-08-22 13:01:38 +05:30
Abhishek K
aa64e50374
Net 1227 (#3060)
* generalise smtp config

* copy over smtp vars

* env new line
2024-08-22 08:36:38 +05:30
abhishek9686
c8eec1ed04 env new line 2024-08-22 08:35:37 +05:30
abhishek9686
82eecf5666 copy over smtp vars 2024-08-22 08:34:31 +05:30
Abhishek K
2e8d95e80e
NET-1227: User Mgmt V2 (#3055)
* user mgmt models

* define user roles

* define models for new user mgmt and groups

* oauth debug log

* initialize user role after db conn

* print oauth token in debug log

* user roles CRUD apis

* user groups CRUD Apis

* additional api checks

* add additional scopes

* add additional scopes url

* add additional scopes url

* rm additional scopes url

* setup middlleware permission checks

* integrate permission check into middleware

* integrate permission check into middleware

* check for headers for subjects

* refactor user role models

* refactor user groups models

* add new user to pending user via RAC login

* untracked

* allow multiple groups for an user

* change json tag

* add debug headers

* refer network controls form roles, add debug headers

* refer network controls form roles, add debug headers

* replace auth checks, add network id to role model

* nodes handler

* migration funcs

* invoke sync users migration func

* add debug logs

* comment middleware

* fix get all nodes api

* add debug logs

* fix middleware error nil check

* add new func to get username from jwt

* fix jwt parsing

* abort on error

* allow multiple network roles

* allow multiple network roles

* add migration func

* return err if jwt parsing fails

* set global check to true when accessing user apis

* set netid for acls api calls

* set netid for acls api calls

* update role and groups routes

* add validation checks

* add invite flow apis and magic links

* add invited user via oauth signup automatically

* create invited user on oauth signup, with groups in the invite

* add group validation for user invite

* update create user handler with new role mgmt

* add validation checks

* create user invites tables

* add error logging for email invite

* fix invite singup url

* debug log

* get query params from url

* get query params from url

* add query escape

* debug log

* debug log

* fix user signup via invite api

* set admin field for backward compatbility

* use new role id for user apis

* deprecate use of old admin fields

* deprecate usage of old user fields

* add user role as service user if empty

* setup email sender

* delete invite after user singup

* add plaform user role

* redirect on invite verification link

* fix invite redirect

* temporary redirect

* fix invite redirect

* point invite link to frontend

* fix query params lookup

* add resend support, configure email interface types

* fix groups and user creation

* validate user groups, add check for metrics api in middleware

* add invite url to invite model

* migrate rac apis to new user mgmt

* handle network nodes

* add platform user to default role

* fix user role migration

* add default on rag creation and cleanup after deletion

* fix rac apis

* change to invite code param

* filter nodes and hosts based on user network access

* extend create user group req to accomodate users

* filter network based on user access

* format oauth error

* move user roles and groups

* fix get user v1 api

* move user mgmt func to pro

* add user auth type to user model

* fix roles init

* remove platform role from group object

* list only platform roles

* add network roles to invite req

* create default groups and roles

* fix middleware for global access

* create default role

* fix nodes filter with global network roles

* block selfupdate of groups and network roles

* delete netID if net roles are empty

* validate user roles nd groups on update

* set extclient permission scope when rag vpn access is set

* allow deletion of roles and groups

* replace _ with - in role naming convention

* fix failover middleware mgmt

* format oauth templates

* fetch route temaplate

* return err if user wrong login type

* check user groups on rac apis

* fix rac apis

* fix resp msg

* add validation checks for admin invite

* return oauth type

* format group err msg

* fix html tag

* clean up default groups

* create default rag role

* add UI name to roles

* remove default net group from user when deleted

* reorder migration funcs

* fix duplicacy of hosts

* check old field for migration

* from pro to ce make all secondary users admins

* from pro to ce make all secondary users admins

* revert: from pro to ce make all secondary users admins

* make sure downgrades work

* fix pending users approval

* fix duplicate hosts

* fix duplicate hosts entries

* fix cache reference issue

* feat: configure FRONTEND_URL during installation

* disable user vpn access when network roles are modified

* rm vpn acces when roles or groups are deleted

* add http to frontend url

* revert crypto version

* downgrade crytpo version

* add platform id check on user invites

---------

Co-authored-by: the_aceix <aceixsmartx@gmail.com>
2024-08-20 17:08:56 +05:30
Max Ma
1b86e80299
NET-1180: fix install issue for latest debian and centos distributions (#2921)
* fix install issue for Ubunut Fedora Centos Debian latest version

* fix install issue for rocky alma amazon suse latest version

* fix install issue for redhat latest version and misc dpkg command issues

* remove suse and add supported OS message

* change wireguard-tools package name and remove FreeBSD etc in the list

* add yum repo pacakge for centos8&7

* add sleep for nm-quick.sh to avoid failure
2024-05-08 12:15:09 +05:30
Abhishek K
fccc54d47e
Merge pull request #2915 from gravitl/release-v0.24.0
Release v0.24.0
2024-04-30 21:42:08 +05:30
pwilson77
bd2cd00f9e fix: update nm-quick script to use create_remote_access_gateway 2024-04-30 16:09:49 +00:00
Abhishek K
6f5aafb76b
Update netmaker.default.env 2024-04-19 19:24:36 +05:30
Abhishek K
dccb6b5da7
NET-1075: Endpoint detection server config (#2876)
* add config for endpoint detection

* add config to netmaker env file

* fix config value check for endpoint detection
2024-04-03 23:51:09 +05:30
Abhishek K
0d4552db5e
NET-1064: Oauth User SignUp Approval Flow (#2874)
* add pending users api

* insert user to pending users on first time oauth login

* add pending user check on headless login

* fix conflicting apis

* no records error

* add allowed emails domains for oauth singup to config

* check if user is allowed to signup
2024-04-03 11:20:19 +05:30
Abhishek K
3784efaa9b
Merge pull request #2863 from gravitl/master
master
2024-03-17 08:00:41 +07:00
the_aceix
ddb7879396 feat(NET-1034): add trial data to telemetry 2024-03-13 16:33:28 +00:00
Abhishek K
24c784a10c
NET-962: add semver check (#2854)
* add semver check

* indentation on if
2024-03-12 08:14:05 +07:00
abhishek9686
fd95e80dc7 rm certs ref from upgrade script 2024-02-28 08:41:53 +07:00
abhishek9686
e220143ff3 make default host failover on install 2024-01-25 23:35:01 +05:30
abhishek9686
0e6881d42a fix pro setup link 2024-01-24 21:11:50 +05:30
abhishek9686
f35087bb04 fix pro setup link 2024-01-24 21:01:54 +05:30
abhishek9686
330c230ed7 fix upgrade and downgrade 2024-01-24 18:28:25 +05:30
abhishek9686
0298532920 fix upgrade and downgrade 2024-01-24 18:18:46 +05:30
abhishek9686
dc6ffe10d3 fix upgrade and downgrade 2024-01-24 18:14:40 +05:30
abhishek9686
69dd212a0f fix upgrade and downgrade 2024-01-24 18:08:10 +05:30
abhishek9686
2164797896 copy build tag 2024-01-24 18:02:26 +05:30