dependabot[bot]
619b69f480
chore(deps): bump github.com/wcharczuk/go-chart/v2 from 2.1.0 to 2.1.1 ( #591 )
...
Bumps [github.com/wcharczuk/go-chart/v2](https://github.com/wcharczuk/go-chart ) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/wcharczuk/go-chart/releases )
- [Commits](https://github.com/wcharczuk/go-chart/compare/v2.1.0...v2.1.1 )
---
updated-dependencies:
- dependency-name: github.com/wcharczuk/go-chart/v2
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>
Co-authored-by: TwiN <twin@linux.com>
2023-10-17 19:46:01 -04:00
TwiN
87e029f555
ci: Increase timeout-minutes for test workflow to 10 minutes
2023-10-16 21:45:00 -04:00
TwiN
71c4d3ade1
ui: Use localStorage instead of sessionStorage for refresh interval + collapsed groups
...
Fixes #509
Supersedes #510
2023-10-16 21:35:43 -04:00
TwiN
315f9b7792
ui(settings): Fix refresh interval padding
2023-10-16 21:33:09 -04:00
dependabot[bot]
bde30b2efb
chore(deps): bump github.com/prometheus/client_golang from 1.16.0 to 1.17.0 ( #586 )
...
chore(deps): bump github.com/prometheus/client_golang
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.16.0 to 1.17.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.16.0...v1.17.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-11 18:38:05 -04:00
dependabot[bot]
88cb92745b
chore(deps): bump modernc.org/sqlite from 1.24.0 to 1.26.0 ( #585 )
...
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite ) from 1.24.0 to 1.26.0.
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.24.0...v1.26.0 )
---
updated-dependencies:
- dependency-name: modernc.org/sqlite
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TwiN <twin@linux.com>
2023-10-10 21:29:13 -04:00
Heitor
744d63abac
fix: Support hexadecimal integers in conditions ( #563 )
...
* Fix parsing hexadecimal integers in conditions
Remove the assumption that JSON contains only decimal integers and
instead identify the base from the prefix of the data.
`strconv.ParseInt` can identify the base of the integer based on its
"prefix":
- 0x -> hexadecimal
- 0o -> octal
- 0b -> binary
- decimal otherwise.
* core: add more tests for condiction.evaluate
* fix isEqual parsing integers as strings
* tests: extend conditions
* Test if we can compare equality of hex in JSON
* Test if we can have hex/oct/bin in conditions
---------
Co-authored-by: TwiN <twin@linux.com>
2023-10-04 20:25:18 -04:00
TwiN
c1cdf50851
chore(deps): Bump github.com/TwiN/whois to v1.1.7
...
Fixes 2bd268670f
2023-10-04 20:20:27 -04:00
TwiN
2bd268670f
chore(deps): Bump github.com/TwiN/whois to v1.1.7
...
relevant: #548
2023-10-04 20:17:37 -04:00
Max Partenfelder
e88bfa8518
fix(alerting): Add support for client.insecure in email alerting provider ( #583 )
...
* feat: adding client.insecure flag to email configuration
* chore(review): applying suggested changes
---------
Co-authored-by: TwiN <twin@linux.com>
2023-10-02 20:41:12 -04:00
dependabot[bot]
0fa3c5d114
chore(deps): bump github.com/gofiber/fiber/v2 from 2.46.0 to 2.49.2 ( #584 )
...
Bumps [github.com/gofiber/fiber/v2](https://github.com/gofiber/fiber ) from 2.46.0 to 2.49.2.
- [Release notes](https://github.com/gofiber/fiber/releases )
- [Commits](https://github.com/gofiber/fiber/compare/v2.46.0...v2.49.2 )
---
updated-dependencies:
- dependency-name: github.com/gofiber/fiber/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 20:23:16 -04:00
TwiN
0903d28b56
docs: Clean up list of sponsors
2023-09-30 12:06:43 -04:00
dependabot[bot]
b50f3f3646
chore(deps): bump docker/build-push-action from 4 to 5 ( #568 )
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 4 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TwiN <twin@linux.com>
2023-09-30 08:20:50 -04:00
dependabot[bot]
1b0dfdd09d
chore(deps): bump docker/setup-buildx-action from 2 to 3 ( #567 )
...
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action ) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases )
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TwiN <twin@linux.com>
2023-09-30 08:14:39 -04:00
dependabot[bot]
6d3468d81a
chore(deps): bump actions/checkout from 3 to 4 ( #560 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TwiN <twin@linux.com>
2023-09-30 08:06:35 -04:00
dependabot[bot]
200d007eca
chore(deps): bump github.com/miekg/dns from 1.1.55 to 1.1.56 ( #578 )
...
Bumps [github.com/miekg/dns](https://github.com/miekg/dns ) from 1.1.55 to 1.1.56.
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release )
- [Commits](https://github.com/miekg/dns/compare/v1.1.55...v1.1.56 )
---
updated-dependencies:
- dependency-name: github.com/miekg/dns
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>
Co-authored-by: TwiN <twin@linux.com>
2023-09-30 08:03:22 -04:00
wei
24c3a84db9
fix(alerting): add condition results to ntfy ( #582 )
2023-09-30 07:51:03 -04:00
TwiN
0402bdb774
refactor: Clean up code and improve test coverage
2023-09-28 18:35:18 -04:00
TwiN
c7af44bcb0
fix: Get rid of unnecessary new endpoint
2023-09-28 18:15:14 -04:00
dependabot[bot]
494a8594cc
chore(deps): bump docker/setup-qemu-action from 2 to 3 ( #569 )
...
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action ) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases )
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-23 17:46:23 -04:00
dependabot[bot]
81dd84e5f2
chore(deps): bump docker/login-action from 2 to 3 ( #570 )
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](https://github.com/docker/login-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-23 17:38:54 -04:00
Daniel Hill
aa7f8131cd
docs: demonstrate use of environment variables in config ( #571 )
...
* docs: demonstrate use of environment variables in config
* chore: reorder env vars to match order used in DB connection
2023-09-23 17:02:50 -04:00
dependabot[bot]
4dea597726
chore(deps): bump golang.org/x/net from 0.11.0 to 0.15.0 ( #562 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.11.0 to 0.15.0.
- [Commits](https://github.com/golang/net/compare/v0.11.0...v0.15.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TwiN <twin@linux.com>
2023-09-23 15:53:18 -04:00
TwiN
8df77b09ed
ci: Fix fork conditional ( #576 )
...
* ci: Fix fork conditional
* ci: Fix fork conditional
* ci: Fix fork conditional
2023-09-23 15:36:19 -04:00
TwiN
d2b274e609
ci: Tweak concurrency group key ( #575 )
...
* ci: Tweak concurrency group key
* ci: Tweak concurrency group key
2023-09-23 15:14:40 -04:00
TwiN
15c81f93d2
ci: Publish only if the workflow is not running on a fork ( #574 )
...
* ci: Publish only if the workflow is not running on a fork
Otherwise, the workflow will attempt to publish on forks from contributors that are using the master branch
2023-09-23 15:02:33 -04:00
Henry Barreto
05565e3d0a
feat(SSH): Add support for SSH endpoint ( #473 )
...
* feat(SSH): Add support for SSH endpoint
This commit adds support for SSH endpoint monitoring. Users can now configure an endpoint to be monitored using an SSH command by prefixing the endpoint's URL with ssh:\\. The configuration options for an SSH endpoint include the username, password, and command to be executed on the remote server. In addition, two placeholders are supported for SSH endpoints: [CONNECTED] and [STATUS].
This commit also updates the README to include instructions on how to configure SSH endpoints and the placeholders that can be used in their conditions. The README has been updated to include the new SSH-related options in the endpoints[] configuration object.
Here's a summary of the changes made in this commit:
Added support for SSH endpoint monitoring
Updated the documentation to include instructions on how to configure SSH endpoints and the placeholders that can be used in their conditions
2023-09-23 13:37:24 -04:00
lolgopher
8fbfba2163
fix(alerting): Set correct email subject to resolved alert ( #572 )
...
fix(alerting): Set correct email subject to resolved alert (#566 )
2023-09-21 21:36:42 -04:00
dependabot[bot]
0e9df7f00f
chore(deps): bump github.com/miekg/dns from 1.1.54 to 1.1.55 ( #545 )
...
Bumps [github.com/miekg/dns](https://github.com/miekg/dns ) from 1.1.54 to 1.1.55.
- [Changelog](https://github.com/miekg/dns/blob/master/Makefile.release )
- [Commits](https://github.com/miekg/dns/compare/v1.1.54...v1.1.55 )
---
updated-dependencies:
- dependency-name: github.com/miekg/dns
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>
2023-09-03 23:36:11 -04:00
Heitor
7d570ce148
websocket: handle error ( #550 )
...
Co-authored-by: TwiN <twin@linux.com>
2023-08-16 21:48:57 -04:00
plantatorbob
67941865db
fix(alerting): correct success threshold for telegram ( #551 )
...
Co-authored-by: dave <dave@pootis.network>
2023-08-16 21:15:32 -04:00
I-HSIN Cheng
5c5a954b68
fix(tls): Honor client.insecure when doing TLS checks ( #547 )
...
* fix(watchdog): Add functions to avoid dangling file descriptors
* Change function name and add comment under core/endpoint.go
- change the function name of CloseHTTPConnection() to Close()
- add some comments above Close() function
* Update core/endpoint.go
* Update core/endpoint.go
* fix(client): Honor client.insecure when doing TLS checking
* add features in client/client.go to enable client.insecure when doing TLS checking
---------
Co-authored-by: Richard Cheng <richard_cheng@trendmicro.com>
Co-authored-by: TwiN <twin@linux.com>
2023-08-08 22:17:26 -04:00
Heitor
5f69351b6b
feat: support monitoring WebSocket endpoints ( #511 )
...
* feat: support monitoring WebSocket endpoints
WebSocket endpoints are automatically identified by the URL protocol
specification: `wss://` or `ws://`. The request body is used as the
"message" written to the server, and the answer is stored in the
`[BODY]`.
Optionally, the user can set the `jsonrpc` flag to automatically wrap
the request body in a JSON RPC 2.0 method call.
* core:websocket: close connection after using it
* test: add tests related to WebSocket support
- test we can identify the endpoint type for WebSockets based on the URL
supplied: `wss://` (with SSL/TLS) and `ws://` (plain text).
- test we can generate a JsonRPC 2.0 message via the new endpoint flag
`JsonRPC`.
* core:endpoint: fix name of jsonrpc parameter
See https://en.wikipedia.org/wiki/JSON-RPC#Version_2.0
* core:websocket: fix dangling open connection on error
Move the `defer ws.Close()` to after opening the connection, so the
socket is closed also in case of errors.
* remove jsonrpc flag
* core:websocket: fix nil pointer dereference
The connection should only be closed if successfully opened.
* Move websocket function to client
* update go.mod
* Fix build errors
* Fix errors
* Update client/client.go
---------
Co-authored-by: TwiN <twin@linux.com>
2023-08-08 22:12:37 -04:00
I-HSIN Cheng
34313bec7e
fix(watchdog): Close dangling file descriptors on shutdown and config reload ( #544 )
...
* fix(watchdog): Add functions to avoid dangling file descriptors
* Change function name and add comment under core/endpoint.go
- change the function name of CloseHTTPConnection() to Close()
- add some comments above Close() function
* Update core/endpoint.go
* Update core/endpoint.go
---------
Co-authored-by: Richard Cheng <richard_cheng@trendmicro.com>
Co-authored-by: TwiN <twin@linux.com>
2023-08-04 18:30:15 -04:00
dependabot[bot]
640e455d33
chore(deps): bump github.com/prometheus-community/pro-bing from 0.2.0 to 0.3.0 ( #543 )
...
chore(deps): bump github.com/prometheus-community/pro-bing
Bumps [github.com/prometheus-community/pro-bing](https://github.com/prometheus-community/pro-bing ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/prometheus-community/pro-bing/releases )
- [Changelog](https://github.com/prometheus-community/pro-bing/blob/main/.goreleaser.yaml )
- [Commits](https://github.com/prometheus-community/pro-bing/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus-community/pro-bing
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-02 22:57:48 -04:00
dependabot[bot]
2be6a1e5f3
chore(deps): bump golang.org/x/crypto from 0.10.0 to 0.11.0 ( #542 )
...
Bumps [golang.org/x/crypto](https://github.com/golang/crypto ) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/crypto/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-31 23:46:39 -04:00
dependabot[bot]
225e6ac7ae
chore(deps): bump github.com/lib/pq from 1.10.7 to 1.10.9 ( #537 )
...
Bumps [github.com/lib/pq](https://github.com/lib/pq ) from 1.10.7 to 1.10.9.
- [Release notes](https://github.com/lib/pq/releases )
- [Commits](https://github.com/lib/pq/compare/v1.10.7...v1.10.9 )
---
updated-dependencies:
- dependency-name: github.com/lib/pq
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>
2023-07-28 22:03:36 -04:00
dependabot[bot]
87d9722621
chore(deps): bump modernc.org/sqlite from 1.23.1 to 1.24.0 ( #528 )
...
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite ) from 1.23.1 to 1.24.0.
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.23.1...v1.24.0 )
---
updated-dependencies:
- dependency-name: modernc.org/sqlite
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TwiN <twin@linux.com>
2023-07-25 18:56:48 -04:00
TwiN
fd17dcd204
fix(tls): Pass certificate and private key files to listener method ( #531 )
...
Fixes #530
2023-07-20 19:02:34 -04:00
TwiN
2f6b8f23f7
test(store): Make sure the write-through cache works
2023-07-19 23:07:42 -04:00
dependabot[bot]
0a37a61619
chore(deps): bump github.com/valyala/fasthttp from 1.47.0 to 1.48.0 ( #524 )
...
Bumps [github.com/valyala/fasthttp](https://github.com/valyala/fasthttp ) from 1.47.0 to 1.48.0.
- [Release notes](https://github.com/valyala/fasthttp/releases )
- [Commits](https://github.com/valyala/fasthttp/compare/v1.47.0...v1.48.0 )
---
updated-dependencies:
- dependency-name: github.com/valyala/fasthttp
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-18 21:35:16 -04:00
macmoritz
70f9f8738c
fix(ui): disable hover effects when not supported ( #514 )
...
* fix(mobile css): disable hover effects when not supported
* fix missing trailing comma in tailwind config
* make css hover fix static
* update static css
---------
Co-authored-by: TwiN <twin@linux.com>
2023-07-16 21:14:43 -04:00
dependabot[bot]
a725e7e770
chore(deps): bump github.com/TwiN/whois from 1.1.2 to 1.1.3
...
Bumps [github.com/TwiN/whois](https://github.com/TwiN/whois ) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/TwiN/whois/releases )
- [Commits](https://github.com/TwiN/whois/compare/v1.1.2...v1.1.3 )
---
updated-dependencies:
- dependency-name: github.com/TwiN/whois
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-13 23:22:08 -04:00
dependabot[bot]
fc29c45e5f
chore(deps): bump github.com/prometheus/client_golang
...
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang ) from 1.14.0 to 1.16.0.
- [Release notes](https://github.com/prometheus/client_golang/releases )
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prometheus/client_golang/compare/v1.14.0...v1.16.0 )
---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-12 21:35:28 -04:00
TwiN
6a8c308af7
fix(api): Define unprotected routes first
...
This is because fiber does not work the same way that mux did wrt groups (mux referred to them as subrouters).
I could not apply a middleware to a specific fiber Group due to the groups being prefix-based.
In other words, the only other way to apply middlewares to specific endpoints without changing the path is by applying the security middleware after the routes that did not need to be protected and before the routes that did need to be protected
2023-07-11 22:46:49 -04:00
TwiN
0e33556775
test(security): Make sure router behaves as intended when authn is required
2023-07-11 22:46:49 -04:00
TwiN
6bb65f4eec
feat(api): Migrate from gorilla/mux to fiber
...
Fixes #468
2023-07-11 22:46:49 -04:00
TwiN
9142ff837c
fix(ui): Only show loading icon on initial load and on page change
2023-07-08 17:36:12 -04:00
dependabot[bot]
11eb7fb02e
chore(deps): bump github.com/TwiN/whois from 1.1.1 to 1.1.2 ( #518 )
...
Bumps [github.com/TwiN/whois](https://github.com/TwiN/whois ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/TwiN/whois/releases )
- [Commits](https://github.com/TwiN/whois/compare/v1.1.1...v1.1.2 )
---
updated-dependencies:
- dependency-name: github.com/TwiN/whois
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>
2023-07-04 22:32:53 -04:00
dependabot[bot]
271b836160
chore(deps): bump modernc.org/sqlite from 1.23.0 to 1.23.1 ( #516 )
...
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite ) from 1.23.0 to 1.23.1.
- [Commits](https://gitlab.com/cznic/sqlite/compare/v1.23.0...v1.23.1 )
---
updated-dependencies:
- dependency-name: modernc.org/sqlite
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>
2023-07-03 22:38:58 -04:00