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

Access token expired #128

Open
pinkerltm opened this issue Jul 5, 2021 · 0 comments
Open

Access token expired #128

pinkerltm opened this issue Jul 5, 2021 · 0 comments

Comments

@pinkerltm
Copy link

pinkerltm commented Jul 5, 2021

I am in a Kubernetes environment. PEPs are running as sidecar containers to the actual apps. So I definitely want to know whats going on and how I am able to manage it without killing the whole POD. Perhaps its also a bad idea to run PEP Proxy as a sidecar?

After quite a while know more and more PEPs show the following behaviour in their logfiles (the corresponding web sites/endpoints are not responsing):

2021-07-05T10:11:13.351  - INFO: IDM-Client - Checking token with IDM...
2021-07-05T10:11:13.387  - INFO: Root - Access-token OK. Redirecting to app...
Refused to set unsafe header "accept-encoding"
Refused to set unsafe header "te"
2021-07-05T10:11:13.390  - INFO: IDM-Client - Token in cache, checking timestamp...
2021-07-05T10:11:13.390  - INFO: IDM-Client - b45166432595c88e40a8403147b197b5a876a400
2021-07-05T10:11:13.391  - INFO: IDM-Client - Token in cache expired
2021-07-05T10:11:13.391  - INFO: IDM-Client - Checking token with IDM...
Refused to set unsafe header "accept-encoding"
2021-07-05T10:11:13.421  - INFO: Root - Access-token OK. Redirecting to app...
Refused to set unsafe header "te"
2021-07-05T10:11:13.629  - INFO: IDM-Client - Checking token with IDM...
2021-07-05T10:11:13.667  - ERROR: IDM-Client - Error in IDM communication  "Invalid token: access token has expired"
2021-07-05T10:11:13.667  - ERROR: Root - Invalid token: access token has expired
2021-07-05T10:11:20.752  - INFO: IDM-Client - Token in cache, checking timestamp...
2021-07-05T10:11:20.752  - INFO: IDM-Client - b45166432595c88e40a8403147b197b5a876a400
2021-07-05T10:11:20.752  - INFO: IDM-Client - Token in cache expired
2021-07-05T10:11:20.752  - INFO: IDM-Client - Checking token with IDM...
2021-07-05T10:11:20.778  - INFO: Root - Access-token OK. Redirecting to app...
Refused to set unsafe header "accept-encoding"
Refused to set unsafe header "te"
2021-07-05T10:11:28.711  - INFO: IDM-Client - Checking token with IDM...
2021-07-05T10:11:28.740  - ERROR: IDM-Client - Error in IDM communication  "Invalid token: access token has expired"
2021-07-05T10:11:28.740  - ERROR: Root - Invalid token: access token has expired

I understand, that this refers to the access token between PEP and IdM, which seems to expire after quite a while (?). If this is the case, how am I able to refresh this without killing the whole system and redeploy it again? Who is responsible for refreshing these tokens and which features are the running services providing to enable this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant