3
0

75 Commits

Author SHA1 Message Date
Denis Arh
6a73758d2c Refactored codegen tool 2020-08-24 15:38:42 +02:00
Denis Arh
f4e6d2ae5a Refactor bootstraping procedure 2020-08-24 15:38:42 +02:00
Denis Arh
29902db2b1 Refactor & improve application initialization 2020-01-18 07:05:10 +01:00
Denis Arh
acffdc1c65 Simplify/improve logging configuration 2019-07-09 17:47:58 +02:00
Denis Arh
60ad32e440 Add support for error (panic) reporting through Sentry 2019-07-03 16:35:06 +02:00
Denis Arh
22476933f4 Improve cli env setup & running 2019-05-26 08:41:20 +02:00
Denis Arh
5a9bce44e8 Cleanup internal, vendors, cleanup cmd/*
Introduces /pkg for non-intenral packages
2019-05-24 12:44:56 +02:00
Denis Arh
2a4054c9bc Implement permission provisioning and watchers
Remove rule reset from roles cli command
Add generic "provision" command for each binary and (re)set perm. rules
Permission rules are now separated and part of AccessControl service

Facility for watchers was added.
2019-05-10 09:49:07 +02:00
Denis Arh
970f545156 Move avail. route output to /routes endpoint 2019-05-07 21:18:23 +02:00
Denis Arh
aea9741a2b Improve logging, migrate to zap, use requestID
- migrate from log to go.uber.org/zap package
 - add requestID header with sticky log field
 - push logging via context to REST controllers & HTTP middleware
 - enhance request/resnpose logging
 - add service logging framework
 - add ZapProfiler for db query profiling
2019-05-07 21:18:23 +02:00
Denis Arh
010a1351ea Rename files & symbols 2019-04-29 18:51:18 +02:00
Denis Arh
d5c5c9ffae Fix broken monolith build entry point 2019-04-29 18:49:56 +02:00
Denis Arh
5be1b607f5 Add 'users jwt <email>' command
Command generates valid JWT for that user
2019-04-27 13:19:14 +02:00
Denis Arh
0d7c37e472 Fix system-cli flags usage 2019-04-19 13:24:24 +02:00
Denis Arh
11def550c6 Refactor JWT init flow 2019-04-18 19:55:37 +02:00
Denis Arh
b6f7d0e097 Refactoring, polishing system-cli entry path 2019-04-09 08:55:30 +02:00
Denis Arh
8c04cf3c8d CLI refactoring 2019-04-03 17:46:39 +02:00
Tit Petric
871b167b02 upd(cmd/crust): update webapp serving location 2019-04-03 13:37:02 +02:00
Tit Petric
46a0a9fe25 upd(all): ctx to database connector for ctrl+c 2019-04-03 13:33:14 +02:00
Mitja Zivkovic
cf4ccdd12d upd(system-cli): assign user to role 2019-03-21 15:08:33 +01:00
Mitja Zivkovic
62933676dd upd(system-cli): roles reset with spf13/cobra 2019-03-19 21:27:01 +01:00
Tit Petric
8a10839070 fix(all): better system Init, flags 2019-03-15 02:17:58 +01:00
Tit Petric
d934513dbd del(rbac): removed pdp implementation, closes #90 2019-03-14 23:02:19 +01:00
Tit Petric
61a27afba6 upd(all): database clients split by services 2019-03-14 22:29:19 +01:00
Tit Petric
f79e02903f add(crust): support assets loading for webapps 2019-03-14 22:29:19 +01:00
Tit Petric
718352d9d0 add(crust): import monolith entrypoint app 2019-03-14 22:29:19 +01:00
Tit Petric
f75b9cc4b6 del(all): drop unused dump.go 2019-03-14 22:29:19 +01:00
Denis Arh
93eb629d06 Refactor subscription checking, add interval checks (1/24h) 2019-03-11 11:46:29 +01:00
Denis Arh
9bed5005c6 Add permission checking capabilities, closes #43, #42, #44 2019-02-26 23:22:21 +01:00
Denis Arh
ccb3f957e7 Improved CLI for user handling 2019-02-06 05:37:38 +01:00
Tit Petric
087196f571 clean(all): gocritic warnings cleanup 2019-02-05 16:14:28 +01:00
Tit Petric
f10c3cfbe7 upd(all): s/sam/messaging, del: build-proto.sh 2019-02-05 15:51:15 +01:00
Tit Petric
3ff2e035ef upd(all): update cmd, add internal/mail to all 2019-02-05 15:25:16 +01:00
Tit Petric
e9609287a9 upd(messaging): update import paths 2019-02-05 15:15:08 +01:00
Denis Arh
c2ab709b8b Rename "sam" to "messaging" (docker image, cmd) 2019-02-04 10:16:31 +01:00
Denis Arh
c697c86ee5 Add system-cli and an user-merging tool 2019-02-04 10:15:38 +01:00
Denis Arh
500e8e317c Improve SMTP
API can now be started without properly configured SMTP (it complains when it is used)
Send() function can now use alternative dialers (mostly used for testing)
Added mailhog service (make mailhog.up) to ease mail testing
Add default .env example that points to localhost:1025 (mailhog) setup
Proper unit testing
2019-01-13 14:45:27 +01:00
Tit Petric
fdf24b3e2c Refactor for new system service
- upd(all): indent spec.json files on all apps
- upd(auth): rename auth app to cmd
- upd(sam): move orgs, teams to system
- upd(system): extend spec.json for check
- upd(codegen): include system/
- upd(codegen): always generate spec files
- upd(sam): references from auth to system
2018-11-05 12:04:04 +01:00
Tit Petric
adeefdbeaa fix(all):
- config fixes for singleton values (most)
- add monitor into internal/metrics
- clean up cmd folders to remove monitor
- implement versions on all apps
2018-10-26 11:20:15 +02:00
Denis Arh
602f77c2f1 Inject version & build-time info and show it on startup & on /version endpoint 2018-10-14 09:42:48 +02:00
Tit Petric
7bf78fb4e0 upd(all): refactor
- moved rbac store and config to internal pkg,
- split auth authenticators to internal pkg,
- add rbac config object to internal/config,
- update package imports and references for auth,
- clean up main with pkg aliases
2018-09-13 12:05:06 +02:00
Tit Petric
33bdf429a5 upd(sam): refactor pubsub to repository 2018-09-11 18:12:41 +02:00
Tit Petric
a23137c14e fix(auth): resolve error with double registering flags 2018-09-04 15:53:49 +02:00
Tit Petric
bdb0844a48 add(auth): separate webservice for auth 2018-09-04 15:37:43 +02:00
Tit Petric
16cc7a11f3 upd(all): restructure cmd, flags, startups 2018-08-23 11:15:23 +02:00
Tit Petric
4e710855b8 add(cmd/crm): import monitor 2018-08-21 13:02:45 +02:00
Tit Petric
7cd9f99be6 upd(cmd/crm): update with monitor, pprof 2018-08-21 13:02:30 +02:00
Tit Petric
466d90d523 upd(cmd/sam): register pprof after main routes 2018-08-21 13:02:06 +02:00
Tit Petric
0489373ca8 fix(sam): keep canonical sigctx 2018-08-15 14:04:29 +02:00
Denis Arh
baae815899 Implement event loop 2018-08-05 22:14:45 +02:00