openscanhub: add a comment about newlines in ssh keys

Signed-off-by: Siteshwar Vashisht <svashisht@redhat.com>
This commit is contained in:
Siteshwar Vashisht 2024-03-13 16:54:18 +01:00
parent 08ea8f5ad1
commit 2ca3bb74e0

View file

@ -4,5 +4,8 @@ kind: Secret
metadata:
name: aws-openscanhub-key
data:
# Newline are added explicitly as the EOL character was removed by the lookup function.
# It was causing issues with ssh and it was giving this error:
# ```Load key "/var/lib/resallocserver/.ssh/id_rsa": error in libcrypto```
id_rsa: "{{ (lookup('file', private+'/files/openscanhub/openscanhub.key') + '\n') | b64encode }}"
id_rsa.pub: "{{ (lookup('file', private+'/files/openscanhub/openscanhub.key.pub') + '\n') | b64encode }}"