Commit graph

408 commits

Author SHA1 Message Date
abhishek9686
a964d2bf7d set managed to false by default 2024-11-08 10:44:30 +04:00
abhishek9686
c11629b8b4 set up failover only in pro 2024-11-06 11:53:37 +04:00
abhishek9686
20fd996aae remove passwd prompt for mq 2024-11-06 11:17:03 +04:00
abhishek9686
79136ba5e7 remove default pro installation from script 2024-11-06 10:56:21 +04:00
Max Ma
5c15f3d9eb
NET-1603: Manage DNS NM changes (#3124)
* add switch for manage dns

* manage DNS sync publish

* add dns sync api

* add manageDNS field in peerUpdate

* add default dns for extClent if manage dns enabled

* add DEFAULT_DOMAIN for internal DNS lookup

* move DNSSync to peerUpdate

* fix empty host in network issue

* sync up dns when custom dns add/delete

* fix custom DNS ip4/ipv6 validator issue
2024-10-29 13:53:45 +04:00
the_aceix
f5c2eaf042 docs: update docs links 2024-10-16 10:34:22 +00:00
abhishek9686
961077f29d update meta data field 2024-10-07 16:06:20 +04:00
abhishek9686
1e8ce1f9f7 chane metadata for internet gw 2024-10-07 10:49:19 +04:00
abhishek9686
51eced8bf7 chane metadata for internet gw 2024-10-07 10:48:55 +04:00
abhishek9686
701584fcd3 fix ingress update dns 2024-10-07 10:35:10 +04:00
abhishek9686
441c190d33 fix jq ingressdns parsing 2024-10-07 10:15:20 +04:00
abhishek9686
f3cea1c8c9 break loop 2024-10-07 09:43:37 +04:00
abhishek9686
c045508725 fix jq parsing of inet network 2024-10-07 09:26:38 +04:00
abhishek9686
aab0c351e4 wait until two network are registered 2024-10-07 08:54:25 +04:00
abhishek9686
d5c24e3720 fix nmctl typo 2024-10-07 08:33:22 +04:00
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