-
-
Notifications
You must be signed in to change notification settings - Fork 409
Solution to the issue #1367 #1384
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
base: main
Are you sure you want to change the base?
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 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,19 @@ | ||||||||||||||
| services: | ||||||||||||||
| homebox: | ||||||||||||||
| image: homebox | ||||||||||||||
| build: | ||||||||||||||
| context: . | ||||||||||||||
| dockerfile: ./Dockerfile | ||||||||||||||
| args: | ||||||||||||||
| - COMMIT=head | ||||||||||||||
| - BUILD_TIME=0001-01-01T00:00:00Z | ||||||||||||||
| x-bake: | ||||||||||||||
| platforms: | ||||||||||||||
| - linux/amd64 | ||||||||||||||
| - linux/arm64 | ||||||||||||||
| - linux/arm | ||||||||||||||
| environment: | ||||||||||||||
| - HBOX_DEBUG=true | ||||||||||||||
| - HBOX_LOGGER_LEVEL=-1 | ||||||||||||||
|
Comment on lines
+15
to
+17
Contributor
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. Security concern: Debug mode enabled. The configuration enables debug mode ( Security risks:
Operational risks:
Since the filename suggests this might be a backup/alternative configuration, clearly document this is development-only to prevent accidental production use. 📋 RecommendationAdd a comment at the top of the file: +# DEVELOPMENT ONLY - DO NOT USE IN PRODUCTION
+# Debug mode and verbose logging enabled for local testing
services:
homebox:Or use environment variable overrides that default to safe values: environment:
- - HBOX_DEBUG=true
- - HBOX_LOGGER_LEVEL=-1
+ - HBOX_DEBUG=${HBOX_DEBUG:-false}
+ - HBOX_LOGGER_LEVEL=${HBOX_LOGGER_LEVEL:-0}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||
| ports: | ||||||||||||||
| - 3100:7745 | ||||||||||||||
|
Comment on lines
+1
to
+19
Contributor
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. Why is a backup file being added to version control? The
Consider:
🤖 Prompt for AI Agents |
||||||||||||||
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.
Placeholder build metadata makes images untraceable.
The build arguments use placeholder values that defeat their purpose:
COMMIT=headis not a real commit SHABUILD_TIME=0001-01-01T00:00:00Zis a zero timestampThese make it impossible to:
🔧 Suggested fix
If this is for local development, dynamically inject real values:
Or document that developers should override these at build time:
🤖 Prompt for AI Agents