-
Notifications
You must be signed in to change notification settings - Fork 0
S3 storage backend integration #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,15 +26,13 @@ services: | |
| build: | ||
| context: . | ||
| dockerfile: Dockerfile.arm64 | ||
| args: | ||
| # Only including essential features: | ||
| # - ranges: For better file serving (partial downloads/streaming) | ||
| FEATURES: "ranges" | ||
| environment: | ||
| # Config values overridden by environment variables - keeping only essential/sensitive ones | ||
| APP__DATABASE: postgres://postgres:root@db:5432/route96?sslmode=require | ||
| APP__FILESYSTEM__STORAGE_DIR: /app/data | ||
| APP__PUBLIC_URL: http://localhost:8000 | ||
| # S3 credentials | ||
| APP__S3__SECRET_ACCESS_KEY: ${BLOSSOM_DEV_SECRET} | ||
|
Comment on lines
+34
to
+35
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainEnsure S3 credentials are properly secured. The S3 secret access key is correctly sourced from an environment variable, but make sure this environment variable is properly set and secured. Consider adding validation or a check to ensure the variable is present. 🏁 Script executed: #!/bin/bash
# Check if the required environment variable is defined
if [ -z "${BLOSSOM_DEV_SECRET}" ]; then
echo "ERROR: BLOSSOM_DEV_SECRET environment variable is not set"
echo "This variable is required for S3 storage to work correctly"
exit 1
fi
echo "BLOSSOM_DEV_SECRET is set (value hidden for security)"Length of output: 276 Action Required: Secure and properly configure S3 credentials. The verification script clearly indicates that the
|
||
| # Nested values with double underscores | ||
| APP__NIP29_RELAY__URL: ws://host.docker.internal:8080 | ||
| # Test key (pubkey: 385c3a6ec0b9d57a4330dbd6284989be5bd00e41c535f9ca39b6ae7c521b81cd) - replace if needed | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify S3 credentials handling and security
The configuration includes a hardcoded access key ID and references an environment variable for the secret key. While storing the secret key in an environment variable is good practice, exposing the access key ID in the config file might be a security concern if this file is committed to version control.
Are there plans to also move the access key ID to an environment variable? Additionally, please verify that the DigitalOcean Space (based on the endpoint URL) and credentials are properly configured and secured:
🏁 Script executed:
Length of output: 256
Security Issue: Hardcoded Access Key ID Persists in Config
config.yamlstill hardcodes theaccess_key_id("DO801BJEC2FP8YC8B7XD"). This could expose sensitive credential information if the file is committed to version control.https://nyc3.digitaloceanspaces.com) and its associated credentials are correctly and securely configured.