fabric8-services / fabric8-auth

Identity and Access Management for fabric8 services
https://auth.openshift.io/api/status
Apache License 2.0
14 stars 26 forks source link

feat(775): obfuscate and deactive user at service layer #781

Closed xcoulon closed 5 years ago

xcoulon commented 5 years ago

Added a new Active field on the User type (with an associated column in the DB with default value 'true')

Obfuscate all personal data in the user and identity records, and mark the user as active=false.

Fixes #775

codecov[bot] commented 5 years ago

Codecov Report

Merging #781 into master will increase coverage by 0.69%. The diff coverage is 80.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #781      +/-   ##
==========================================
+ Coverage   78.76%   79.45%   +0.69%     
==========================================
  Files          95       95              
  Lines        8816     9060     +244     
==========================================
+ Hits         6944     7199     +255     
+ Misses       1378     1367      -11     
  Partials      494      494
Impacted Files Coverage Δ
authentication/account/repository/user.go 84.88% <ø> (ø) :arrow_up:
migration/migration.go 65.66% <100%> (+0.2%) :arrow_up:
authentication/account/service/user.go 85.71% <80%> (-2.1%) :arrow_down:
goamiddleware/jwt_token_context.go 83.33% <0%> (-2.39%) :arrow_down:
authorization/token/token.go 100% <0%> (ø) :arrow_up:
controller/user.go 90% <0%> (+0.9%) :arrow_up:
authorization/token/repository/token.go 72.36% <0%> (+1.31%) :arrow_up:
controller/users.go 79.69% <0%> (+3.77%) :arrow_up:
authorization/token/service/token_service.go 80% <0%> (+6.25%) :arrow_up:
authentication/logout/service/logout_service.go 63.23% <0%> (+9.53%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 227b4f6...a36d86b. Read the comment docs.