Skip to content

Notify user when their token will soon expire#81

Merged
cezmunsta merged 2 commits into
masterfrom
token-renew
Nov 28, 2021
Merged

Notify user when their token will soon expire#81
cezmunsta merged 2 commits into
masterfrom
token-renew

Conversation

@cezmunsta
Copy link
Copy Markdown
Owner

@cezmunsta cezmunsta commented Nov 28, 2021

To help avoid unexpected expiration of tokens, the user is provided
with a warning when they use a renewable token and it is due to
expire in less than 7 days.

  • Updated scripts/dev-vault.sh to create a policy and test user
    for secret/ssh_ms for testing renewal messages, plus helper
    functions for testing renewal thresholds
  • Added vault.RenewThreshold to allow build-time override of the
    threshold used when checking tokens
  • Added vault.requiresRenewal to check if a token needs to be
    renewed in the next 7 days (default)
  • Updated vault.Authenticate to emit a warning when the token
    needs to be renewed
  • Added SSH_MS_RENEW_THRESHOLD to Makefile for build-time
    override of the renew threshold
  • Updated README

Resolves #77

To help avoid unexpected expiration of tokens, the user is provided
with a warning when they use a renewable token and it is due to
expire in less than 7 days.

* Updated `scripts/dev-vault.sh` to create a policy and test user
  for `secret/ssh_ms` for testing renewal messages, plus helper
  functions for testing renewal thresholds
* Added `vault.RenewThreshold` to allow build-time override of the
  threshold used when checking tokens
* Added `vault.requiresRenewal` to check if a token needs to be
  renewed in the next 7 days
* Updated `vault.Authenticate` to emit a warning when the token
  needs to be renewed
* Added `SSH_MS_RENEW_THRESHOLD` to `Makefile` for build-time
  override of the renew threshold
* Updated `README`
@cezmunsta cezmunsta added the enhancement New feature or request label Nov 28, 2021
@cezmunsta cezmunsta self-assigned this Nov 28, 2021
@cezmunsta cezmunsta merged commit d4e393e into master Nov 28, 2021
@cezmunsta cezmunsta deleted the token-renew branch November 28, 2021 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Notify user when their token will soon expire

1 participant