Skip to content

Conversation

@GermanBluefox
Copy link
Contributor

Added creation of javascript password to encrypt vendor scripts

Vendor wants to encrypt all specific scripts.

Added creation of javascript password to encrypt vendor scripts
@GermanBluefox GermanBluefox marked this pull request as draft October 29, 2025 21:44
@GermanBluefox GermanBluefox requested a review from Copilot October 29, 2025 21:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for vendor-specific JavaScript password encryption in the ioBroker setup process. The changes enable vendors to provide a JavaScript password in their vendor configuration file (iob-vendor.json), which will be encrypted and stored in the system configuration.

  • Added javascriptPassword field to vendor file interface and handling logic
  • Improved type safety across setup files with better TypeScript typing
  • Updated database configuration types to support Redis Sentinel with array types for host and port
  • Applied code modernization using nullish coalescing operators and optional chaining

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
packages/types-dev/config.d.ts Updated DatabaseOptions interface to support Redis Sentinel (arrays for host/port) and made dataDir optional
packages/cli/src/lib/setup/setupVendor.ts Added JavaScript password encryption feature, improved typing with iobVendorFile interface and InternalLogger type
packages/cli/src/lib/setup/setupSetup.ts Enhanced type safety, improved import organization, and updated variable naming consistency
CHANGELOG.md Documented the new JavaScript password encryption feature

@GermanBluefox GermanBluefox changed the title Better typing [TYPES] [Features] Added creation of JavaScript password to encrypt vendor scripts Oct 30, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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