NASA-IMPACT / COSMOS

COSMOS is a web application designed to manage collections indexed in NASA's Science Discovery Engine (SDE), facilitating precise content selection and allowing metadata modification before indexing.
https://sde-indexing-helper.nasa-impact.net/
3 stars 1 forks source link

Centralize and Secure Server Configuration Using Environment Variables #1087

Open saifrk opened 2 weeks ago

saifrk commented 2 weeks ago

Description

This task aims to refactor the server configurations by moving them into a separate configuration file and fetching base_url from environment variables. Currently, the base_url for different servers (dev, test, production, LRM, XLI, etc.) is hardcoded within the server configurations, posing a security risk and lacking flexibility. The proposed change will improve security, maintainability, and flexibility by fetching the base_url from environment variables.

Implementation Considerations

Deliverable

-A server_configs.py that centralizes all server configurations and imports them as needed across the project -Refactor the existing codebase to use the centralized server configurations, ensuring that base_url is fetched from environment variables

Dependencies

No response