Skip to content

feat: add UPTIME_KUMA_DB_PASSWORD_FILE and UPTIME_KUMA_DB_USERNAME_FILE for docker secrets control#6629

Merged
CommanderStorm merged 2 commits intolouislam:masterfrom
eureka0928:feature/docker-secrets-db-credentials
Jan 7, 2026
Merged

feat: add UPTIME_KUMA_DB_PASSWORD_FILE and UPTIME_KUMA_DB_USERNAME_FILE for docker secrets control#6629
CommanderStorm merged 2 commits intolouislam:masterfrom
eureka0928:feature/docker-secrets-db-credentials

Conversation

@eureka0928
Copy link
Copy Markdown
Contributor

@eureka0928 eureka0928 commented Jan 6, 2026

ℹ️ To keep reviews fast and effective, please make sure you’ve read our pull request guidelines

📝 Summary of changes done and why they are done

📋 Related issues

📄 Checklist

Please follow this checklist to avoid unnecessary back and forth (click to expand)
  • ⚠️ If there are Breaking change (a fix or feature that alters existing functionality in a way that could cause issues) I have called them out
  • 🧠 I have disclosed any use of LLMs/AI in this contribution and reviewed all generated content.
    I understand that I am responsible for and able to explain every line of code I submit.
  • 🔍 My code adheres to the style guidelines of this project.
  • ⚠️ My changes generate no new warnings.
  • 🛠️ I have reviewed and tested my code.
  • 📝 I have commented my code, especially in hard-to-understand areas (e.g., using JSDoc for methods).
  • 🤖 I added or updated automated tests where appropriate.
  • 📄 Documentation updates are included (if applicable).
  • 🔒 I have considered potential security impacts and mitigated risks.
  • 🧰 Dependency updates are listed and explained.

📷 Screenshots or Visual Changes

  • UI Modifications: Highlight any changes made to the user interface.
  • Before & After: Include screenshots or comparisons (if applicable).
Event Before After
UP Before After
DOWN Before After
Certificate-expiry Before After
Testing Before After

Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=42954461

@eureka0928
Copy link
Copy Markdown
Contributor Author

@CommanderStorm would you review my PR? I hope this fits the requirement of issue


if (fileValue) {
try {
return fs.readFileSync(fileValue, "utf8").trim();
Copy link
Copy Markdown
Collaborator

@CommanderStorm CommanderStorm Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is trimming here a good idea? 🤔
Could you add a code comment why this is what we want?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@CommanderStorm I tried to make sure to remove all spaces, let me remove that
Other than that, all looks good?

Copy link
Copy Markdown
Collaborator

@CommanderStorm CommanderStorm Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was not a "this is a bad idea", this was a "does docker secrets have \n line endings if you enter a password?"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, so I would update for \n case, right?

Copy link
Copy Markdown
Collaborator

@CommanderStorm CommanderStorm Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does docker secrets have \n (or similar) file endings if you enter a password without that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, Docker secrets typically include trailing \n characters, even if you didn't intend to add one.
{8478C9B3-3DFC-4F1D-A9FA-D7FACEEE3CAF}

Please review this, so I'd like to keep the trim to prevent

@CommanderStorm CommanderStorm changed the title feat: add docker secrets control feat: add UPTIME_KUMA_DB_PASSWORD_FILE and UPTIME_KUMA_DB_USERNAME_FILE for docker secrets control Jan 7, 2026
@CommanderStorm CommanderStorm enabled auto-merge (squash) January 7, 2026 04:34
Copy link
Copy Markdown
Collaborator

@CommanderStorm CommanderStorm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shure, LGTM

@CommanderStorm CommanderStorm added this to the 2.1.0 milestone Jan 7, 2026
@CommanderStorm CommanderStorm merged commit d053039 into louislam:master Jan 7, 2026
23 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.

Add support for Docker Secrets when configuring external MariaDB connection

2 participants