jhu-idc / idc-isle-dc

Islandora Digital Collections (IDC) development environment
MIT License
2 stars 6 forks source link

Bump JWT expiry to one week #247

Closed birkland closed 3 years ago

birkland commented 3 years ago

This virtually assures that JWT tokens won't expire before events are processed from a slow queue. Based on Danny's recommendation for very long JWT expiry times to avoid cascading failure.

Resolves #246

github-actions[bot] commented 3 years ago

This PR has no dependency differences with the base branch

bseeger commented 3 years ago

@birlkand, the thing that needs to change is the variable in the .env file. This PR created a new env var in the drupal environment named: DRUPAL_JWT_EXPIRY_INTERVAL

This is what should be set as it will override the jwt-expiry in the settings.local.php file:

$config['islandora.settings']['jwt_expiry'] = str_replace("'", "", str_replace('"', '', getenv('DRUPAL_JWT_EXPIRY_INTERVAL') ?: '+2 hour'));

Format itself (of +168 hour) seems fine.

birkland commented 3 years ago

Closed in favor of https://github.com/jhu-idc/idcApp-k8s/issues/81