Commit graph

2626 commits

Author SHA1 Message Date
dcarns
77baf70506
Merge pull request #957 from gravitl/dev-netmaker-cmd-flags
main: Add flag (-c) for configuration path
2022-03-23 20:34:16 -04:00
dcarns
94d843c3bd
Merge pull request #953 from gravitl/feature_v0.12.2_list_id
Feature v0.12.2 list
2022-03-23 20:33:35 -04:00
john s
d1fb0b90af
netclient: math.Rand -> crypto.Rand (#956)
* netclient: math.Rand -> crypto.Rand

Signed-off-by: John Sahhar <john@gravitl.com>

* netclient: math.Rand -> crypto.Rand

* add tests

Signed-off-by: John Sahhar <john@gravitl.com>

* netclient: math.Rand -> crypto.Rand

* add test

Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-23 12:06:26 -06:00
0xdcarns
5f1299042f added custom dns entries to peer update 2022-03-23 10:31:38 -04:00
John Sahhar
a27cabc744 main: Add flag (-c) for configuration path
Adds an optional flag (-c) to the netmaker binary
for passing in an absolute path to a netmaker config
file.

Example:

	netmaker -c /etc/default/netmaker-server.yaml

Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-22 15:22:38 -06:00
john s
e1ace88508
scripts/build-binaries.sh: support for all OS/ARCH (#948)
* scripts/build-binaries.sh: support for all OS/ARCH

Expands our build scripts to support the following OS/ARCHS:

netclient-linux-amd64
netclient-linux-arm5
netclient-linux-arm6
netclient-linux-arm7
netclient-linux-arm64
netclient-linux-mips
netclient-linux-mips64
netclient-linux-mips64le
netclient-linux-mipsle
netclient-linux-ppc64
netclient-linux-ppc64le
netclient-linux-riscv64
netclient-linux-s390x
netclient-linux-386
netclient-freebsd-amd64
netclient-freebsd-arm5
netclient-freebsd-arm6
netclient-freebsd-arm7
netclient-freebsd-arm64
netclient-freebsd-386
netclient-darwin-arm64
netclient-darwin-amd64
netclient-windows-amd64
netclient-windows-arm5
netclient-windows-arm6
netclient-windows-arm7
netclient-windows-arm64
netclient-windows-386

* bin-maker.sh: update default VERSION

Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-22 14:14:57 -06:00
0xdcarns
a477eaa767 added local node ID's to list command 2022-03-22 15:33:38 -04:00
0xdcarns
4cd75f2985 initial commit 2022-03-22 15:13:48 -04:00
dcarns
c29306304f
Merge pull request #950 from gravitl/hotfix_v0.12.1_disappearing_iface
fixed removing local servers on deletes
2022-03-22 14:47:55 -04:00
0xdcarns
988c0d7629 fixed removing local servers on deletes 2022-03-22 14:29:20 -04:00
Matthew R Kasun
1c9c154255
remove latest tag temporarily 2022-03-22 10:08:10 -04:00
dcarns
5a10fe2ab3
Merge pull request #937 from gravitl/dev-gh-matrix
workflows/test.yml: add windows/darwin to workflow
2022-03-22 08:53:08 -04:00
dcarns
37ca4cfadf
Merge pull request #938 from gravitl/dependabot/go_modules/develop/github.com/stretchr/testify-1.7.1
Bump github.com/stretchr/testify from 1.7.0 to 1.7.1
2022-03-22 08:51:42 -04:00
dependabot[bot]
74ec5332f3
Bump github.com/stretchr/testify from 1.7.0 to 1.7.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.7.0...v1.7.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 12:47:51 +00:00
dcarns
70057dd43f
Merge pull request #939 from gravitl/dependabot/go_modules/develop/github.com/golang-jwt/jwt/v4-4.4.0
Bump github.com/golang-jwt/jwt/v4 from 4.3.0 to 4.4.0
2022-03-22 08:47:17 -04:00
dcarns
51d9347413
Merge pull request #940 from gravitl/dependabot/go_modules/develop/github.com/urfave/cli/v2-2.4.0
Bump github.com/urfave/cli/v2 from 2.3.0 to 2.4.0
2022-03-22 08:46:35 -04:00
dcarns
64753348bb
Merge pull request #941 from gravitl/dependabot/go_modules/develop/github.com/guumaster/hostctl-1.1.2
Bump github.com/guumaster/hostctl from 1.1.1 to 1.1.2
2022-03-22 08:45:52 -04:00
dependabot[bot]
d83253bcb0
Bump github.com/guumaster/hostctl from 1.1.1 to 1.1.2
Bumps [github.com/guumaster/hostctl](https://github.com/guumaster/hostctl) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/guumaster/hostctl/releases)
- [Changelog](https://github.com/guumaster/hostctl/blob/master/.goreleaser.yml)
- [Commits](https://github.com/guumaster/hostctl/compare/v1.1.1...v1.1.2)

---
updated-dependencies:
- dependency-name: github.com/guumaster/hostctl
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-21 23:12:20 +00:00
dependabot[bot]
117550ad4e
Bump github.com/urfave/cli/v2 from 2.3.0 to 2.4.0
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v2.3.0...v2.4.0)

---
updated-dependencies:
- dependency-name: github.com/urfave/cli/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-21 23:12:12 +00:00
dependabot[bot]
a3a52b8867
Bump github.com/golang-jwt/jwt/v4 from 4.3.0 to 4.4.0
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.3.0 to 4.4.0.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.3.0...v4.4.0)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-21 23:12:05 +00:00
John Sahhar
0e2f96b5d2 workflows/test.yml: add windows/darwin to workflow
Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-21 14:10:39 -06:00
Matthew R Kasun
f8bc889ea8
Merge pull request #936 from gravitl/hotfix_v0.12.1_initial_test_fixes
added graceful wait for comms
2022-03-21 16:03:04 -04:00
0xdcarns
8d63a8e058 added graceful wait for comms 2022-03-21 14:47:51 -04:00
dcarns
1f269d8730
Merge pull request #935 from gravitl/hotfix_v0.12.1_initial_test_fixes
comms join issue
2022-03-21 13:53:35 -04:00
0xdcarns
d504e9e3cc comms join issue 2022-03-21 12:13:27 -04:00
dcarns
663445fd59
Merge pull request #933 from gravitl/feature_v0.12.1_port_forwarding
run iptables regularly
2022-03-21 11:54:27 -04:00
afeiszli
0ab78e4db2 run iptables regularly 2022-03-21 11:52:00 -04:00
dcarns
131edeb8ea
Merge pull request #932 from gravitl/feature_v0.12.1_versioning
Feature v0.12.1 versioning
2022-03-21 11:48:18 -04:00
afeiszli
c26e7ec7ad readme edit 2022-03-21 11:45:56 -04:00
afeiszli
dc3908b9f5 changing versions, removing ssh port forward, adding image link 2022-03-21 11:43:06 -04:00
dcarns
9b2742a3c5
Merge pull request #925 from gravitl/refactor_v0.12.0_logging
replace ncutil.Log/PrintLog with logger.Log
2022-03-21 11:35:06 -04:00
Alex Feiszli
f8b4ebffc9
Merge pull request #922 from gravitl/bugfix_v0.11.0_server_routes
server routes
2022-03-21 11:34:33 -04:00
afeiszli
8901160237 don't set endpoint if server 2022-03-21 11:30:18 -04:00
Matthew R. Kasun
e3d3c864ab fix for windows 2022-03-21 11:27:31 -04:00
Matthew R. Kasun
fa78fe208f update for other architectures 2022-03-21 11:27:27 -04:00
Matthew R. Kasun
11b1098390 replace ncutil.Log/PrintLog with logger.Log 2022-03-21 11:27:25 -04:00
dcarns
28efa45419
Merge pull request #924 from masakichi/patch-1
Fix typo for Arch Linux in netclient-install.sh
2022-03-21 10:47:54 -04:00
dcarns
400ce8843a
Merge pull request #931 from gravitl/hotfix_v0.12.1_db_mutex
set max open conns to 1 for sqlite
2022-03-21 10:46:39 -04:00
dcarns
9efb15e688
Merge pull request #929 from gravitl/bugfix_v0.12.0_keepalive
keepalive handling updates
2022-03-21 10:41:01 -04:00
dcarns
b397f5014f
Merge pull request #918 from gravitl/bugfix_v0.12.1_hostctl_profile_names
use interface as hostctl profile
2022-03-21 10:24:28 -04:00
0xdcarns
5e327fdea4 set max open conns to 1 for sqlite 2022-03-21 09:14:04 -04:00
john s
b16a6ab6a4 netclient: pass by value -> reference (#919)
* netclient: pass by value -> reference

Updates various function arguments to accept config.ClientConfig
as a reference to avoid deep copying the struct.

Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-21 08:05:30 -04:00
Matthew R. Kasun
c16687be61 keepalive handling updates 2022-03-21 07:07:50 -04:00
john s
24f292c934
netclient: pass by value -> reference (#919)
* netclient: pass by value -> reference

Updates various function arguments to accept config.ClientConfig
as a reference to avoid deep copying the struct.

Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-20 23:43:17 -05:00
Yuanji
dc470f47c3
Fix typo for Arch Linux 2022-03-20 22:50:41 +09:00
Matthew R. Kasun
f615b685c7 server routes 2022-03-20 06:25:12 -04:00
Matthew R. Kasun
b1a640eb83 temp code to remove netmaker profiles from /etc/hosts on daemon start 2022-03-18 15:53:59 -04:00
john s
eb974dbd63
config/config_test: add test (#882)
* Adds a test for parsing the dev.yaml config included in the repository
* Changes readConfig() to return an error in addition to the envrionment
  config

Signed-off-by: John Sahhar <john@gravitl.com>
2022-03-18 14:06:48 -05:00
Matthew R. Kasun
58988706d9 missed on call
Signed-off-by: Matthew R. Kasun <mkasun@nusak.ca>
2022-03-18 13:47:03 -04:00
Matthew R. Kasun
3b12f55de0 use interface as hostctl profile 2022-03-18 10:10:34 -04:00