docs(security): clarify CSP requirements and provide example TALISMAN_CONFIG #22711
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
This is an attempt to provide some more clarity around the CSP requirements and to add a basic example
TALISMAN_CONFIG
.I've been submitting docs updates for issues I hit during an initial deployment of Superset on Kubernetes. Upon deployment, I started seeing CSP warnings from the
CONTENT_SECURITY_POLICY_WARNING
setting in my logs, but the docs did not provide much information about what sort of CSP Superset requires in order to function.I first tried a basic strict CSP of
default-src: 'self'; object-src: 'none'
. This resulted Superset's UI failing to run with a number of errors related tounsafe-inline
andunsafe-eval
. Adding those keywords to the basic policy allowed Superset's UI to operate in our deployment.script-src
andstyle-src
vs usingdefault-src
in the example? I'd favor simplicity as a starting point if there's no compelling reason to break them out.TESTING INSTRUCTIONS
Read the new docs.
ADDITIONAL INFORMATION