geonode
geonode copied to clipboard
fix #10963
Fixes #10963
Codecov Report
Merging #10964 (32b17fb) into master (f3a490a) will not change coverage. The diff coverage is
n/a
.
Additional details and impacted files
@@ Coverage Diff @@
## master #10964 +/- ##
=======================================
Coverage 61.26% 61.26%
=======================================
Files 839 839
Lines 51877 51877
Branches 6658 6658
=======================================
Hits 31783 31783
Misses 18563 18563
Partials 1531 1531
Traceback (most recent call last): File "/usr/local/bin/invoke", line 8, in <module> sys.exit(program.run()) File "/usr/local/lib/python3.10/site-packages/invoke/program.py", line 380, in run self.execute() File "/usr/local/lib/python3.10/site-packages/invoke/program.py", line 565, in execute executor.execute(*self.tasks) File "/usr/local/lib/python3.10/site-packages/invoke/executor.py", line 127, in execute result = call.task(*args, **call.kwargs) File "/usr/local/lib/python3.10/site-packages/invoke/tasks.py", line 115, in __call__ result = self.body(*args, **kwargs) File "/usr/src/geonode/tasks.py", line 358, in prepare oauth_config = f"{os.environ['GEOSERVER_DATA_DIR']}/security/filter/geonode-oauth2/config.xml" File "/usr/local/lib/python3.10/os.py", line 680, in __getitem__ raise KeyError(key) from None KeyError: 'GEOSERVER_DATA_DIR' CircleCI received exit code 0
Resolved
@afabiani I suspect that if a user sets the GEOSERVER_DATA_DIR
env var it will break a docker-based deployment, since in that case the hardcoded geoserver_data/data
is expected (e.g. volumes mounting) but tasks.py
will be executed on a different path.
@afabiani I suspect that if a user sets the
GEOSERVER_DATA_DIR
env var it will break a docker-based deployment, since in that case the hardcodedgeoserver_data/data
is expected (e.g. volumes mounting) buttasks.py
will be executed on a different path.
@giohappy tasks.py
always operates on internal volumes. However I agree that the volumes
definition should be also paramterized accordingly in order to work correctly in any case.
⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.
Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.
🔎 Detected hardcoded secret in your pull request
GitGuardian id | Secret | Commit | Filename | |
---|---|---|---|---|
- | Django Secret Key | 63f1c8d9261e0630ab1af598061c70c6e06aeff7 | .env.sample | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!