3
0
Commit Graph

27 Commits

Author SHA1 Message Date
Denis Arh
42e456cc66 Apply style to auth notification emails
Added command for system-cli for auth notification testing:
> ./system-cli auth test-notifications your@email.tld

This send all (both) notification emails to specified receipient
2019-05-13 19:43:26 +02:00
Denis Arh
9d8049cf45 Rename cli command "external-auth" to "auth", move jwt subcmd 2019-05-13 19:30:03 +02:00
Denis Arh
70dcc3300a CLI JWT generator now adds roles/memberOf claim 2019-05-13 13:23:57 +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
ac817a3e69 Cleaner params handling for users jwt cmd 2019-05-08 10:44:45 +02:00
Denis Arh
87b883b388 Extend repo error, Redo error checking in auth flow 2019-05-08 10:00:29 +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
5bfbab6a4e Implement namespace CRUD + various small fixes
Other fixes and improvements:
 - add parseISODateWithErr and parseISODatePtrWithErr handlers for incoming data
 - add service & repository errors
 - cleanup old (unbound) attachment controllers from router
 - fix system repository error prefix (auth => system)
2019-04-29 18:51:18 +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
6d607f52ac Update auth help/instructions 2019-04-24 19:04:50 +02:00
Denis Arh
91d98f9faf Add system:application permission rules to reset procedure 2019-04-19 13:24:44 +02:00
Denis Arh
c4104488e5 More strict ext-auth protocols, remove jwt cookie + small fixes 2019-04-18 19:53:02 +02:00
Denis Arh
4c4445d2a2 Code cleanup, settings tweaking 2019-04-09 21:37:14 +02:00
Denis Arh
dd5a2832d0 REST endpoints for /auth/internal 2019-04-09 08:58:31 +02:00
Denis Arh
1912cd7cf4 Improve system-cli "users" command, add password change 2019-04-09 08:58:31 +02:00
Denis Arh
d18473568e Basic credentials set/check 2019-04-09 08:58:31 +02:00
Denis Arh
b6f7d0e097 Refactoring, polishing system-cli entry path 2019-04-09 08:55:30 +02:00
Denis Arh
14452b0ea5 Refactor CLI functions; unify func signature 2019-04-04 00:11:29 +02:00
Denis Arh
5bdee34903 Refactor "users" CLI command 2019-04-04 00:00:58 +02:00
Denis Arh
32e2069c45 Refactor "roles" CLI command 2019-04-04 00:00:39 +02:00
Denis Arh
375e155f9c Refactor CLI commands exit() helper 2019-04-03 23:14:20 +02:00
Denis Arh
6719d2cdf8 Move role/rule reset code out of repository to CLI command 2019-04-03 23:09:34 +02:00
Denis Arh
d5212f267c Refactor credentials, migrate to /auth/external/ (from /social) 2019-04-03 18:07:14 +02:00
Denis Arh
b84ed43f27 Refactored settings 2019-04-03 17:46:39 +02:00
Denis Arh
8c04cf3c8d CLI refactoring 2019-04-03 17:46:39 +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