RobinM-code opened a new issue, #56706:
URL: https://github.com/apache/airflow/issues/56706

   ### What do you see as an issue?
   
   Here https://github.com/apache/airflow/blob/main/chart/values.yaml#L3053 is 
explained how to provide an `ssh-key` for `git-sync`.
   
   However, when doing so, the `git-sync` init container failed due to: `error 
in libcrypto`
   
   When `git-sync` runs `git fetch` it loads the private `ssh-key` from 
`/etc/git-secret/ssh`.
   Here it gets the `error in libcrypto` and therefore `git fetch` fails with 
`permission denied`.
   
   ### Solving the problem
   
   `    # sshKey: |-`
   Should be changed to:
   `    # sshKey: |`
   
   `YAML` block scalar `|-` will **strip** any final empty newline after the 
last line. This results in a `ssh-key` that can not be read by `libcrypto`.
   `YAML` block scalar `|` will **preserve** any final empty newline after the 
last line. This makes sure the `ssh-key` can be read.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to