This page (revision-26) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:05 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
26 23-Apr-2022 17:06 30 KB Harry Metske to previous
25 23-Apr-2022 17:05 30 KB Harry Metske to previous | to last
24 23-Apr-2022 17:05 30 KB Harry Metske to previous | to last
23 23-Apr-2022 17:05 29 KB Harry Metske to previous | to last
22 23-Apr-2022 17:05 29 KB Harry Metske to previous | to last
21 23-Apr-2022 17:05 28 KB Harry Metske to previous | to last

Page References

Incoming links Outgoing links
Credhub...nobody

Version management

Difference between version and

At line 789 changed one line
! Finding creds
!!! Finding creds
At line 805 changed one line
! Exporting (backup) creds
!!! Exporting (backup) creds
At line 808 removed 35 lines
! Importing (restore) creds
Simply use the __credhub import__ command.\\
It does however complain about ssh-type entries:
{{{
Credential '/static/ssh_key' at index 8 could not be set: The request includes an unrecognized parameter 'public_key_fingerprint'. Please update or remove this parameter and retry your request.
}}}
! Test deploy and see if it works
We took the [gogs boshrelease|https://github.com/cloudfoundry-community/gogs-boshrelease] as a test case.
We uploaded the required stemcell and deployed with __bosh -n deploy -d gogs ~/workspace/gogs-boshrelease/manifests/gogs.yml__, this gogs.yml file has several secrets in it.\\
After deploying it simply works, and with the __credhub find__ command, you see that several entries were created:
{{{
metskem@athena-2 ~/workspace/boshlite/deployments/vbox/gogs: credhub find
credentials:
- name: /static/ssh_key
version_created_at: "2018-09-22T13:59:45Z"
- name: /static/sample-rsa
version_created_at: "2018-09-22T13:59:45Z"
- name: /xx/sample-rsa
version_created_at: "2018-09-22T13:59:45Z"
- name: /yy/sample-rsa
version_created_at: "2018-09-22T13:59:45Z"
- name: /Bosh_Lite_Director/gogs/postgres-password
version_created_at: "2018-09-22T13:59:45Z"
- name: /Bosh_Lite_Director/gogs/gogs-secret-key
version_created_at: "2018-09-22T13:59:45Z"
- name: /Bosh_Lite_Director/gogs/gogs-password
version_created_at: "2018-09-22T13:59:45Z"
- name: /Bosh_Lite_Director/gogs/gogs-ca
version_created_at: "2018-09-22T13:59:45Z"
- name: /Bosh_Lite_Director/gogs/gogs-tls
version_created_at: "2018-09-22T13:59:45Z"
}}}