Skip to content

Release/5.1.0#165

Closed
ansu-mathew wants to merge 9 commits intomainfrom
release/5.1.0
Closed

Release/5.1.0#165
ansu-mathew wants to merge 9 commits intomainfrom
release/5.1.0

Conversation

@ansu-mathew
Copy link
Contributor

No description provided.

ansu-mathew and others added 9 commits October 31, 2025 08:49
This version is released from HEAD main
and contain changes regarding UserPreferences
to UserSettings switch.
RDKEAPPRT-434 : Resolve build failure in Application layer with the changes based on  8.4.1.0 MW release
RDKEAPPRT-500 To update the package revision and residentui.bb
Copilot AI review requested due to automatic review settings December 22, 2025 11:10
Copy link

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 pull request prepares Release 5.1.0 of the meta-application-rdke-dev layer, updating core application packages and modifying Mosquitto MQTT broker configuration handling.

Key changes include:

  • Updated dab-adapter from version 0.7.0 to 0.8.0-dev with new upstream commit
  • Updated rdkresidentapp and residentui packages to version 5.0.20
  • Modified Mosquitto broker configuration approach from file removal to in-place sed modifications

Reviewed changes

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

Show a summary per file
File Description
recipes-thirdparty/mosquitto/mosquitto_%.bbappend Changed to modify mosquitto.conf with sed instead of removing it; enables anonymous access and root user
recipes-thirdparty/dab-adapter/files/mosquitto.conf Removed custom mosquitto.conf file (904 lines) as configuration now handled via bbappend
recipes-thirdparty/dab-adapter/dab-adapter.inc Removed mosquitto.conf installation logic and deprecated variable syntax
recipes-thirdparty/dab-adapter/dab-adapter.bb Updated to dab-adapter 0.8.0-dev with new SRCREV and commit hash
recipes-core/packagegroups/packagegroup-application-layer.bb Version bump from 5.0.1 to 5.1.0
recipes-apps/residentui/residentui.bb Updated SHA256 checksum for new release tarball
conf/machine/include/package_revisions.inc Updated version and SRCREV for rdkresidentapp, residentui, and dab-adapter
CHANGELOG.md Added release notes for version 5.1.0 with PR references and commit links
Comments suppressed due to low confidence (2)

recipes-thirdparty/mosquitto/mosquitto_%.bbappend:4

  • The mosquitto broker is configured to allow anonymous connections without authentication and to run as the root user. This creates significant security vulnerabilities:
  1. allow_anonymous true - Anyone can connect to the broker without credentials
  2. user root - Running as root violates the principle of least privilege

These settings should only be used in development/testing environments. For production systems, consider:

  • Requiring authentication with username/password
  • Running mosquitto as a dedicated unprivileged user (e.g., 'mosquitto')
  • Implementing proper ACL controls
    if [ -f "${D}${sysconfdir}/mosquitto/mosquitto.conf" ]; then
        sed -i 's/# allow_anonymous$/allow_anonymous true/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
        sed -i 's/#user mosquitto/user root/' ${D}${sysconfdir}/mosquitto/mosquitto.conf

recipes-thirdparty/dab-adapter/dab-adapter.bb:402

  • Two consecutive blank lines have been added here without any apparent purpose. This appears to be unintentional whitespace that should be removed to maintain clean formatting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

rm -f ${D}${sysconfdir}/mosquitto/mosquitto.conf
fi
if [ -f "${D}${sysconfdir}/mosquitto/mosquitto.conf" ]; then
sed -i 's/# allow_anonymous$/allow_anonymous true/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

The sed pattern 's/# allow_anonymous$/allow_anonymous true/' requires an exact match with '# allow_anonymous' at the end of the line. If the mosquitto.conf file has trailing whitespace or a different comment format (e.g., '#allow_anonymous' without space), this pattern will silently fail to match and the configuration won't be updated. Consider using a more robust pattern like 's/^[[:space:]]*#[[:space:]]allow_anonymous.$/allow_anonymous true/' to handle variations in whitespace and comments.

Suggested change
sed -i 's/# allow_anonymous$/allow_anonymous true/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/^[[:space:]]*#[[:space:]]*allow_anonymous.*$/allow_anonymous true/' ${D}${sysconfdir}/mosquitto/mosquitto.conf

Copilot uses AI. Check for mistakes.
if [ -f "${D}${sysconfdir}/mosquitto/mosquitto.conf" ]; then
sed -i 's/# allow_anonymous$/allow_anonymous true/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/#user mosquitto/user root/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/#listener$/listener 1883/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

The sed pattern 's/#listener$/listener 1883/' only matches lines ending with '#listener' exactly. If the default mosquitto.conf has a different comment format or additional text (e.g., '#listener port-number'), the substitution will fail silently. Consider a more flexible pattern like 's/^[[:space:]]*#[[:space:]]listener.$/listener 1883/' to handle various comment formats.

Suggested change
sed -i 's/#listener$/listener 1883/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/^[[:space:]]*#[[:space:]]*listener.*$/listener 1883/' ${D}${sysconfdir}/mosquitto/mosquitto.conf

Copilot uses AI. Check for mistakes.
Comment on lines +3 to +5
sed -i 's/# allow_anonymous$/allow_anonymous true/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/#user mosquitto/user root/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/#listener$/listener 1883/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

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

This recipe modifies mosquitto.conf at install time to set allow_anonymous true, change user to root, and un-comment a listener 1883, which together expose an unauthenticated MQTT broker running as root on the default TCP port. Any client able to reach port 1883 can connect without credentials and publish/subscribe, and any vulnerability in mosquitto or its plugins would then lead to full root compromise of the device. Please keep mosquitto running as an unprivileged user, disable or tightly scope anonymous access, and require proper authentication/ACLs before enabling a listener reachable from untrusted networks.

Suggested change
sed -i 's/# allow_anonymous$/allow_anonymous true/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/#user mosquitto/user root/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/#listener$/listener 1883/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/# allow_anonymous$/allow_anonymous false/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/#user mosquitto/user mosquitto/' ${D}${sysconfdir}/mosquitto/mosquitto.conf
sed -i 's/#listener$/listener 1883 127.0.0.1/' ${D}${sysconfdir}/mosquitto/mosquitto.conf

Copilot uses AI. Check for mistakes.
@ansu-mathew ansu-mathew deleted the release/5.1.0 branch December 22, 2025 11:16
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants