GeoNode / geonode-project

A django template project for creating custom GeoNode projects.
http://geonode.org
78 stars 172 forks source link

Remove geoserver fixture and its invocation #304

Closed jkariscodes closed 2 years ago

jkariscodes commented 2 years ago

It is recommended that the geoserver fixture and its invocation be removed as its logic is conceptually wrong in this issue. In addition to which the logic in geonode that should allow user to override the geoserver administrator password based on the value of GEOSERVER_ADMIN_PASSWORD in the .env file is not working as expected.

gitguardian[bot] commented 2 years ago

⚠️ 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 | | | -------------- | ------------------------- | ---------------- | --------------- | -------------------- | | [59204](https://dashboard.gitguardian.com/incidents/59204?occurrence=8541318) | Django Secret Key | 9f8ccf001fd35692b0d11bb18139283115fb9edb | .env_sample | [View secret](https://github.com/GeoNode/geonode-project/commit/9f8ccf001fd35692b0d11bb18139283115fb9edb#diff-884b6e11efa48b023ccd79f54c641b81e9f70cf6ff29304dd5797ec4d08e0dd7L165) |
🛠 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](https://blog.gitguardian.com/secrets-api-management?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) the best practices. 3. Revoke and [rotate this secret](https://docs.gitguardian.com/secrets-detection/detectors/specifics/secret_key_in_django_config#revoke-the-secret?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 4. If possible, [rewrite git history](https://blog.gitguardian.com/rewriting-git-history-cheatsheet?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment). 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](https://blog.gitguardian.com/secrets-api-management/?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) for managing and storing secrets including API keys and other credentials - install [secret detection on pre-commit](https://docs.gitguardian.com/internal-repositories-monitoring/integrations/git_hooks/pre_commit?utm_source=product&utm_medium=GitHub_checks&utm_campaign=check_run_comment) 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!

lgtm-com[bot] commented 2 years ago

This pull request introduces 1 alert and fixes 1 when merging 86ac77d74068c26111028e216fa79ebdcfe6ab14 into c22f079825a777ef882f387c1cab97f6f1ee2c80 - view on LGTM.com

new alerts:

fixed alerts: