feat: add password_sync oslo_event handler (logging-only) - #2246
Draft
RSabounds wants to merge 4 commits into
Draft
feat: add password_sync oslo_event handler (logging-only)#2246RSabounds wants to merge 4 commits into
RSabounds wants to merge 4 commits into
Conversation
Add a modular password change detection handler that fires on baremetal.node.update.end events. When a node has extra.password_sync set to a recognized backend name (core, passwordsafe, 1password) and a device identifier (core_id or external_cmdb_id), the handler detects password changes via SHA-256 hash comparison against a value stored in driver_internal_info. Phase 1 (this commit): logging only — reports detected changes. Phase 2 (future): dispatch to backend for actual credential sync. Design: - Pluggable backends via PasswordSyncBackend ABC - extra['password_sync'] selects the backend by name - Change detection uses _uc_password_sync_hash in driver_internal_info - Password lookup: redfish_password > ipmi_password > any *_password AMMO-1309
RSabounds
force-pushed
the
ammo-1309/password-sync-handler
branch
from
August 25, 2026 22:27
37504dd to
cbe41ba
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a modular password change detection handler for
baremetal.node.update.endevents.Design
PasswordSyncBackendABCextra['password_sync']selects the backend by name (core,passwordsafe,1password)driver_internal_info['_uc_password_sync_hash']redfish_password>ipmi_password> any*_passwordkeypassword_syncset (or set tofalse/disabled) are skippedcore_idorexternal_cmdb_idin extras to identify the target deviceStatus
Phase 1 (this PR): Logging only — detects and reports password changes on eligible nodes.
Phase 2 (future): Dispatch to backend for actual credential sync (CTKAPI for CORE, etc.)
Open Items
Jira
AMMO-1309