Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

v2.6.0 #537

Merged
merged 58 commits into from
Mar 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
403ac3f
Update vendors
htdvisser Mar 10, 2017
befc2a6
Add BackgroundContext to monitor client
htdvisser Mar 13, 2017
6bc4bba
Reimplement Router Client
htdvisser Mar 6, 2017
aa67806
Add Connection Pool for gRPC connections
htdvisser Mar 9, 2017
a7019e9
Add TCP KeepAlive dialer
htdvisser Mar 9, 2017
8dc0f19
Export component Context
htdvisser Mar 9, 2017
c1470c9
Make Discovery server use TLS
htdvisser Mar 9, 2017
76aa92e
Refactor Dial behaviour
htdvisser Mar 10, 2017
e65e21e
Refactor Broker stream client
htdvisser Mar 10, 2017
4a177f9
Add more log details to stream clients
htdvisser Mar 13, 2017
ed1da90
Move DialOptions and Context to Pool
htdvisser Mar 13, 2017
caf4e9c
Wait for streams to be ready to avoid dropping messages
htdvisser Mar 13, 2017
1e5e430
Merge branch 'master' into develop
htdvisser Mar 14, 2017
92bcc3c
Use global connection pool for monitor and proxies
htdvisser Mar 13, 2017
5a75054
Move Root CAs to pool package
htdvisser Mar 15, 2017
ff93fcc
Update go-account-lib
romeovs Mar 15, 2017
966fff5
Fix breaking changes
romeovs Mar 15, 2017
e178749
Fix test
romeovs Mar 15, 2017
a0d78ab
Fix gRPC stream limit
htdvisser Mar 16, 2017
001da12
Use latest version of go-account-lib, which has less indirection
romeovs Mar 16, 2017
2ed05a0
errors: add helpers to determine type
Mar 16, 2017
9625639
errors: add comments
Mar 16, 2017
710476b
Update go-account-lib to no longer make use of deprecated public_rights
romeovs Mar 16, 2017
c0a46ad
Make redis password configurable
htdvisser Mar 17, 2017
fd7e71c
Merge pull request #525 from TheThingsNetwork/feature/fix-account
htdvisser Mar 17, 2017
5d8eada
Add uplink/downlink monitor to Handler
jankramer Mar 20, 2017
eeb999e
allow ttnctl pf set to be non-interactive
joscha Mar 15, 2017
0c29f08
PR changes
htdvisser Mar 20, 2017
8b8c140
Merge branch 'joscha/omit-tests' into develop
htdvisser Mar 20, 2017
fa1eae5
Merge branch 'feature/error-helpers' into develop
htdvisser Mar 20, 2017
0ff0129
Fix incorrect validation message
htdvisser Mar 20, 2017
7ca4a28
Don't forget to start Gateway monitor streams if there is no token ch…
htdvisser Mar 20, 2017
8884eba
Rename Region to FrequencyPlan
htdvisser Mar 20, 2017
07fe4b9
Add new gateway fields
htdvisser Mar 20, 2017
5de79f8
Changed Gateway proto
egourlao Mar 20, 2017
d7e830c
Merge pull request #530 from TheThingsNetwork/feature/gateway-fields
johanstokking Mar 20, 2017
ab765c5
Changed Gateway Protobuf Declaration
egourlao Mar 20, 2017
467ec4d
Merge branch 'develop' into feature/v2hal-proto
egourlao Mar 21, 2017
42dd69c
Merge branch 'develop' of github.com:TheThingsNetwork/ttn into develop
egourlao Mar 21, 2017
3d3e79a
New FileDescriptorProto
egourlao Mar 21, 2017
d7b7a61
Merge branch 'feature/grpc-refactor' into develop
htdvisser Mar 21, 2017
c534b68
Merge branch 'feature/handler-monitor' into develop
htdvisser Mar 21, 2017
0844e6d
Merge branch 'issue/520-frequency-plan' into develop
htdvisser Mar 21, 2017
8b10d69
Merge branch 'feature/v2hal-proto' into develop
htdvisser Mar 21, 2017
ab6a9e7
Update vendors and docs
htdvisser Mar 21, 2017
41b23c6
Add missing vendor
htdvisser Mar 21, 2017
c2e134b
Remove vendor caching from Travis config
htdvisser Mar 21, 2017
6bf95b1
Update ttn/go-utils vendor
htdvisser Mar 22, 2017
d67b6ac
Generate random trace IDs
htdvisser Mar 22, 2017
9cd63b0
Send activations from Broker and Handler to Monitor
htdvisser Mar 22, 2017
45a1796
Move router monitor forward out of gateway into defer
htdvisser Mar 22, 2017
669f396
Trace drop events in Handler
htdvisser Mar 22, 2017
da00cf0
Add MAC info to log fields
htdvisser Mar 22, 2017
8f623ea
Configure wait time for data stream startup
htdvisser Mar 22, 2017
6bd78ed
Add command line flag to select access key when needed
romeovs Mar 22, 2017
6256606
Merge remote-tracking branch 'origin/feature/ttnctl-downlink-no-q' in…
htdvisser Mar 22, 2017
5e4eaab
Send activation from router to handler before response
htdvisser Mar 22, 2017
0f5917c
Distinguish join and regular message in ref monitor
htdvisser Mar 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env/broker/ca.cert
17 changes: 9 additions & 8 deletions .env/broker/server.cert
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBjjCCATSgAwIBAgIQFzR5quaK8FbcvukuVI94uDAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTYwNzI5MTIxMTU2WhcNMTcw
NzI5MTIxMTU2WjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
MIIBszCCAVmgAwIBAgIQdB+Af49pdScsT7qifQr/BzAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTcwMzA5MTkwNzAyWhcNMTgw
MzA5MTkwNzAyWjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAARKJiC1vanAuqbOtVYPwSM8D6oSseAOeUra5dHi
Xtp72d59+kgaEfa6Zgp0KSaes+D2fxE+RJ4G6v7DYbKgWOGto1YwVDAOBgNVHQ8B
Af8EBAMCAqQwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0TAQH/BAUwAwEB/zAc
BgNVHREEFTATgglsb2NhbGhvc3SCBmJyb2tlcjAKBggqhkjOPQQDAgNIADBFAiAU
fiL3mhXOFbG9T3QVv2lH7H58pnhdrJmIBN1n6qvDXgIhAPgpd2ZCkJ04GHQyTuoU
v75tKrSlLiJw62QdY+s93uSh
Xtp72d59+kgaEfa6Zgp0KSaes+D2fxE+RJ4G6v7DYbKgWOGto3sweTAOBgNVHQ8B
Af8EBAMCAqQwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA8GA1UdEwEB
/wQFMAMBAf8wNwYDVR0RBDAwLoIJbG9jYWxob3N0gglsb2NhbGhvc3SHBH8AAAGH
EAAAAAAAAAAAAAAAAAAAAAEwCgYIKoZIzj0EAwIDSAAwRQIhAO1tHZhOntbGCh1C
NUDGy2XbNF4XP2s/f5N3Rjz/hsvLAiA7WKRmVCu57WTcVEeDmmTHApglmmTmB73N
Bt+Gmd8yaQ==
-----END CERTIFICATE-----
1 change: 1 addition & 0 deletions .env/discovery/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ discovery-address: "localhost:1900"
auth-servers:
ttn-account-v2: "https://account.thethingsnetwork.org"
local: "file://.env/discovery/server.pub"
tls: true
key-dir: "./.env/discovery/"
discovery:
master-auth-servers:
Expand Down
11 changes: 11 additions & 0 deletions .env/discovery/server.cert
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-----BEGIN CERTIFICATE-----
MIIBqDCCAU6gAwIBAgIQaz96pn/63+3HrDdym3o44TAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTcwMzA5MTkwNzAyWhcNMTgw
MzA5MTkwNzAyWjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAAQZ3BU/el/lQZz4hJ2/NAb+oOPNtCJm5dV+WbIS
Q+RRIXHKo9G6mDMEhuwrFA4LyikZ1yftNxKoJR7LIJ3wkdR+o3AwbjAOBgNVHQ8B
Af8EBAMCAqQwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA8GA1UdEwEB
/wQFMAMBAf8wLAYDVR0RBCUwI4IJbG9jYWxob3N0hwR/AAABhxAAAAAAAAAAAAAA
AAAAAAABMAoGCCqGSM49BAMCA0gAMEUCIQCAzEFCWNstqZUdxnmk+kXMZSFwg3v9
L18WGBi7jj95DgIgY0QJWSdMU4BhZVGdCoW4Yq+awY2R1s9NC+nHsnL4tV0=
-----END CERTIFICATE-----
9 changes: 9 additions & 0 deletions .env/gencerts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

env=$(dirname $0)

for service in discovery router broker networkserver handler
do
# ttn $service gen-keypair --key-dir "$env/$service"
ttn $service gen-cert --key-dir "$env/$service" "localhost" "127.0.0.1" "::1"
done
1 change: 1 addition & 0 deletions .env/handler/ca.cert
19 changes: 10 additions & 9 deletions .env/handler/server.cert
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBkDCCATagAwIBAgIRANJJ3rP0cNrdrouE2GCkkaYwCgYIKoZIzj0EAwIwHTEb
MBkGA1UEChMSVGhlIFRoaW5ncyBOZXR3b3JrMB4XDTE2MDcyOTEyMTIwNloXDTE3
MDcyOTEyMTIwNlowHTEbMBkGA1UEChMSVGhlIFRoaW5ncyBOZXR3b3JrMFkwEwYH
KoZIzj0CAQYIKoZIzj0DAQcDQgAEiXbWvyYjOMP4ebTYtVvdIsBwS+U3laWltR7V
ox4+kQWcGLLEg+suI9SRZyKK+frhw9JPKbVNIgEv/S50YKfMEaNXMFUwDgYDVR0P
AQH/BAQDAgKkMBMGA1UdJQQMMAoGCCsGAQUFBwMBMA8GA1UdEwEB/wQFMAMBAf8w
HQYDVR0RBBYwFIIJbG9jYWxob3N0ggdoYW5kbGVyMAoGCCqGSM49BAMCA0gAMEUC
IQDbNJPUIfKZ/1CkTF3+ukl64l3fn613hnMiqAJYO7yz7QIgTAwlr3vkLquSQZUO
yraf7CGvuvulKs4S8sd8im6Bdgs=
MIIBszCCAVmgAwIBAgIQcrThDOgGdbi+Yz4obDgN5zAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTcwMzA5MTkwNzAyWhcNMTgw
MzA5MTkwNzAyWjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAASJdta/JiM4w/h5tNi1W90iwHBL5TeVpaW1HtWj
Hj6RBZwYssSD6y4j1JFnIor5+uHD0k8ptU0iAS/9LnRgp8wRo3sweTAOBgNVHQ8B
Af8EBAMCAqQwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA8GA1UdEwEB
/wQFMAMBAf8wNwYDVR0RBDAwLoIJbG9jYWxob3N0gglsb2NhbGhvc3SHBH8AAAGH
EAAAAAAAAAAAAAAAAAAAAAEwCgYIKoZIzj0EAwIDSAAwRQIhAKyfSZf1tXd1/PeE
vwpltxjtTsHtHrTaOHcz/RENVdKYAiBZRmpzDQbbEStFKhNubYDfv/HIh74RPoUU
y5j6P1kTTg==
-----END CERTIFICATE-----
19 changes: 10 additions & 9 deletions .env/networkserver/server.cert
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBljCCATygAwIBAgIRAOs3B7qZNgejMf+laNHTRuYwCgYIKoZIzj0EAwIwHTEb
MBkGA1UEChMSVGhlIFRoaW5ncyBOZXR3b3JrMB4XDTE2MDcyOTEyMTIxNVoXDTE3
MDcyOTEyMTIxNVowHTEbMBkGA1UEChMSVGhlIFRoaW5ncyBOZXR3b3JrMFkwEwYH
KoZIzj0CAQYIKoZIzj0DAQcDQgAEsfIDb4Va9ocbwGuc375Bxw5ICTCXZ60mbgdx
3JSyWm19DW5dihzPFrB0Ezu+lak91rTEaon9WNcVibhFNG5wMqNdMFswDgYDVR0P
AQH/BAQDAgKkMBMGA1UdJQQMMAoGCCsGAQUFBwMBMA8GA1UdEwEB/wQFMAMBAf8w
IwYDVR0RBBwwGoIJbG9jYWxob3N0gg1uZXR3b3Jrc2VydmVyMAoGCCqGSM49BAMC
A0gAMEUCIBrRl5a2PX+fn68Uefq15Cn1C1XE6NGVmI+HvmP1sA1JAiEA0L4WgKdo
HcUc8PnKlUUgN9nLVx98W9Sb2TvOaldspVE=
MIIBszCCAVmgAwIBAgIQDU92ZmhSjs5+l/Hh53oA0DAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTcwMzA5MTkwNzAyWhcNMTgw
MzA5MTkwNzAyWjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAASx8gNvhVr2hxvAa5zfvkHHDkgJMJdnrSZuB3Hc
lLJabX0Nbl2KHM8WsHQTO76VqT3WtMRqif1Y1xWJuEU0bnAyo3sweTAOBgNVHQ8B
Af8EBAMCAqQwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA8GA1UdEwEB
/wQFMAMBAf8wNwYDVR0RBDAwLoIJbG9jYWxob3N0gglsb2NhbGhvc3SHBH8AAAGH
EAAAAAAAAAAAAAAAAAAAAAEwCgYIKoZIzj0EAwIDSAAwRQIhAKl5ksLQouswffPg
uW1TjDcBNAv0icKXc5uGThz6lv9LAiAJAcpAzY1FUqNGYIqF+3W7AnzWjiF7SVfM
NQthfc/8LQ==
-----END CERTIFICATE-----
1 change: 1 addition & 0 deletions .env/router/ca.cert
17 changes: 9 additions & 8 deletions .env/router/server.cert
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBjjCCATSgAwIBAgIQS/57LijDDb+PB9+WltoR1DAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTYwNzI5MTIxMTQ2WhcNMTcw
NzI5MTIxMTQ2WjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
MIIBszCCAVmgAwIBAgIQDqPxNkrxxJN7VEA7IwQVWzAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTcwMzA5MTkwNzAyWhcNMTgw
MzA5MTkwNzAyWjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAAQrcb9XbpbPrXWn8Qh8kRNxzt+Y3BpxyVgRkeST
30VcppXAv83B64oqklFFTr9BmOSsSXY1iKxcDUV+25TEkuCro1YwVDAOBgNVHQ8B
Af8EBAMCAqQwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0TAQH/BAUwAwEB/zAc
BgNVHREEFTATgglsb2NhbGhvc3SCBnJvdXRlcjAKBggqhkjOPQQDAgNIADBFAiEA
sI4vft9oNO2iT5The9qOzgnM5UxIc/XPrQhpKMgELTwCIFn9pkIsZ0jeeb99uBdS
4MhSRxk4jgkBaWDPjCznaHVm
30VcppXAv83B64oqklFFTr9BmOSsSXY1iKxcDUV+25TEkuCro3sweTAOBgNVHQ8B
Af8EBAMCAqQwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA8GA1UdEwEB
/wQFMAMBAf8wNwYDVR0RBDAwLoIJbG9jYWxob3N0gglsb2NhbGhvc3SHBH8AAAGH
EAAAAAAAAAAAAAAAAAAAAAEwCgYIKoZIzj0EAwIDSAAwRQIgQYkT8K9tgFCgNinA
FKsH1wD3SnISi59MHHwciOVvl5wCIQDlWvtf9tGDZjdfWIBLZkQDz+a15WOD0yAE
1jNJNybDAQ==
-----END CERTIFICATE-----
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ services:
go:
- 1.8

cache:
directories:
- vendor

install:
- make deps
- make cover-deps
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ COMPILED_PROTO_FILES = $(patsubst api%.proto, api%.pb.go, $(PROTO_FILES))
PROTOC_IMPORTS= -I/usr/local/include -I$(GO_PATH)/src -I$(PARENT_DIRECTORY) \
-I$(GO_PATH)/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
PROTOC = protoc $(PROTOC_IMPORTS) \
--gogofast_out=Mgoogle/api/annotations.proto=github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis/google/api,plugins=grpc:$(GO_SRC) \
--gogofast_out=plugins=grpc:$(GO_SRC) \
--grpc-gateway_out=:$(GO_SRC) `pwd`/

protos-clean:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ When you get started with The Things Network, you'll probably have some question
7. Run `make dev` to install the go binaries into `$GOPATH/bin/`
* Optionally on Linux or Mac you can use `make link` to link them to `$GOPATH/bin/` (In order to run the commands, you should have `export PATH="$GOPATH/bin:$PATH"` in your profile).
8. Configure your `ttnctl` with the settings in `.env/ttnctl.yml.dev-example` by copying that file to `~/.ttnctl.yml`.
9. Trust the CA certificate of your local discovery server by copying `.env/discovery/server.cert` to `~/.ttnctl/ca.cert`.

You can check your `ttnctl` configuration by running `ttnctl config`. It should look like this:

Expand Down
2 changes: 1 addition & 1 deletion api/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading