Skip to content

Conversation

stefanhipfel
Copy link
Contributor

Proposed Changes

Implement User controller which handles the creation of user accounts in a bmc

@afritzler afritzler added this to the v0.1 milestone Jun 25, 2025
@stefanhipfel stefanhipfel marked this pull request as ready for review July 9, 2025 08:55
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Jul 10, 2025
@afritzler afritzler removed this from the v0.1.0 milestone Jul 22, 2025
return fmt.Errorf("failed to remove effective BMCSecret: %w", err)
}
// Update the BMC account with the new password
if err := bmcClient.CreateOrUpdateAccount(ctx, user.Spec.UserName, user.Spec.RoleID, password, r.Insecure); err != nil {
Copy link
Contributor

@Nuckal777 Nuckal777 Sep 4, 2025

Choose a reason for hiding this comment

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

Don't we loose the reference to the password, if this call fails? I would propose to not remove the effective secret ref. Instead at the start of the reconciliation try to log in with the effective secret ref and if that fails try .spec.secretRef (if different). In case the second log in call succeeds, I would patch the effective secret ref.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change area/metal-automation documentation Improvements or additions to documentation size/XXL
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

4 participants