Re: Django and CSP strict-dynamic

2017-05-22 Thread Adam Johnson
> > I agree; note however, that nonces are part of CSP Level 2, which is in > "W3C Recommendation" status Ah, I am not familiar with all these standards, thanks for clarifying. The first part I think Django should be involved in in generating the nonce > (a simple base64(os.random(16)) and makin

Re: Django and CSP strict-dynamic

2017-05-16 Thread Ran Benita
OK, so to refocus the issue: Using CSP nonces requires the following: any

Re: Django and CSP strict-dynamic

2017-05-16 Thread Ran Benita
Hi Adam, thanks for your comments. > Given that it's still a W3C draft I am not sure it should be added to Django core yet. I agree; note however, that nonces are part of CSP Level 2, which is in "W3C Recommendation" status. Since support for nonces is a prerequisite for any of this, I'll refo

Re: Django and CSP strict-dynamic

2017-05-15 Thread Adam Johnson
Hi Ran Given that it's still a W3C draft I am not sure it should be added to Django core yet. I don't know of any official policy around what Django implements versus the W3C spec levels though. However it does seem that without a centralized solution for CSP nonces, they won't be usable with thi

Django and CSP strict-dynamic

2017-05-13 Thread ran234
Hey, I'd like to discuss how Django might encourage and ease the use of CSP in the frontend. As Django is used more and more to drive complex web applications, I think this is of interest. (I tried to keep this short, but failed...). # CSP background CSP (Content Security Policy) is an elaborate