Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(MODULES-11458) Revert deferred function #490

Merged
merged 1 commit into from
Aug 13, 2024

Conversation

Ramesh7
Copy link
Contributor

@Ramesh7 Ramesh7 commented Jul 24, 2024

Summary

Revert deferred function

Additional Context

Add any additional context about the problem here.

  • Root cause and the steps to reproduce. (If applicable)
  • Thought process behind the implementation.

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

@Ramesh7 Ramesh7 requested review from bastelfreak and a team as code owners July 24, 2024 12:24
@Ramesh7 Ramesh7 added the bugfix label Jul 24, 2024
Copy link
Collaborator

@bastelfreak bastelfreak left a comment

Choose a reason for hiding this comment

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

Can you please explain why this gets reverted?

end

def user_password(password)
password
Copy link
Collaborator

Choose a reason for hiding this comment

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

did this just return the content of the password variable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, it returns as it is.
We have implemented based on earlier understanding and handover but I feel probably we are missing something here. That is one reason I am reverting.

Also there is customer reported issue where /etc/shadow is getting populting with "Deferred({'name' => 'user_password', 'argume... content.

Copy link

Choose a reason for hiding this comment

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

I am having this exact issue currently after updating the accounts module. Rolling back in our environment until this is fixed.

cat /etc/shadow
...
admin:Deferred({'name' => 'user_password', 'arguments' => ['$6$OLbl..snip..gPrlY.']}):19943:0:99999:7:::
...

Copy link
Collaborator

@bastelfreak bastelfreak left a comment

Choose a reason for hiding this comment

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

the function isn't properly implemented, it only returns the password as plaintext. so I think it makes sense to revert this.

@Ramesh7 Ramesh7 merged commit 170b0d5 into main Aug 13, 2024
40 checks passed
@Ramesh7 Ramesh7 deleted the MODULES-11458-revert-deferred-function branch August 13, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants