Commit Graph

199 Commits

Author SHA1 Message Date
Orne Brocaar
11fdd33139 Bump version to 4.10.0-test.1 2024-09-19 12:19:22 +01:00
Orne Brocaar
3b42b9ffdb Update dependencies. 2024-09-19 10:44:26 +01:00
Orne Brocaar
9d04a74a94 Update dependencies. 2024-09-09 13:36:59 +01:00
Orne Brocaar
e63296573b
Implement support for SQLite database backend. (#418) (#500)
This feature makes it possible to select between PostgreSQL and SQLite as database backend using a compile feature-flag. It is not possible to enable both at the same time.

---------

Co-authored-by: Momo Bel <plopyomomo@gmail.com>
2024-08-26 13:22:35 +01:00
Orne Brocaar
489a35e0ec Bump version to 4.9.0 2024-08-15 09:06:19 +01:00
Orne Brocaar
76b7ec4881 Add signal handling.
Fixes #480.
2024-08-13 13:04:06 +01:00
Orne Brocaar
3aaa114f46 Update deadpool-redis. 2024-08-08 16:53:07 +01:00
Orne Brocaar
a811ec5c80 Bump version to 4.9.0-test.6 2024-08-07 15:11:09 +01:00
Orne Brocaar
eda6646b18 Update dependencies. 2024-08-05 10:15:23 +01:00
Orne Brocaar
40a2b83bf5 Update redis dependency. 2024-08-05 10:06:48 +01:00
Orne Brocaar
4e0106a4e8 Replace warp with axum.
The warp dependency was causing some issues with upgrading dependencies
as it depends on http v0.2, where other dependencies (e.g. tonic) have
already upgraded to http v1+.
2024-08-01 11:33:57 +01:00
Orne Brocaar
6a691c62e2 Update dependencies. 2024-07-24 14:12:50 +01:00
Orne Brocaar
66ab41036b Update lapin crate.
This disables the default features (rustls), because lapin enables the
default rustls features, which pulls in the aws-lc-rs dependency besides
ring.

Most likely, the next lapin version will fix this by exposing feature
flags to either enable aws-lc-rs or ring backend for rustls.
2024-07-24 14:05:46 +01:00
Orne Brocaar
dc57e6fe51 Update rustls to 0.23. 2024-07-23 14:03:09 +01:00
Orne Brocaar
ebc4065ca2 Bump version to 4.9.0-test.5 2024-07-23 11:03:39 +01:00
Orne Brocaar
a23797ddbb Fix updating dependencies.
The previous update dependencies commit contained a dependency that
pulled in the aws-lc-rs crate, which fails to build on ARMv7. See also
370b84cb09.

This commit reverts the updates and only updates part of the crates.

A proper fix will be to update all dependencies to rustls 0.23 such that
we can enable the ring feature flag (which is the 0.22 default).
2024-07-23 10:39:58 +01:00
Orne Brocaar
8fabfd925e Bump version to 4.9.0-test.4 2024-07-22 14:40:01 +01:00
Orne Brocaar
a22ed43883 Update dependencies.
There are still a few dependencies left to update, but these updates
require additional code changes.
2024-07-22 11:48:08 +01:00
Orne Brocaar
920f485734 Update openidconnect dependency.
Fixes #423.
2024-07-11 09:56:13 +01:00
Orne Brocaar
2737284d2d Update oauth2 dependency. 2024-07-11 09:56:13 +01:00
dependabot[bot]
4ef0fbbd8f
Bump curve25519-dalek from 4.1.2 to 4.1.3 (#442)
Bumps [curve25519-dalek](https://github.com/dalek-cryptography/curve25519-dalek) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/dalek-cryptography/curve25519-dalek/releases)
- [Commits](https://github.com/dalek-cryptography/curve25519-dalek/compare/curve25519-4.1.2...curve25519-4.1.3)

---
updated-dependencies:
- dependency-name: curve25519-dalek
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-09 12:22:35 +01:00
Orne Brocaar
f854236b79 Bump version to 4.9.0-test.3 2024-06-26 14:57:17 +01:00
Orne Brocaar
68473906c9 Bump version to 4.9.0-test.2 2024-06-25 12:27:28 +01:00
Orne Brocaar
3f1a47e1e2 Integrate Gateway Mesh feature.
This adds a Gateway Mesh section to the web-interface (+ API endpoints)
to see the status op each Relay Gateway within the Gateway Mesh.

The Gateway Mesh (https://github.com/chirpstack/chirpstack-gateway-mesh)
is an experimental feature to extend LoRaWAN coverage throug Relay
Gateways.
2024-06-25 11:37:57 +01:00
Orne Brocaar
4968f5d792 Bump version to 4.8.1 2024-05-13 16:47:14 +01:00
Orne Brocaar
c3de89a4a4 Bump version to 4.8.0 2024-05-13 15:35:00 +01:00
Orne Brocaar
73ad79a356 Bump version to 4.8.0-test.5 2024-05-09 13:45:24 +01:00
Orne Brocaar
370b84cb09 Revert "Update dependencies."
This reverts commit f475e4f642. One of the
updated dependencies introduces aws-lc-rs as dependency, which fails to
build on ARMv7.
2024-05-09 13:02:59 +01:00
Orne Brocaar
d03870ff11 Bump version to 4.8.0-test.4 2024-05-09 11:22:22 +01:00
Orne Brocaar
e0a9e52cca Bump version to 4.8.0-test.3 2024-05-09 08:48:43 +01:00
Orne Brocaar
f475e4f642 Update dependencies. 2024-05-08 10:59:27 +01:00
Orne Brocaar
40cfa3ddf2 Update rquickjs dependency. 2024-05-07 12:15:24 +01:00
Orne Brocaar
378b314a32 Update rcgen dependency + cargo update. 2024-04-10 11:52:23 +01:00
Orne Brocaar
9207effb5b Bump version to 4.8.0-test.2 2024-04-10 10:12:06 +01:00
Orne Brocaar
b3ba23f32c Bump version to 4.8.0-test.1 2024-04-04 15:25:59 +01:00
Orne Brocaar
2bb05fba58 Update dependencies. 2024-04-02 11:40:47 +01:00
Orne Brocaar
d170c7dd79 api: Remove generated API files from repo + update build.
All these files can be generated using the `make api` command and there
is no real need to commit these into the repo. Only the api/go files
need to be comitted of how the Go import system works.

This also updates the Rust, Go, JS and gRPC-web (JS) code generation and
UI build to use the nix-shell environment instead of using Docker.
2024-04-01 14:27:15 +01:00
dependabot[bot]
59271f6966
Bump async-trait from 0.1.78 to 0.1.79 (#389)
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.78 to 0.1.79.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.78...0.1.79)

---
updated-dependencies:
- dependency-name: async-trait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-27 14:13:18 +00:00
Orne Brocaar
2c06edd6ff Add auto conversion for SEC1 EC keys to PKCS#8.
Fixes #386.
2024-03-27 09:50:18 +00:00
Orne Brocaar
56336fa685 Update dependencies. 2024-03-19 12:41:18 +00:00
Orne Brocaar
c426e48b8d Update dependencies + fix check / clippy feedback. 2024-03-19 12:15:48 +00:00
Orne Brocaar
a78bc226f6 Update redis crate.
This version solves inconsistent pipeline output types when using
multiplexed async connections.
2024-03-19 10:38:08 +00:00
Orne Brocaar
06bcca147c Update tonic. 2024-03-19 10:38:08 +00:00
Orne Brocaar
26cef0b2ca Update rustls / tls functions. 2024-03-19 10:38:08 +00:00
Orne Brocaar
8c875c3bf1 Bump version to 4.7.0 2024-03-13 10:44:21 +00:00
Orne Brocaar
519f53940e Bump version to 4.7.0-test.4 2024-02-27 16:48:40 +00:00
Orne Brocaar
098f8db4c6 Migrate device-sessions from Redis to PostgreSQL.
This migrates the device-sessions from Redis into PostgreSQL. This fixes
a performance issue in case the same DevAddr is reused many times
(e.g. devices rejoining very often or a NetID with small DevAddr space).

There were two issues:

The Redis key containing the DevAddr -> DevEUIs mapping could contain
DevEUIs that no longer used the DevAddr. This mapping would only expire
from the Redis database after none of the devices would use the DevAddr
for more than the configured device_session_ttl.

The other issue with the previous approach was that on for example a
Type 7 NetID, a single DevAddr could be re-used multiple times. As each
device-session could be stored on a different Redis Cluster instance,
there was no option to retrieve all device-sessions at once. Thus a high
re-usage of a single DevAddr would cause an increase in Redis queries.

Both issues are solved by moving the device-session into PostgreSQL
as the DevAddr is a column of the device record and thus filtering on
this DevAddr would always result in the devices using that DevAddr, as
well all device-sessions for a DevAddr can be retrieved by a single
query.

Note that to migrate the device-sessions, you must run:

chirpstack -c path/to/config migrate-device-sessions-to-postgres

A nice side-effect is that a PostgreSQL backup / restore will also
restore the device connectivity.

Closes #362 and #74.
2024-02-27 16:17:15 +00:00
dependabot[bot]
4ce886b21d
Bump unsafe-libyaml from 0.2.9 to 0.2.10 (#341)
Bumps [unsafe-libyaml](https://github.com/dtolnay/unsafe-libyaml) from 0.2.9 to 0.2.10.
- [Release notes](https://github.com/dtolnay/unsafe-libyaml/releases)
- [Commits](https://github.com/dtolnay/unsafe-libyaml/compare/0.2.9...0.2.10)

---
updated-dependencies:
- dependency-name: unsafe-libyaml
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-12 15:55:03 +00:00
Orne Brocaar
be26e60111 Bump version to 4.7.0-test.3 2024-01-12 09:19:50 +00:00
Orne Brocaar
e1334f647d Bump version to 4.7.0-test.2 2024-01-11 15:42:16 +00:00