Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cs/sc 3688 deploy updates #21

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

Charl1996
Copy link
Contributor

@Charl1996 Charl1996 commented Jun 12, 2024

This PR contains some updates made from this ticket.

@Charl1996 Charl1996 marked this pull request as ready for review June 13, 2024 14:21
@Charl1996 Charl1996 requested a review from kaapstorm June 13, 2024 14:22
@@ -54,7 +54,8 @@ FEATURE_FLAGS = {
"DASHBOARD_NATIVE_FILTERS_SET": True,
"DASHBOARD_FILTERS_EXPERIMENTAL": True,
"ENABLE_JAVASCRIPT_CONTROLS": True,
"ENABLE_TEMPLATE_PROCESSING": True
"ENABLE_TEMPLATE_PROCESSING": True,
"ALLOW_ADHOC_SUBQUERY": True,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This FF was introduced in superset version 3 and is basically just old code from version 2 put behind a FF for security reasons.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we continue to support this over time?

# Any project which wants to add custom images to their dashboards must have
# the url of the image source added here, e.g. "https://mycoolimagesite.com"

TALISMAN_CONFIG = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This config was copied from the superset codebase and tweaked slightly for our own uses.

The TALISMAN_ENABLED flag was set to a default True value since superset 3 for security reasons (this flag enables content security policy checking). Likewise, the TALISMAN_CONFIG is the policy configuration.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tried to simply edit the policies we're interested in, but it didn't seem to work quite right. I suspect whatever we set overrides the default variable instead of appending to it.

@mkangia
Copy link
Contributor

mkangia commented Jun 27, 2024

@Charl1996
Should this be merged before next ansible deploy is done? (Not blocking anything, just checking)

@Charl1996
Copy link
Contributor Author

Charl1996 commented Jun 27, 2024

@mkangia
If we deploy such that ansible don't overwrite the superset settings file, it's OK to not have this merged, otherwise yes, it should be merged.

Copy link
Contributor

@mkangia mkangia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine to merge considering this is already done on prod. Though for allow_adhoc_subquery, I would like to understand if its safe in long run or we should take a note of it and/or discontinue it by letting projects know.

@Charl1996
Copy link
Contributor Author

Good question.

The FF seems stable and row level security is being applied, so at least for now we should be OK using it I think.

What would make this FF unsafe in the long run do you think?

@mkangia
Copy link
Contributor

mkangia commented Jul 2, 2024

What would make this FF unsafe in the long run do you think?

If this was removed from Superset, I assume they had some concern with it?

@Charl1996
Copy link
Contributor Author

What would make this FF unsafe in the long run do you think?

If this was removed from Superset, I assume they had some concern with it?

Ah, fair enough.

@Charl1996
Copy link
Contributor Author

I think I'll pause a little on merging this then. I want to see if I can read up a bit more around the specific security implications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants