Skip to content

Added comments based on my current understanding of the orchestration code for obtaining keytabs from AD #602

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

soenkeliebau
Copy link
Member

@soenkeliebau soenkeliebau commented May 21, 2025

Description

I read a small part of the code that is used to generate keytabs from AD and noted down my understanding in comments.
Not sure if correct or helpful to actually merge, but by opening a PR I hope to have a place for discussion.

Definition of Done Checklist

  • Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
  • Please make sure all these things are done and tick the boxes

Author

  • Code contains useful comments

@soenkeliebau soenkeliebau requested a review from nightkr May 21, 2025 15:50
@lfrancke lfrancke moved this to Development: Waiting for Review in Stackable Engineering May 28, 2025
@sbernauer sbernauer moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Jun 2, 2025
@soenkeliebau soenkeliebau requested a review from a team July 11, 2025 10:54
@sbernauer sbernauer moved this from Development: In Review to Development: Waiting for Review in Stackable Engineering Jul 11, 2025
let mut stdin = child
.stdin
.take()
.expect("Failed to read from stdin of stackable-krb5-provision-keytab script! ");
Copy link
Member

Choose a reason for hiding this comment

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

I think this is a bit more accurate, but not sure

Suggested change
.expect("Failed to read from stdin of stackable-krb5-provision-keytab script! ");
.expect("Failed to read from stdin of stackable-krb5-provision-keytab command! ");

Copy link
Contributor

@nightkr nightkr Jul 25, 2025

Choose a reason for hiding this comment

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

I must've missed that.. it's not even about reading, it's about taking ownership of the pipe. If it fails then you either didn't set up the pipe correctly (stdin(Stdio::piped())), or already took the pipe elsewhere.

Copy link
Member

Choose a reason for hiding this comment

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

I just saw that you provided more details in #602 (comment), thanks!

@sbernauer sbernauer moved this from Development: Waiting for Review to Development: In Review in Stackable Engineering Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Development: In Review
Development

Successfully merging this pull request may close these issues.

3 participants