Commit Graph

198 Commits

Author SHA1 Message Date
Karol Wypchlo c241178a4c use entry.checks 2021-06-16 12:09:56 +02:00
Karol Wypchlo 00a3321009 log checks on failure 2021-06-16 12:07:51 +02:00
Karol Wypchlo 17dca691a4 health-check: change exit code on failure 2021-06-16 11:38:59 +02:00
Karol Wypchlo 4438d13ab4 env variables are strings, fix conditions 2021-05-31 10:00:54 +02:00
Karol Wypchlo ce8fcf4656 use dnsmasq for aliasing siasky.net and all the subdomains 2021-05-25 16:12:04 +02:00
Karol Wypchlo 0a5b6bbe70 add more comments 2021-05-24 17:30:29 +02:00
Karol Wypchlo 6649726598 move crontab fill on top 2021-05-24 17:13:29 +02:00
Karol Wypchlo 838d82c3b5 redirect to /login 2021-05-24 17:12:16 +02:00
Karol Wypchlo 175ee075c7 fix comments and add new account test 2021-05-24 17:07:37 +02:00
Karol Wypchlo a2f7b7581a fix argument list 2021-05-24 16:47:39 +02:00
Karol Wypchlo 02e0e45bc4 add new critical checks 2021-05-24 16:36:26 +02:00
Karol Wypchlo 0dce2218d2 upgrade node 2021-05-13 12:30:35 +02:00
Karol Wypchlo 05525e65d6 add skynet-js as dependency to health-check 2021-05-12 17:56:50 +02:00
Karol Wypchlo efae46f339 amend health-checks to include get call for metadata 2021-05-12 17:49:25 +02:00
Karol Wypchło 08652a4698
Merge pull request #707 from SkynetLabs/dependabot/npm_and_yarn/packages/health-check/form-data-4.0.0
Bump form-data from 3.0.1 to 4.0.0 in /packages/health-check
2021-05-10 19:13:00 +02:00
dependabot[bot] 8f55c9a239
Bump yargs from 16.2.0 to 17.0.1 in /packages/health-check
Bumps [yargs](https://github.com/yargs/yargs) from 16.2.0 to 17.0.1.
- [Release notes](https://github.com/yargs/yargs/releases)
- [Changelog](https://github.com/yargs/yargs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs/compare/v16.2.0...v17.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-10 11:43:32 +00:00
Karol Wypchło 0c0be50e89
accounts health checks and testing improvements (#717)
* add account health check

* circular dep resolution

* error cannot be undefined
2021-05-05 14:18:10 +02:00
dependabot[bot] 62ae914f44
Bump form-data from 3.0.1 to 4.0.0 in /packages/health-check
Bumps [form-data](https://github.com/form-data/form-data) from 3.0.1 to 4.0.0.
- [Release notes](https://github.com/form-data/form-data/releases)
- [Commits](https://github.com/form-data/form-data/compare/v3.0.1...v4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-03 10:58:49 +00:00
Karol Wypchlo 2a4b5f7a07 remove random image check that fails strict validation - weird upload 2021-04-30 16:22:57 +02:00
Karol Wypchlo 6eda287ec4 restore health checks to once per 5 minutes and once per hour for extended 2021-04-30 11:12:41 +02:00
Karol Wypchlo 23646e9969 upgrade node docker image to 16.0.0 2021-04-29 17:57:32 +02:00
Karol Wypchlo 893b424c59 fix dockerfile 2021-04-29 17:21:56 +02:00
Karol Wypchlo 7eb6d15d4b fixed errorMessage reporting 2021-04-29 16:59:05 +02:00
Karol Wypchlo 7fab576e6a atomic writes 2021-04-29 16:56:53 +02:00
Karol Wypchlo 4a52b8de99 add logging 2021-04-29 16:45:57 +02:00
Karol Wypchlo bdd0b8d6c6 drop superagent 2021-04-29 16:43:17 +02:00
Karol Wypchlo 193d12b6a3 pass output to docker logs 2021-04-29 13:56:00 +02:00
Karol Wypchlo cd7dac5b7e verbose => extended 2021-04-29 13:43:40 +02:00
Karol Wypchło 209a12ccad remove unused line 2021-04-29 13:29:11 +02:00
Karol Wypchlo cedef4f1bb improve health checks 2021-04-29 13:29:10 +02:00
Karol Wypchlo 568a032d84 remove body parser 2021-04-16 12:10:16 +02:00
Karol Wypchlo 987fa62c67 upgrade node to 15.14.0 2021-04-08 11:12:23 +02:00
Karol Wypchło fede204c6b
Accounts (#554)
* stripe env

* stripe env

* stripe env

* allow post

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* accounts/**

* favicon

* foo

* foo

* foo

* foo

* foo

* foo

* title

* fix dashboard timestamp

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* prices

* Revert "prices"

This reverts commit 7071ed4ef4.

* Make sure we don't accidentally commit `kratos.yml`.

* Add Oathkeeper access rules for Stripe.

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* Add `max_breaches` to Kratos's sample config file.

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* payments

* cache .next folder

* Use own fork of Kratos's `master` in order to get the fix for the migrations issue.

* Don't retry running Kratos migrations.

* payments

* restart: no

* no

* no

* no

* no

* no

* no

* no

* no

* no

* payments

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* accounts

* limits

* limits

* nginx depends on accounts and kratos-migrate depends on cockroach.

* upload limit rate

* upload limit rate - 2

* upload limit rate - 3

* upload limit rate - 4

* upload limit rate - 5

* upload limit rate - 6

* upload limit rate - 7

* upload limit rate - 8

* upload limit rate - 9

* forgotten password link

* use header for skylink

* use header for skylink

* use header for skylink

* use header for skylink

* use header for skylink

* use header for skylink

* use header for skylink

* use header for skylink

* copy to clipboard

* fix ratelimit issue

* Allow access to the stripe webhook.

* enable allow_promotion_codes

* Allow POST on webhook.

* Add all env vars accounts need to docker-compose.

* Don't use custom port for accounts.

* print recovery

* recovery sign up link

* refactor cors header response

* refactor cors header response

* do not log unauthorized

* fix registration link

* settings logging

* update node and tailwindcss

* move webapp from volume

* host 0.0.0.0

* refactor dockerfile

* enable accounts

* cache public

* uncache public

* remove cache control

* no-cache

* no cache

* Do not use the person's name for registration.

* add verify route

* add verify route

* add verify route

* Go back to using the stock kratos image.

* add verify route

* fix settings link

* clean up verify flow

* refactor Dockerfile

* Remove first and last name from used traits.

* Remove account verification via email.

* Allow additional properties.

* Cookies and tokens last for 30 days now.

* Rename secure.siasky.net to account.siasky.net.

* redirect secure to account

Co-authored-by: Ivaylo Novakov <inovakov@gmail.com>
Co-authored-by: Ivaylo Novakov <ro-tex@users.noreply.github.com>
2021-04-01 15:15:37 +02:00
Karol Wypchlo a195a36bd4 update libraries 2021-03-11 12:08:16 +01:00
Karol Wypchlo e91d0cb78c upgrade to node 15.8.0 2021-02-09 11:28:15 +01:00
Karol Wypchlo 2c1ccd0557 prune state.json 2021-01-29 23:17:43 +01:00
Karol Wypchlo 2d91181843 add uncensored files checks 2021-01-29 11:31:16 +01:00
Karol Wypchlo edb7ca9404 update uncensored library skylink test 2021-01-29 11:16:26 +01:00
Karol Wypchlo a002b21dac add handshake redirect test 2021-01-27 15:11:03 +01:00
Karol Wypchlo 2f1ec00e29 fix code style 2021-01-26 17:00:13 +01:00
Karol Wypchlo 65fd16392f run crond in prod mode 2021-01-26 12:48:45 +01:00
Karol Wypchlo 7b6bf6664f fix health-check for upload 2021-01-26 12:44:34 +01:00
Karol Wypchlo 8a44499ceb replace cronjs with crontab 2021-01-26 12:18:40 +01:00
Karol Wypchlo 127483f823 fix issue with health-checks 2021-01-23 18:59:03 +01:00
Karol Wypchlo ae3df177cb improve health checks 2021-01-23 17:45:31 +01:00
Karol Wypchlo c7cfff728d comment out uniswap links from health-check 2020-11-18 16:08:03 +01:00
Karol Wypchlo 0cce11ddd4 rename description to name to fix the logs 2020-11-03 19:39:14 +01:00
Karol Wypchlo 61d7df781f update node to 14.15.0 2020-10-30 10:25:37 +01:00
Karol Wypchlo 2e74aea8dd update node docker image 2020-10-13 14:33:47 +02:00
Karol Wypchlo 7037700ad3 replace node-schedule with cron to fix cpu usage spikes 2020-10-13 12:26:19 +02:00
Karol Wypchlo 6228671048 add a undefined JSON replacer for diff 2020-10-10 16:04:13 +02:00
Karol Wypchło e58752571e
add response content to health check failures (#437) 2020-09-30 16:20:55 +02:00
Karol Wypchlo 83ec608dfb update node docker to 14.11.0 2020-09-29 12:48:45 +02:00
Karol Wypchlo 745e9b0add prettier --write 2020-09-18 16:59:46 +02:00
Karol Wypchlo 392cde2464 update db before reading it in api 2020-09-18 13:40:14 +02:00
Karol Wypchlo c561f3e568 fix require paths 2020-09-18 12:40:49 +02:00
Karol Wypchlo 7335dd4dbf Merge remote-tracking branch 'origin/master' into sevey/add-skapps-to-health-checl 2020-09-18 12:22:05 +02:00
Karol Wypchlo c42b85fc14 run prettier on README files 2020-09-15 17:12:48 +02:00
Karol Wypchło d90b718787
Create README.md 2020-09-14 14:27:49 +02:00
Matthew Sevey 781e71464d Merge branch 'master' into sevey/add-skapps-to-health-checl 2020-09-11 11:35:48 -04:00
Karol Wypchlo cd051c45f2 reorder 2020-09-11 11:29:08 +02:00
Karol Wypchlo 20362fe7c5 fix health checks 2020-09-10 15:16:31 +02:00
Karol Wypchlo 2e240e2819 simplify values assignment 2020-09-10 14:13:28 +02:00
Karol Wypchlo 394ae44aa9 rename getCurrent -> getMostRecent 2020-09-10 14:07:24 +02:00
Karol Wypchlo 70fd6b0f8f typo 2020-09-10 14:05:21 +02:00
Karol Wypchlo 6e0f387cf1 code review changes 2020-09-10 14:03:56 +02:00
Karol Wypchło ec4655f581
Apply suggestions from code review
Co-authored-by: Ivaylo Novakov <ro-tex@users.noreply.github.com>
2020-09-10 13:49:26 +02:00
Karol Wypchlo c08d53f6e0 drop critical: true from existing checks 2020-09-10 12:42:37 +02:00
Karol Wypchlo 307d736a69 restructure health-check architecture 2020-09-10 12:15:54 +02:00
Karol Wypchlo 64cd7b135c fix health-check dockerfile 2020-09-09 16:08:10 +02:00
Karol Wypchlo 19b8caf81a fixed code review issues 2020-09-09 14:53:05 +02:00
Karol Wypchlo ca73a2f61f improve health checks 2020-09-09 14:25:00 +02:00
Matthew Sevey 9874eb29d8 update use of fixtures 2020-09-04 15:57:08 -04:00
Karol Wypchlo 559960645e fix docker build 2020-09-03 19:19:40 +02:00
Matthew Sevey 0f84fb645d Create fixtures directory and move large metadata to individual json files 2020-09-02 16:19:43 -04:00
Matthew Sevey 58d807dfc6 refactor skygallery metadata and body hash 2020-08-31 15:59:24 -04:00
Matthew Sevey 58d7f395d5 Add Skapps to health check by setting the max http header size 2020-08-31 15:46:42 -04:00
Matthew Sevey 29362649af healthcheck: add uncensored library skylinks to health check 2020-08-26 15:49:40 -04:00
Karol Wypchlo 062cc12a7d make it once per hour 2020-08-26 17:17:33 +02:00
Karol Wypchlo 4eec295035 parse 2020-08-26 17:14:23 +02:00
Karol Wypchlo 913b2dbb15 compare metdata objects 2020-08-26 17:08:52 +02:00
Karol Wypchlo 94154924a1 log metadata 2020-08-26 16:52:23 +02:00
Karol Wypchlo 53b3933bee info should be an object 2020-08-26 16:47:53 +02:00
Karol Wypchlo 9ad39482ad info should be an object 2020-08-26 16:45:25 +02:00
Matthew Sevey f201f9c4b4 add info field and set verbose checks to critical 2020-08-26 10:32:39 -04:00
Karol Wypchlo 843fcfde97 every 5 minutes for debugging 2020-08-26 16:06:45 +02:00
Karol Wypchlo 7e90b6f4dd fix http-status-codes usage 2020-08-26 16:06:12 +02:00
Karol Wypchlo 5ceba4e0cf drop unnecessary dep 2020-08-26 15:57:13 +02:00
Karol Wypchlo cb8a521ba7 missing object-hash dep 2020-08-26 15:56:12 +02:00
Karol Wypchło 401c592e56
Update packages/health-check/src/schedule.js 2020-08-26 14:11:26 +02:00
Matthew Sevey bcab934a97 Merge branch 'master' into sevey/health-check-additions 2020-08-25 11:26:31 -04:00
Karol Wypchlo 3190d6a4e4 update http-status-codes 2020-08-25 17:17:11 +02:00
Matthew Sevey 3f406f962c update cron schedule and const definitions 2020-08-25 11:15:25 -04:00
dependabot[bot] 4451a6d9ea
Bump http-status-codes from 1.4.0 to 2.1.2 in /packages/health-check
Bumps [http-status-codes](https://github.com/prettymuchbryce/node-http-status) from 1.4.0 to 2.1.2.
- [Release notes](https://github.com/prettymuchbryce/node-http-status/releases)
- [Commits](https://github.com/prettymuchbryce/node-http-status/compare/v1.4.0...2.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-25 15:09:05 +00:00
Matthew Sevey 37b07c642b Merge branch 'master' into sevey/health-check-additions 2020-08-20 14:07:12 -04:00
dependabot[bot] c57960b3a3
Bump superagent from 5.3.1 to 6.0.0 in /packages/health-check
Bumps [superagent](https://github.com/visionmedia/superagent) from 5.3.1 to 6.0.0.
- [Release notes](https://github.com/visionmedia/superagent/releases)
- [Changelog](https://github.com/visionmedia/superagent/blob/master/HISTORY.md)
- [Commits](https://github.com/visionmedia/superagent/compare/v5.3.1...v6.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-18 16:10:09 +00:00
Karol Wypchlo 0a5f51d988 fix merge conflicts resolution errors 2020-08-18 11:11:10 +02:00
Karol Wypchlo 30dbb8ced5 migrate to yarn workspaces 2020-07-31 00:50:42 +02:00