Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

samba/appengine-gcloud-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google AppEngine Python Environment

Goals:

  • Simplify integration testing against the Google Cloud SDK
  • Support deployment operations for Python applications in Google AppEngine

Until recently, mgood's container proved sufficient, but is now outdated for my purposes.

Encrypted Environment Variables

This container now incldues a utility env_secure.sh, which supports extraction of credentials and other private data from environment variables that are encrypted. It's assumed that the content of the environment variables is also Base-64 encoded.

Common use-cases for this would include continuous integration and deployment environments, such as GitLab CI.

While not the pinacle of security, it presents some improvement. It does store files, when needed, in ${HOME}/.secure/stash.

The encryption used is AES-256 via OpenSSL.

Usage:

# Read the content directly, printing the string.
echo "${ENV_VAR}" | env_secure.sh decode "${PASSWORD}"

# Stash the content to a file, printing the resulting filename.
filename=`echo "${ENV_VAR}" | env_secure.sh file "${PASSWORD}"`
cat $filename # to read the sensitive data

# To clean the temporary files:
env_secure.sh clean


# To generate the encoded form:
echo "${sensitive_data}" | env_secure.sh encode "${PASSWORD}"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published