Closed mikebell closed 5 years ago
The way I do it is with a params in the resource, like https://concourse-ci.org/setting-pipelines.html#pipeline-params so in your example it would be
- name: sync-resource
type: rsync-resource
source:
server: mikebell.io
base_dir: /var/www/mikebell.io-test
user : digital
private_key: ((CONCOURSEPRIV))
disable_version_path: true
I've used this pattern with concourse 3.x without issue. I've not had cause to use newer versions so can't say for sure it still works, but from the link above I believe it still will.
Out of curiosity, what version of concourse are you using and why do you think that params are not supported in resources?
Ah when I looked at the documentation (https://concourse-ci.org/resources.html) params isn't listed in the parameters supported.
I'm very new to Concourse so still trying to pull things together in a nice way and get my head around it. Unless I'm missing something the Pipelines params section doesn't mention that this can also be populated from a secrets provider as well.
Thanks for the help, it's greatly appreciated.
Hi,
I'm trying to figure out how to pass a private_key via concourse secrets.
I have the following pipeline:
The first echo works and prints the private key to the console however adding it to the params of the sync-resource results in:
If I replace the ${CONCOURSEPRIV} with the hardcoded key it works as expected.
Resources don't support params from what I can see so I can't add it directly to the resource.
I've tried adding the params to the resource type and no luck there.
Where is the right place to pass in the secret to the private_key?