Kristoffer Dalby
16ccbf4cdb
Merge pull request #207 from juanfont/update-contributors
2021-10-31 12:17:31 +00:00
Kristoffer Dalby
d803fe6123
Merge branch 'main' into update-contributors
2021-10-31 09:58:17 +00:00
github-actions[bot]
223c611820
docs(README): update contributors
2021-10-31 09:34:07 +00:00
Kristoffer Dalby
fbdfa55629
Merge pull request #126 from unreality/main
...
Initial work on OIDC (SSO) integration
2021-10-31 09:33:35 +00:00
unreality
73d22cdf54
Merge pull request #2 from kradalby/oidc-1
...
Fix conflict, prepare for merge
2021-10-31 07:04:04 +08:00
Kristoffer Dalby
bac81176b2
Remove lint from generated testcode
2021-10-30 15:39:05 +00:00
Kristoffer Dalby
cd2914dbc9
Make note about oidc being experimental
2021-10-30 15:35:58 +00:00
Kristoffer Dalby
cbf3f5d640
Resolve merge conflict
2021-10-30 15:33:01 +00:00
Ward Vandewege
7301d7eb67
Merge pull request #200 from cure/cli-improvements
...
Cli improvements -- nodes subcommand
2021-10-29 17:36:54 -04:00
Ward Vandewege
b2d2d5653e
Merge branch 'main' into cli-improvements
2021-10-29 17:20:05 -04:00
Raal Goff
2d252da221
suggested documentation and comments
2021-10-29 21:35:07 +08:00
Kristoffer Dalby
2c071a8a2d
Merge pull request #204 from kradalby/api-playground
2021-10-28 20:17:20 +01:00
Ward Vandewege
f9187bdfc4
Switch to named arguments for all nodes
subcommands. Update docs
...
accordingly. Fix integration test failure.
2021-10-28 09:31:15 -04:00
Ward Vandewege
25c67cf2aa
Update integration_test.go
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2021-10-28 08:40:30 -04:00
Ward Vandewege
b00a2729e3
Update cmd/headscale/cli/nodes.go
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2021-10-28 08:39:42 -04:00
Ward Vandewege
6c01b86e4c
Update cmd/headscale/cli/nodes.go
...
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
2021-10-28 08:39:27 -04:00
Ward Vandewege
d086cf4691
Move the namespace argument back to a flag for the share and unshare
...
commands.
2021-10-27 17:51:42 -04:00
Kristoffer Dalby
5054ed41ac
Make ci lint fix if it can
2021-10-27 07:10:32 +00:00
Kristoffer Dalby
e91174e83f
Add gen explicitly to skip list
2021-10-27 07:08:24 +00:00
Kristoffer Dalby
c9bd25d05c
Remove golint from github actions
2021-10-27 07:07:44 +00:00
Kristoffer Dalby
f779372154
Add golangcilint config
2021-10-27 07:07:19 +00:00
Kristoffer Dalby
acd9ebbdf8
Let lint ignore grpcv1.go as it is placeholder
2021-10-27 07:06:39 +00:00
Kristoffer Dalby
6369cea10e
Remove golint, its deprecated
...
This commit removed `golint`, its deprecated:
https://github.com/golang/lint
and golangci-lint has overlapping features.
2021-10-27 06:58:16 +00:00
Kristoffer Dalby
2d92719095
Dont try to generate code on every make build
2021-10-27 06:48:30 +00:00
Kristoffer Dalby
d4265779ef
Check in generated code
...
This does not have to be reviewed, here is some reasoning:
Go (and go mod) is designed for having code available and we need to
check in the generated code to make sure it is "go gettable". If we dont
we give ourselves a headache trying to setup all the ci, tests etc to
install and generate the code before it runs.
Because the code isnt there, the plugins needed to generate the code
fail to install...
I didnt find any good documentation for this, but there is this github
comment:
https://github.com/golang/go/issues/34514#issuecomment-535406759
2021-10-27 06:44:04 +00:00
Kristoffer Dalby
8f2ef6a57d
Prepare for checking in generated code
2021-10-27 06:40:39 +00:00
Kristoffer Dalby
6e764942a2
Add grpc step to dockerfile
2021-10-26 21:35:18 +00:00
Kristoffer Dalby
11d987549f
Ignore generated files for docker
2021-10-26 21:34:51 +00:00
Kristoffer Dalby
b8c89cd63c
Add readme and makefile entry about code generation
2021-10-26 20:53:10 +00:00
Kristoffer Dalby
2f045b20fb
Refactor tls and wire up grpc, grpc gateway/api
...
This commit moves the TLS configuration into a seperate function.
It also wires up the gRPC interface and prepares handing the API
endpoints to the grpc gateway.
2021-10-26 20:42:56 +00:00
Kristoffer Dalby
caa4d33cbd
Add an initial grpcv1 service (implementing the proto generated service)
2021-10-26 20:42:20 +00:00
Kristoffer Dalby
a9da7c8fd9
Update go.mod
2021-10-26 20:41:35 +00:00
Kristoffer Dalby
b096a2e7e5
Create an initial gRPC service
...
This commit adds protobuf files and tooling surrounding generating APIs
and datatypes.
2021-10-26 20:37:37 +00:00
Ward Vandewege
f9ece0087d
Make the cli help a little more explicit for the nodes subcommand.
2021-10-26 08:50:25 -04:00
Kristoffer Dalby
c76d3b53d9
Merge branch 'main' into cli-improvements
2021-10-25 22:11:02 +01:00
Kristoffer Dalby
e8277595f5
Merge pull request #202 from juanfont/kradalby-patch-1
...
Add note about main containing unreleased changes
2021-10-25 20:14:36 +01:00
Kristoffer Dalby
4d3b638a3d
Add note about main containing unreleased changes
...
#201
2021-10-25 19:38:11 +01:00
Ward Vandewege
1d9954d8e9
Fix integration test.
2021-10-24 20:11:47 -04:00
Ward Vandewege
dd7557850e
cli changes for the nodes
subcommand:
...
* when listing nodes, a namespace is now optional, when it is not
provided, all nodes are shown
* when deleting, and sharing a node, remove the `namespace` flag, it was
superfluous and unused
* when unsharing a node, specify the namespace as an argument not a
flag, making the UX the same as for sharing.
Also refactor the share/unshare code to reuse the shared bits.
2021-10-24 17:50:28 -04:00
Ward Vandewege
c8e1afb14b
When attempting to unshare a node from the primary namespace, return
...
errorMachineNotShared, not errorSameNamespace. Add test for same.
2021-10-24 17:50:21 -04:00
Kristoffer Dalby
6d162eeff9
Merge pull request #197 from kradalby/config-simplification
2021-10-24 22:27:18 +01:00
Kristoffer Dalby
746d4037da
Fix config and tests
2021-10-24 21:30:51 +01:00
Kristoffer Dalby
1237e02f7c
Merge branch 'config-simplification' of github.com:kradalby/headscale into config-simplification
2021-10-24 21:21:08 +01:00
Kristoffer Dalby
7da3d4ba50
Resolve merge conflict
2021-10-24 21:21:01 +01:00
Kristoffer Dalby
8853315dcc
Update config-example.yaml
...
Co-authored-by: Juan Font <juanfontalonso@gmail.com>
2021-10-23 10:40:15 +01:00
Kristoffer Dalby
5aaffaaecb
Merge pull request #196 from kradalby/derp-improvements
...
Add ability to fetch DERP from url and file
2021-10-23 09:20:27 +01:00
Kristoffer Dalby
389a8d47a3
Merge branch 'main' into derp-improvements
2021-10-22 23:58:48 +01:00
Kristoffer Dalby
a355769416
Update derp-example.yaml
...
Co-authored-by: Juan Font <juanfontalonso@gmail.com>
2021-10-22 23:58:27 +01:00
Juan Font
1a8c9216d6
Merge pull request #194 from juanfont/update-contributors
...
docs(README): update contributors
2021-10-23 00:11:22 +02:00
Juan Font
81316ef644
Merge branch 'main' into update-contributors
2021-10-22 21:28:27 +02:00