GAE: best practices for storing secret keys?

前端 未结 6 916
感情败类
感情败类 2020-12-05 01:53

Are there any non-terrible ways of storing secret keys for Google App Engine? Or, at least, less terrible than checking them into source control?

6条回答
  •  Happy的楠姐
    2020-12-05 02:57

    In the meantime, Google added a Key Management Service: https://cloud.google.com/kms/

    You could use it to encrypt your secrets before storing them in a database, or store them in source control encrypted. Only people with both 'decrypt' access to KMS and to your secrets would be able to use them.

    The fact remains that people who can deploy code will always be able to get to your secrets (assuming your GAE app needs to be able to use the secrets), but there's no way around that as far as I can think of.

提交回复
热议问题