circleci/encrypted-files

Storing encrypted files in source on CircleCI

108

stars

10

commits

Feb 6, 2024

updated

README

encrypted-files

This is a simple example of storing encrypted files in source for use in CircleCI builds.

In this example, the gitignored contents of secret-env-plain are:

export FOO=secret
export BAR=alsosecret

If they are encrypted with openssl aes-256-cbc -e -in secret-env-plain -out secret-env-cipher -k $KEY, and $KEY is set in the CircleCI project, the variables in secret-env-plain will be available in the build.

You could use the same process but replace the openssl command in circle.yml with openssl aes-256-cbc -d -in secret-file-cipher -out secret-file-plain -k $KEY to create plaintext files in the build environment instead of just exporting environment variables.

Contributors

bellkev

5 commits

bear

1 commits

circleci-bot

1 commits

ryan-wren

1 commits

circleci/encrypted-files

Storing encrypted files in source on CircleCI

108

stars

10

commits

Feb 6, 2024

updated

README

encrypted-files

This is a simple example of storing encrypted files in source for use in CircleCI builds.

In this example, the gitignored contents of secret-env-plain are:

export FOO=secret
export BAR=alsosecret

If they are encrypted with openssl aes-256-cbc -e -in secret-env-plain -out secret-env-cipher -k $KEY, and $KEY is set in the CircleCI project, the variables in secret-env-plain will be available in the build.

You could use the same process but replace the openssl command in circle.yml with openssl aes-256-cbc -d -in secret-file-cipher -out secret-file-plain -k $KEY to create plaintext files in the build environment instead of just exporting environment variables.

Contributors

bellkev

5 commits

bear

1 commits

circleci-bot

1 commits

ryan-wren

1 commits