rawwar commented on issue #47003:
URL: https://github.com/apache/airflow/issues/47003#issuecomment-2726301325

   Ok, so here's the root cause:
   
   After converting the field to a `BS3PasswordFieldWidget` , when we paste PEM 
key with new lines, this field automatically removes new lines.
   
   For example:
   ```
   key_start
   text
   key_end
   ```
   
   is now converted to  a single line `key_starttextkey_end` .
   
   And, when format the PEM key to replace new lines with "\n" , it is actually 
saved as "\\n". 
   
   For example:
   `key_start\ntext\nkey_end`  to become `key_start\\ntext\\nkey_end`
   
   
   Here's what I'm thinking to do:
   
   1. Update docs to inform users to pass PEM key by replacing new lines with  
`\n`'s 
   2. In the code, I'll just replace `\\n` with `\n` 
   
   CC: @potiuk 


-- 
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