3
0

62 Commits

Author SHA1 Message Date
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
Denis Arh
045063dd03 Remove cli chat client 2018-08-05 22:14:45 +02:00
Denis Arh
8889716189 Add capability to terminate SAM server with CTRL+C 2018-08-05 22:14:45 +02:00
Tit Petric
8256270ed7 add(sam):, pprof, goroutine num in expvar 2018-08-03 20:48:46 +02:00
Tit Petric
dd2f377a48 upd(sam): update monitor, add new fields, restructure 2018-08-03 19:16:12 +02:00
Tit Petric
0dd0b44d96 add(sam): basic memory/goroutine monitor 2018-08-03 17:59:00 +02:00
Denis Arh
a5df66e5e1 Setting channel topic & renaming 2018-07-29 02:05:32 +02:00
Denis Arh
34bf58d5b1 Simplify outgoing message encoding with json.Marshaler 2018-07-29 01:03:44 +02:00
Denis Arh
ab8aaf619b Add simplistic cli chat helper 2018-07-28 17:50:02 +02:00
Denis Arh
c02fec809f Redo auth flags 2018-07-28 12:01:33 +02:00
Denis Arh
d886a98740 Implements JWT authorization along with some refactoring
- introduces auth package, for common (sam, crm) auth handlers
 - routes are now generated inside server package, each handler got its own MountRoutes(r chi.Router, middlewares ...func(http.Handler) http.Handler)
 - there MountRoute methods are now called from non-generated code so we can inject services to (rest) controllers
2018-07-26 20:12:14 +02:00
Tit Petric
5ad2b6af51 upd(sam): print route debug in main 2018-07-19 20:21:36 +02:00
Tit Petric
73c27f6bdd upd(sam main): pass flags in main, add ws routes 2018-07-19 20:21:18 +02:00
Tit Petric
4d67bd66b0 upd(flags): configure from main fn not flags.go 2018-07-19 20:20:43 +02:00