Home
Support Forums

Selective Password Protection Encryption

Hello,

I am using this method to protect my deploy link from a PR.

It works well but the thing is that the password and username is not encrypted so that means visible in the netlify_headers custom file.

Do you have a method to encrypt that custom header login and password?

Thanks in advance for your help.
Best

Hi @xay-sonarsource,

You could possibly use environment variables to generate a file during build time. You can use bash script for this, or even use JavaScript.

Thanks for your Help.

1 Like