Skip to content

Commit

Permalink
SSL validation (#45)
Browse files Browse the repository at this point in the history
* Split up events and their related methods

* Add a simple SSL validator

* Rename Event to MonitorEvent

* Initial SSL checker logic

* Fix issues after rebase

* Fix style issues

* Add missing assertion for HandlersInfoSource test

* Switch off communication logger in the test env

* Fix test scope descriptions in UptimeCheckerTest

* Add SSL_EVENT table to DatabaseCleaner

* Integrate SSL checks into MonitorController

* Fix error message string in SSLValidator

* Integrate SSL checks into scheduler and basic handlers

* Update API docs

* Use dedicated emoji for SSLValidEvent

* Improve existing tests

* Integrate SSL checks into SlackEventHandler

* Integrate SSL checks into TelegramEventHandler

* Extract formatting from TextMessageEventHandler

* Extract formatting from TextMessageEventHandler #2

* Restructure the whole text formatting logic

* Integrate SSL checks into SMTPEventHandler

* Update README

* Expose SSL related info on MonitorDetailsDto

* Add missing tests: UptimeEventRepository

* Add missing tests for formatters

* Update README
  • Loading branch information
adamkobor authored Sep 9, 2020
1 parent 3543bcc commit 50c0a58
Show file tree
Hide file tree
Showing 78 changed files with 4,572 additions and 526 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ Kuvasz (pronounce as [ˈkuvɒs]) is an ancient hungarian breed of livestock & gu
### Features

- Uptime & latency monitoring with a configurable interval
- SSL certification monitoring (once a day)
- Email notifications through SMTP
- Slack notifications through webhoooks
- Telegram notifications through the Bot API
- Configurable data retention period

### Under development 🚧

- SSL certification monitoring
- Regular Lighthouse audits for your websites
- Pagerduty, Opsgenie integration
- Kuvasz Dashboard, a standalone GUI
Expand Down
29 changes: 29 additions & 0 deletions docs/api-doc/kuvasz-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ components:
format: int32
enabled:
type: boolean
sslCheckEnabled:
type: boolean
createdAt:
type: string
format: date-time
Expand All @@ -292,9 +294,22 @@ components:
type: string
format: date-time
nullable: true
sslStatus:
$ref: '#/components/schemas/SslStatus'
sslStatusStartedAt:
type: string
format: date-time
nullable: true
lastSSLCheck:
type: string
format: date-time
nullable: true
uptimeError:
type: string
nullable: true
sslError:
type: string
nullable: true
averageLatencyInMs:
type: integer
format: int32
Expand All @@ -312,6 +327,12 @@ components:
enum:
- UP
- DOWN
SslStatus:
type: string
enum:
- VALID
- INVALID
- WILL_EXPIRE
ServiceError:
type: object
properties:
Expand Down Expand Up @@ -344,6 +365,8 @@ components:
updatedAt:
type: string
format: date-time
sslCheckEnabled:
type: boolean
MonitorCreateDto:
required:
- name
Expand All @@ -364,6 +387,9 @@ components:
enabled:
type: boolean
nullable: true
sslCheckEnabled:
type: boolean
nullable: true
MonitorUpdateDto:
type: object
properties:
Expand All @@ -382,6 +408,9 @@ components:
enabled:
type: boolean
nullable: true
sslCheckEnabled:
type: boolean
nullable: true
securitySchemes:
bearerAuth:
type: http
Expand Down
10 changes: 9 additions & 1 deletion src/jooq/java/com/kuvaszuptime/kuvasz/DefaultSchema.java

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

5 changes: 5 additions & 0 deletions src/jooq/java/com/kuvaszuptime/kuvasz/Indexes.java

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

10 changes: 10 additions & 0 deletions src/jooq/java/com/kuvaszuptime/kuvasz/Keys.java

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

5 changes: 5 additions & 0 deletions src/jooq/java/com/kuvaszuptime/kuvasz/Sequences.java

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

6 changes: 6 additions & 0 deletions src/jooq/java/com/kuvaszuptime/kuvasz/Tables.java

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

51 changes: 51 additions & 0 deletions src/jooq/java/com/kuvaszuptime/kuvasz/enums/SslStatus.java

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

15 changes: 10 additions & 5 deletions src/jooq/java/com/kuvaszuptime/kuvasz/tables/Monitor.java

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

Loading

0 comments on commit 50c0a58

Please sign in to comment.