-
Notifications
You must be signed in to change notification settings - Fork 4
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
Update django 4.2 #343
Update django 4.2 #343
Conversation
2b108e6
to
c314109
Compare
Ok I have some questions: What's the purpose of this?
And we resolved that this matches what we have set up with UNC ITS:
I wonder if this is even necessary (or for that matter anything in migrations) since we never bother to maintain the user database from one version of appstore to the other. |
Yes, we have checked that. Any changes in this messes up with SAML.
I'm not sure on this. Some migrations run by default even when the databases are generated when the appstore is deployed. But this one in particular was just renaming the model, and I did not see a reason for it. I think I can keep on investigating when working on whitelisting. |
Ok if there is a problem with CSRF on Should these things be in the values file rather than hard-coded? |
That's a good point, renci.unc.edu should be added to that list. I'm not sure if it should be in values file.. If we want to "strictly" keep the deployments within the renci domain, then hardcoded values make sense. If we want to have it truly open-source, and let folks do their own deployments, then yes - definitely should be a list value in values file. |
@waTeim pretty sure CSRF_TRUSTED_ORIGIN means that cross-site requests from that origin do not require a CSRF token on the post request. @hina-shah I think hardcoded domains (renci.org, renci.unc.edu) should be moved to values and make the current list the default value if unspecified. |
Still not a fan:
I get it, the intention is to make the default behavior backward compatible, otherwise, when you use the previous values file it would not work. Ok, I'm not sure that's a good idea, but even if we want that. I say these things should go into the chart's default values. And/Or simply in the release notes point out that this value must be set. Also, this is kind of a problem if the env variable is not set, you'll get an array containing a 0-length string instead of a 0-length array:
|
9585a5c
to
387cf8c
Compare
I think it is probably fine this way honestly since the deployment customization from the chart necessarily allows for changing this setting (assuming that is a settable value in appstore-chart). I wonder though, in settings/base.py if there is some other value that could be coupled to this one to introspect the context of the deployment. 🤔 |
.env.sample
Outdated
stdnfsPvc="stdnfs" | ||
CSRF_DOMAINS="https://*.remci.org" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching that!
2a72aab
to
3424b7f
Compare
3424b7f
to
fdafe44
Compare
fdafe44
to
1ea8095
Compare
The PR makes necessary changes to upgrade Django to 4.2, and it's related libraries.
4.2 is the next LTS according to this, and will be supported till beginning of 2026.