bazooka-ci / bazooka

Continuous Integration and Continuous Deployment Server
http://docs.bazooka-ci.io/
MIT License
60 stars 5 forks source link

Enable secure content in bazooka.yml #148

Closed julienvey closed 9 years ago

julienvey commented 9 years ago

The goal

Do something like that:

language: golang
go:
  - 1.3.1
after_script:
  - echo $TEST_SECURE
  - echo $TOTO
env:
  - secure: 5d5a074ca963ffedb3e80660f98ae43262e7c58adf40fc31b35a439d7ebdecf2e138b012
  - TOTO=1

Only env vars can be encrypted

How does it work ?

Usage: bzk encrypt PROJECT_ID DATA 

Encrypt some data

Arguments:
  PROJECT_ID=""   Project id
  DATA=""         Data to Encrypt

Closes #69

jawher commented 9 years ago

How is this supposed to work for multiple projects ? Unless I'm mistaken, bzk generate-key stores the project specific generated key in the same file, ~/.bzkkey`, no matter the project.

Also, this PR doesn't handle importing an existing project key in a different machine.

julienvey commented 9 years ago

@jawher I have updated the description to reflect the new workflow. Let me know what you think about it

jawher commented 9 years ago

Added 2 commits to remove the hard-coded key file from commons.

If this proposal is accepted, we'll also need to update all the language parsers to add a call which sets the crypto key.