How to Delete Secrets from Databricks
Secrets: Database user name & password, aws secret key, gcp private key, rsa/ssh private key
Dont’s
- Don’t only comment -- we don’t want the secret to be hooman readableDon’t only delete -- but also delete the history
Dos - How to Delete Secrets from Databricks
Step by step:
- Delete the secret, change it to use secure means
- Clone your databricks notebook (right-click, clone)
- Delete your old databricks notebook (move to trash, and then delete from trash)
Why we have to do this?
Because databricks store revision history, means if you delete the secret it will still be there in revision history