]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commit
ansible: Pass API key to slave.jar as file 1658/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 15 Sep 2020 14:30:23 +0000 (10:30 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 15 Sep 2020 14:30:23 +0000 (10:30 -0400)
commit4df162dab356b4dfe6e47d6876ff9ea4684b9006
tree7045869a02f178edf91e939cffcaaf3f01c98bf1
parent74e0dcff83628aa9a3fe9fcbbcc3bb540674ee35
ansible: Pass API key to slave.jar as file

vstart_runner.py runs 'ps ww' for the jenkins-build user.  This exposes the API key by showing the java.jar process in Jenkins logs.  If we pass the credentials as a file, there's less of a chance of it getting exposed.

Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/examples/slave.yml
ansible/templates/systemd/jenkins.secret.j2 [new file with mode: 0644]
ansible/templates/systemd/jenkins.service.j2