Skip to content

Conversation

@rohanbatrain
Copy link
Owner

🧠 Second Brain Database – Release Report v0.0.3

Release Date: 2025-06-11
Author: Rohan Batra
Version: v0.0.3


πŸ”§ Major Changes

πŸ—‚οΈ Configuration Management Improved

  • Introduced a central .sbd_config configuration file using [DEFAULT] section format for better maintainability and secret management.

  • Environment variables now read via config file mounted into the container:

    [DEFAULT]
    mongo_url = mongodb://mongo:27017
    mongo_db_name = your_application_db_name
    ...

🐳 Docker & Dev Environment Overhaul

  • docker-compose.yml and dev.yml simplified by removing inline environment variables and volumes for config:

    • Mounted .sbd_config directly to container at /root/.config/Second-Brain-Database/.sbd_config:ro.
  • Created a structured dev environment:

    • dev-environment/docker-compose.yml
    • dev-environment/setup.sh – pulls dev image and brings up services.
    • dev-environment/remove-containers.sh – removes all running containers safely.

βš™οΈ Config Refactor

  • Removed hardcoded MAIL_DEFAULT_SENDER default value from config.py to shift towards externalized config approach.
  • Removed unused debug environment variable from main runtime (main.py).

🧹 Cleanups & Minor Changes

  • πŸ”₯ Removed sbd from requirements.txt as it’s unnecessary in local/dev environments.
  • πŸ“¦ Bumped version number in pyproject.toml from 0.0.2 β†’ 0.0.3.

πŸ“ Directory Restructuring

  • Moved and modularized docker-compose and scripts under dev-environment/ to improve clarity and support CI/CD adoption later.

πŸ§ͺ Notable Impact

  • Better Secrets Management: Sensitive keys and tokens no longer exposed in docker-compose or source.
  • Environment Portability: Easier to onboard contributors and set up dev/test containers using consistent tooling.
  • Modular Config Support: Prepares the system for .env or full config service (Vault, Doppler, etc.) in future versions.

@rohanbatrain rohanbatrain merged commit 63fe6b6 into main Jun 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants