SV-257544r1015796_rule
V-257544
SRG-APP-000190-CTR-000500
CNTR-OS-000490
CAT II
10
Download the latest version of the OC client, and remove/replace any older versions.
For each oauth client that does not have the idle timeout set, or the timeout is set to the wrong duration, run the following command to set the idle timeout value to 10 minutes.
oc patch oauthclient/<CLIENT_NAME> --type=merge -p '{"accessTokenInactivityTimeoutSeconds":600}'
where CLIENT_NAME is the name of the oauthclient identified in the check.
On each administrators terminal, verify the OC client version includes the required idle timeout by executing the following.
oc version
If the client version < "4.8.36", this is a finding.
Determine if the session token inactivity timeout is set on the oauthclients by executing the following:
oc get oauthclients -ojsonpath='{range .items[*]}{.metadata.name}{"\t"}{.accessTokenInactivityTimeoutSeconds}{"\n"}'
The output will list each oauth client name followed by a number. The number represents the timeout in seconds. If no number is displayed, or the timeout value is >600, this is a finding.
V-257544
False
CNTR-OS-000490
On each administrators terminal, verify the OC client version includes the required idle timeout by executing the following.
oc version
If the client version < "4.8.36", this is a finding.
Determine if the session token inactivity timeout is set on the oauthclients by executing the following:
oc get oauthclients -ojsonpath='{range .items[*]}{.metadata.name}{"\t"}{.accessTokenInactivityTimeoutSeconds}{"\n"}'
The output will list each oauth client name followed by a number. The number represents the timeout in seconds. If no number is displayed, or the timeout value is >600, this is a finding.
M
5547