geonode icon indicating copy to clipboard operation
geonode copied to clipboard

fix #10963

Open NyakudyaA opened this issue 1 year ago • 5 comments

Fixes #10963

NyakudyaA avatar Apr 24 '23 12:04 NyakudyaA

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           

codecov[bot] avatar Apr 29 '23 06:04 codecov[bot]

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

NyakudyaA avatar Apr 29 '23 06:04 NyakudyaA

@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.

giohappy avatar May 23 '23 12:05 giohappy

@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.

@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.

afabiani avatar Jun 30 '23 12:06 afabiani

⚠️ 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
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. 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


🦉 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!

gitguardian[bot] avatar Oct 16 '23 10:10 gitguardian[bot]