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

Added environment variable for CSRF_TRUSTED_ORIGINS #738

Merged
merged 2 commits into from Apr 8, 2022

Conversation

RobinBeismann
Copy link
Contributor

@RobinBeismann RobinBeismann commented Apr 7, 2022

Related Issue: #737

New Behavior

Implements the handler for the environment variable "CSRF_TRUSTED_ORIGINS" delimited by space.
...

Contrast to Current Behavior

Netbox introduced the parameter "CSRF_TRUSTED_ORIGINS" as required parameter in configuration.py as Django 4.0 requires the URL Scheme to be set.
The reference configuration.py does not allow setting this value via the ENV File.

The Netbox Issue for this is: netbox-community/netbox#8509 (comment)

This PR adds support in the reference configuration file.
...

Discussion: Benefits and Drawbacks

...

Changes to the Wiki

The wiki needs a reference to this variable on this page.
https://github.com/netbox-community/netbox-docker/wiki/Configuration#configure-for-production

...

Proposed Release Note Entry

Added Envionment Variable CSRF_TRUSTED_ORIGINS to reflect the change that came with Django 4.0

...

Double Check

  • I have read the comments and followed the PR template.
  • I have explained my PR according to the information in the comments.
  • My PR targets the develop branch.

@cimnine cimnine added the enhancement The issue describes an enhancement that we would like to implement in the future. label Apr 8, 2022
Copy link
Collaborator

@cimnine cimnine left a comment

Choose a reason for hiding this comment

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

Thanks

@tobiasge tobiasge merged commit 27f2893 into netbox-community:develop Apr 8, 2022
@tobiasge tobiasge mentioned this pull request Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement The issue describes an enhancement that we would like to implement in the future.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants