github / github/secure_headers
Set `default-src` CSP Attribute to `none` by default
- Linguagem predominante
- Ruby
- Estrelas
- 3.2k
- Forks
- 253
- Merge médio
- 19h 11min
- PRs com merge (30d)
- 1
Descrição
At GitHub, we set the `default-src` CSP attribute to `none`. This provides the strictest possible CSP as it'll thus only allow CSP directives that the user explicitly has allowlisted.
It would be desirable to set this default in `secure_headers` as well:
https://github.com/github/secure_headers/blob/7f89df2dafb22f1833702eef4a01d4794b2066f0/lib/secure_headers/headers/content_security_policy_config.rb#L133
This would be a breaking change, so if this is desirable, this would fit well in with https://github.com/github/secure_headers/issues/480
Guia de contribuição
Direção de pesquisa
Comece em lib/secure_headers/headers/content_security_policy_config.rb, na linha referenciada, e inspecione como o valor atual de default-src é montado. Leia issue #480 para entender o contexto da breaking change proposta. A tarefa estará concluída quando o valor padrão for definido como none sem substituir as diretivas configuradas explicitamente pelos usuários.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- ruby
- Domínio
- security
- Tipo de issue
- Funcionalidade
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 48/100