Tit Petric
4a6798ea3f
upd(internal/http): perform internal test for http client
...
Signed-off-by: Tit Petric <black@scene-si.org >
2019-05-19 14:41:15 +02:00
Denis Arh
0baf38fdb5
Protect record values on non-updatable fields
2019-05-16 11:31:41 +02:00
Denis Arh
7468f0a855
Refactor permission whitelist to maintain stable sort order
2019-05-15 21:16:13 +02:00
Denis Arh
669820cdde
Add permission.Whitelist Flatten() func
...
It generates json-rest friendly structure
2019-05-15 11:14:21 +02:00
Denis Arh
cc89435b9d
Improve permission rules flush procedure
2019-05-15 11:13:38 +02:00
Denis Arh
c15eb72b06
Cleanup testing procedures
...
- remove "unit" build flag
- make sure tests without build flag (integration, external) run
without deps
- move unit-tests step in front of "docker image build" drone pipeline
2019-05-14 14:51:57 +02:00
Denis Arh
6a5e5dead2
Fix auth flow, allow case with missing JWT
2019-05-13 18:29:34 +02:00
Denis Arh
e5d5cc16ad
Remove obsolete code, placeholders
2019-05-13 13:23:19 +02:00
Denis Arh
b0b7c7d391
Allow HTTP requests to insecure servers
...
With SYSTEM_HTTP_CLIENT_TSL_INSECURE we reconfigure DefaultTransport and allow requests to insecure
hosts. This has direct effect on OIDC autodiscovery.
2019-05-13 09:36:33 +02:00
Denis Arh
2ad7b466f1
Refactor JWT/ctx, include role membership
2019-05-12 23:40:39 +02:00
Denis Arh
d3f7335e25
Fix tests, add temp testing workarounds, permissiong service mocks
2019-05-10 13:05:47 +02:00
Denis Arh
9e043b34fd
Resource/operation combo whitelist (refactored validation)
2019-05-10 11:33:32 +02:00
Denis Arh
f113439d23
Implement permission rule storage and watcher
...
Plus some additional naming changes (value => access)
2019-05-10 09:44:25 +02:00
Denis Arh
4dece123a5
Refactor all services & controllers and implement new a/c pattern
2019-05-09 16:55:18 +02:00
Denis Arh
087ba7c92d
Permission rules refactored
2019-05-08 18:02:46 +02:00
Denis Arh
6e00826dc8
Rename json names for ID props
2019-05-08 11:23:11 +02:00
Denis Arh
f7905bcf37
Fix & improve remote address handling (on req. log)
2019-05-07 23:09:16 +02:00
Denis Arh
970f545156
Move avail. route output to /routes endpoint
2019-05-07 21:18:23 +02:00
Denis Arh
6e8fbe8935
Port monitor log to zap logger
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
f557247cde
Extend default JWT lifetime to 30 days
2019-05-06 08:02:37 +02:00
Denis Arh
1ce5b355ae
Improves presence/activity handling over websocket
2019-04-27 14:20:33 +02:00
Denis Arh
980b6d581c
Refactor JWT encoder/handler
...
Handler is no longer passed as argument into routes etc but initialized in the Init()
and stored into auth.DefaultJwtHandler.
2019-04-27 13:17:37 +02:00
Tit Petric
2952cebb62
upd(internal): encode ChannelID as string
2019-04-26 18:37:56 +02:00
Denis Arh
dc2dd4c787
Add missing userID field to output payload
2019-04-26 17:15:23 +02:00
Denis Arh
3026a594ed
Decupling system & messaging, removing Organisation type mess
2019-04-26 14:37:23 +02:00
Denis Arh
bc181ee9a2
User list is no longer sent on ws connect
2019-04-26 13:51:23 +02:00
Denis Arh
b0239761f7
User/chan/messaging activity refactored
2019-04-26 13:34:35 +02:00
Denis Arh
d533cca1d5
Move message filtering to /search endpoint
2019-04-26 09:34:23 +02:00
Denis Arh
ed078ce456
Move cmd execution to REST endpoint, remove /echo, add /me
2019-04-26 07:18:18 +02:00
Denis Arh
2132d1fdca
Add url/param signing capapbilities to support access to attachments
2019-04-25 18:24:41 +02:00
Denis Arh
11def550c6
Refactor JWT init flow
2019-04-18 19:55:37 +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
d18473568e
Basic credentials set/check
2019-04-09 08:58:31 +02:00
Denis Arh
68538e93a2
Make db connect faster (remove initial delay) and more robust
2019-04-09 08:56:05 +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
ee4b66e53d
Fix makefile, add updated mockfiles
...
Remove `make test`, we do not want it to test codegen files
Add make `test.internal`
2019-04-03 18:09:13 +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
Tit Petric
3f24e99ba3
fix(internal): test suite updates
2019-04-03 13:50:15 +02:00
Tit Petric
272593329a
add(internal): store file upload utilities
2019-04-03 13:49:57 +02:00
Tit Petric
439100f53e
add(internal): http client import
2019-04-03 13:49:40 +02:00
Tit Petric
7ea763373e
upd(internal): return Allow for testing context
2019-04-03 13:47:33 +02:00
Tit Petric
46a0a9fe25
upd(all): ctx to database connector for ctrl+c
2019-04-03 13:33:14 +02:00
Tit Petric
1fae71c5b7
upd(internal): regenerate resources mocks
2019-03-21 15:13:22 +01:00
Denis Arh
78763c715d
Refactor permission resources
2019-03-16 23:56:45 +01:00
Tit Petric
22e88c1698
fix(system): fix tests in system, closes #67
2019-03-15 01:50:29 +01:00
Tit Petric
e8d2be4968
upd(all): update mocks
2019-03-15 00:31:25 +01:00
Tit Petric
a8c5cc227d
upd(internal): remove unused operations and scope
2019-03-14 23:45:48 +01:00
Tit Petric
d934513dbd
del(rbac): removed pdp implementation, closes #90
2019-03-14 23:02:19 +01:00