Skip to content

A demonstration of how a client and server can handle secret rotation gracefully with zero downtime

Notifications You must be signed in to change notification settings

blischalk/SharedSecretRotation

Repository files navigation

Zero Downtime API Shared Secret Rotation

Setup

  1. Create a AWS parameter
  2. Update client.py and server.py with the AWS region the parameter is in and the name of the parameter
  3. Start up the client and server

Startup

In a terminal run:

export FLASK_APP=server
export FLASK_ENV=development
flask run

In another terminal run:

python3 client.py
  1. Change the secret in AWS parameter store
  2. Observe the client and server terminal windows gracefully handle the secret rotation

About

A demonstration of how a client and server can handle secret rotation gracefully with zero downtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages