Anyone have any tips or tricks for really long content-security-policy headers? It’s a pain to validate visually in a text editor and only shows up as one line in Git-so managing changes and keeping track of things is painful.
You can’t do it https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#2.1
Maybe will be easier to store the headers in a different files and load the acl with -f (http://cbonte.github.io/haproxy-dconv/2.0/configuration.html#7) or split the configuration is multiple files and load them like https://stackoverflow.com/questions/25775682/can-i-split-a-large-haproxy-config-file-into-multiple-smaller-files .
I was afraid someone was going to say that. The file is already broken out into multiple smaller files. We’re already using a Ruby templating engine, I may just have to extend it to interpret the CSP from a multiline document and generate a single-line one.
Thanks!