Skip to content

Instantly share code, notes, and snippets.

@rj76
Created November 28, 2019 12:51
Show Gist options
  • Save rj76/294a445ce296bd7970633d46badcf0cb to your computer and use it in GitHub Desktop.
Save rj76/294a445ce296bd7970633d46badcf0cb to your computer and use it in GitHub Desktop.
Idea to rotate keys of encrypted django fields

key rotation

  • switch to django-fernet-fields
  • django-dbsettings
  • modify to fetch key from db in stead of settings
  • store keys in encrypted table using pgcrypt (per tentant?)
  • figure out rotation algorithm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment