Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL validation #45

Merged
merged 27 commits into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6114e65
Split up events and their related methods
Aug 31, 2020
1f08341
Add a simple SSL validator
Sep 1, 2020
7b7e2c7
Rename Event to MonitorEvent
Sep 1, 2020
84661ca
Initial SSL checker logic
Sep 2, 2020
d1bd392
Fix issues after rebase
adamkobor Sep 2, 2020
ec901c3
Fix style issues
adamkobor Sep 2, 2020
7304e3f
Add missing assertion for HandlersInfoSource test
adamkobor Sep 5, 2020
bd16eb0
Switch off communication logger in the test env
adamkobor Sep 5, 2020
57918e5
Fix test scope descriptions in UptimeCheckerTest
adamkobor Sep 5, 2020
8795543
Add SSL_EVENT table to DatabaseCleaner
adamkobor Sep 5, 2020
3bc057c
Integrate SSL checks into MonitorController
adamkobor Sep 5, 2020
ce143fc
Fix error message string in SSLValidator
adamkobor Sep 5, 2020
69d6f48
Integrate SSL checks into scheduler and basic handlers
adamkobor Sep 5, 2020
ae253f9
Update API docs
adamkobor Sep 6, 2020
409bfef
Use dedicated emoji for SSLValidEvent
adamkobor Sep 6, 2020
8a07251
Improve existing tests
adamkobor Sep 6, 2020
5b0ef60
Integrate SSL checks into SlackEventHandler
adamkobor Sep 6, 2020
4337a84
Integrate SSL checks into TelegramEventHandler
adamkobor Sep 8, 2020
91adf8e
Extract formatting from TextMessageEventHandler
adamkobor Sep 8, 2020
7669ef6
Extract formatting from TextMessageEventHandler #2
adamkobor Sep 8, 2020
35e6458
Restructure the whole text formatting logic
adamkobor Sep 9, 2020
e56ca1c
Integrate SSL checks into SMTPEventHandler
adamkobor Sep 9, 2020
5707078
Update README
adamkobor Sep 9, 2020
dcb913f
Expose SSL related info on MonitorDetailsDto
adamkobor Sep 9, 2020
8cff044
Add missing tests: UptimeEventRepository
adamkobor Sep 9, 2020
5f91516
Add missing tests for formatters
adamkobor Sep 9, 2020
3936855
Update README
adamkobor Sep 9, 2020
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
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