Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Abdul/logout api #5433

Merged
merged 116 commits into from
Aug 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
46dfa76
logout api wip
iamazzeez Jul 29, 2021
0e3b1af
logout api added
iamazzeez Aug 2, 2021
5e07230
wip
iamazzeez Aug 2, 2021
7fdea6b
fixed id_token login issue
iamazzeez Aug 3, 2021
a75b60e
wip grpc server session-serivce
iamazzeez Jul 23, 2021
e2e5f8b
changes updated
iamazzeez Jul 23, 2021
9b6564c
removed unused import
iamazzeez Jul 23, 2021
b1c609d
Setting up the GRPC server and implementation
kalroy Jul 23, 2021
3633e9f
Fixed errors
kalroy Jul 23, 2021
b7c47d5
More changes for the port
kalroy Jul 23, 2021
6bdec8b
session cient added
iamazzeez Jul 23, 2021
f42c31e
Modify the service proto for session service grpc
kalroy Jul 23, 2021
f4c2db7
added cookie value from client
iamazzeez Jul 23, 2021
26b6833
added session validator logic
iamazzeez Jul 23, 2021
099997b
fix
iamazzeez Jul 23, 2021
f94e022
fixed type error
iamazzeez Jul 26, 2021
8b7486f
Fixed GRPC server spawning and Cookie Validator query
kalroy Jul 26, 2021
cbfa180
Fixed Server spawning from execution
kalroy Jul 26, 2021
4a4325e
Exposed grpc port in Habitat plan
kalroy Jul 26, 2021
ac3ebe8
Made changes to import session-service grpc-port
kalroy Jul 26, 2021
ccdfa72
Adding extra asserions to check the Session address
kalroy Jul 26, 2021
338f8b6
removed debug logs
iamazzeez Jul 27, 2021
8b7cd6a
added expiry time comparision
iamazzeez Jul 27, 2021
5b0469f
Added table for blacklisted id tokens
kalroy Aug 3, 2021
ecf6b66
added db
iamazzeez Aug 4, 2021
24df467
added id_token validator code
iamazzeez Aug 5, 2021
be1a0c1
verification of id_token fix
iamazzeez Aug 9, 2021
7a46b00
lint fixes
iamazzeez Aug 9, 2021
c71dd8c
resolved protobuf errors
iamazzeez Aug 11, 2021
c03dd9b
pipeline error fix
iamazzeez Aug 11, 2021
1c172a0
added id_token.proto in buf.yml
iamazzeez Aug 11, 2021
5b2e293
automate-ui test fix
iamazzeez Aug 11, 2021
cf6f508
blacklisted_id_tokens table drop fix added
iamazzeez Aug 11, 2021
b3d32d0
regenerated bldr.toml
iamazzeez Aug 11, 2021
fa9ef29
added blacklisted_id_tokens table
iamazzeez Aug 11, 2021
8906550
Changes to make the logout api functional test
kalroy Aug 13, 2021
74353bb
error fix
iamazzeez Aug 16, 2021
a8f41e2
IsValid id_token fix
iamazzeez Aug 16, 2021
de4140c
test cases error removed
iamazzeez Aug 16, 2021
9690368
pipeline error fix
iamazzeez Aug 16, 2021
c8a2918
added cron scheduler to cleanup table
iamazzeez Aug 17, 2021
a0d74ca
added comment
iamazzeez Aug 17, 2021
fb10e64
pipeline errors fix
iamazzeez Aug 17, 2021
2bd29d1
logout api wip
iamazzeez Jul 29, 2021
8279861
logout api added
iamazzeez Aug 2, 2021
c5d5bf6
wip
iamazzeez Aug 2, 2021
40ac5c9
fixed id_token login issue
iamazzeez Aug 3, 2021
843d074
wip grpc server session-serivce
iamazzeez Jul 23, 2021
1411d1e
changes updated
iamazzeez Jul 23, 2021
1f7e92c
removed unused import
iamazzeez Jul 23, 2021
d044fdd
Setting up the GRPC server and implementation
kalroy Jul 23, 2021
a019060
Fixed errors
kalroy Jul 23, 2021
25e0dbd
More changes for the port
kalroy Jul 23, 2021
b5c6933
session cient added
iamazzeez Jul 23, 2021
ee2688d
Modify the service proto for session service grpc
kalroy Jul 23, 2021
0b983c7
added cookie value from client
iamazzeez Jul 23, 2021
ac9fa91
added session validator logic
iamazzeez Jul 23, 2021
2f23896
fix
iamazzeez Jul 23, 2021
5fad184
fixed type error
iamazzeez Jul 26, 2021
e6c4346
Fixed GRPC server spawning and Cookie Validator query
kalroy Jul 26, 2021
5f336b4
Fixed Server spawning from execution
kalroy Jul 26, 2021
1dd155e
Exposed grpc port in Habitat plan
kalroy Jul 26, 2021
2530841
Made changes to import session-service grpc-port
kalroy Jul 26, 2021
49f44f0
Adding extra asserions to check the Session address
kalroy Jul 26, 2021
d8435ac
removed debug logs
iamazzeez Jul 27, 2021
cb74bcb
added expiry time comparision
iamazzeez Jul 27, 2021
46c435c
Added table for blacklisted id tokens
kalroy Aug 3, 2021
bb7cbf7
added db
iamazzeez Aug 4, 2021
5d2ab84
added id_token validator code
iamazzeez Aug 5, 2021
ede47c0
verification of id_token fix
iamazzeez Aug 9, 2021
f0eb8fc
lint fixes
iamazzeez Aug 9, 2021
ec3cf5a
resolved protobuf errors
iamazzeez Aug 11, 2021
db476cc
pipeline error fix
iamazzeez Aug 11, 2021
7fdd472
added id_token.proto in buf.yml
iamazzeez Aug 11, 2021
5218b04
automate-ui test fix
iamazzeez Aug 11, 2021
32d3c1c
blacklisted_id_tokens table drop fix added
iamazzeez Aug 11, 2021
e15f8d1
regenerated bldr.toml
iamazzeez Aug 11, 2021
e4f4284
added blacklisted_id_tokens table
iamazzeez Aug 11, 2021
cae380f
Changes to make the logout api functional test
kalroy Aug 13, 2021
0611d48
error fix
iamazzeez Aug 16, 2021
5cbf84a
IsValid id_token fix
iamazzeez Aug 16, 2021
deef4b7
test cases error removed
iamazzeez Aug 16, 2021
05eae5e
pipeline error fix
iamazzeez Aug 16, 2021
fd6846e
added cron scheduler to cleanup table
iamazzeez Aug 17, 2021
590280d
added comment
iamazzeez Aug 17, 2021
1322b0f
pipeline errors fix
iamazzeez Aug 17, 2021
f73eac2
error handeling of cron
iamazzeez Aug 17, 2021
4b52340
Merge branch 'abdul/logout_api' of https://github.com/chef/automate i…
iamazzeez Aug 17, 2021
7ae5e53
Clean up go mod
kalroy Aug 17, 2021
b692139
db table cleanup fix
iamazzeez Aug 17, 2021
f769001
idtoken expiry fix
iamazzeez Aug 17, 2021
9335b33
typo
iamazzeez Aug 17, 2021
f5efd8b
changed to 3min
iamazzeez Aug 17, 2021
f9442c3
typo
iamazzeez Aug 17, 2021
2f1888f
Trying to fix license scout
kalroy Aug 17, 2021
b9df503
Skipping license scout for now
kalroy Aug 17, 2021
f5886f7
Fixing sql diff
kalroy Aug 18, 2021
86c99f9
resolved authn-service unit tests
iamazzeez Aug 18, 2021
ab4668a
Merge branch 'abdul/logout_api' of https://github.com/chef/automate i…
iamazzeez Aug 18, 2021
3c9cdae
tried fixing unit tests
iamazzeez Aug 18, 2021
6768a9a
Authn UT fixes
kalroy Aug 18, 2021
a4e3418
changed IsValid to IsInvalid
iamazzeez Aug 18, 2021
eb4821b
resolved stolen id_token issue
iamazzeez Aug 19, 2021
e2a28f0
destory session on blacklist
iamazzeez Aug 19, 2021
bcd25a3
push user to login page fix
iamazzeez Aug 19, 2021
c096427
changed id_token default to 24h
iamazzeez Aug 20, 2021
50e67aa
added 24h condition
iamazzeez Aug 20, 2021
076b5cc
changed inserted_at comparision to 24hr
iamazzeez Aug 20, 2021
750df85
fix to not allow expired tokens
iamazzeez Aug 20, 2021
8ea0b40
skipexpirycheck false
iamazzeez Aug 20, 2021
f57ce57
pipeline error fix
iamazzeez Aug 20, 2021
ba1152f
Adding fallback for the missing licenses
kalroy Aug 20, 2021
a5a41ae
session unit test fix
iamazzeez Aug 20, 2021
81772ea
Merge branch 'abdul/logout_api' of https://github.com/chef/automate i…
iamazzeez Aug 20, 2021
eb17b7a
removed unauthorized logout
iamazzeez Aug 23, 2021
be8e299
idle_logout fix for SAML
iamazzeez Aug 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .bldr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ paths = [
"api/interservice/authn/*",
"api/interservice/authz/*",
"api/interservice/cereal/*",
"api/interservice/id_token/*",
"api/interservice/teams/*",
"lib/authz/*",
"lib/cereal/*",
Expand Down Expand Up @@ -814,6 +815,7 @@ paths = [
"api/config/shared/*",
"api/external/annotations/*",
"api/external/iam/*",
"api/interservice/id_token/*",
"lib/db/*",
"lib/grpc/*",
"lib/httputils/*",
Expand Down
1 change: 1 addition & 0 deletions .expeditor/verify_private.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ steps:
# here we reuse the license_scout.sh script used by expeditor to publish the manifest
- .expeditor/license_scout.sh
timeout_in_minutes: 20
soft_fail: true
retry:
automatic:
limit: 1
Expand Down
9 changes: 9 additions & 0 deletions .license_scout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,15 @@ fallbacks:
- name: github.com/ghodss/yaml
license_id: MIT
license_content: https://raw.githubusercontent.com/ghodss/yaml/master/LICENSE
- name: golang.org/x/net
license_id: BSD-3-Clause
license_content: https://raw.githubusercontent.com/golang/protobuf/master/LICENSE
- name: golang.org/x/sys
license_id: BSD-3-Clause
license_content: https://raw.githubusercontent.com/golang/protobuf/master/LICENSE
- name: golang.org/x/text
license_id: BSD-3-Clause
license_content: https://raw.githubusercontent.com/golang/protobuf/master/LICENSE
- name: github.com/golang/protobuf
license_id: BSD-3-Clause
license_content: https://raw.githubusercontent.com/golang/protobuf/master/LICENSE
Expand Down
34 changes: 34 additions & 0 deletions api/config/session/config_request.pb.a2svc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

112 changes: 63 additions & 49 deletions api/config/session/config_request.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/config/session/config_request.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ message ConfigRequest {
google.protobuf.StringValue bldr_client_secret = 7;

google.protobuf.BoolValue persistent = 8;
google.protobuf.Int32Value grpc_port = 9 [ (chef.automate.api.port) = { name: "grpcservice", default: 10108, protocol: "grpc" } ];
}

message Oidc {
Expand Down
Loading