Skip to content

docs(inputs.smartctl): Document sudo-rs incompatibility#18676

Merged
skartikey merged 2 commits intoinfluxdata:masterfrom
hackery:docs/inputs-smartctl-sudoers
Apr 16, 2026
Merged

docs(inputs.smartctl): Document sudo-rs incompatibility#18676
skartikey merged 2 commits intoinfluxdata:masterfrom
hackery:docs/inputs-smartctl-sudoers

Conversation

@hackery
Copy link
Copy Markdown
Contributor

@hackery hackery commented Apr 8, 2026

Summary

Note compatibility issue for sudo-rs options in inputs.smartctl.
In passing, (1) note that sudoers config can be placed in /etc/sudoers.d and (2) minor typo.

Checklist

Related issues

resolves #18675

@telegraf-tiger
Copy link
Copy Markdown
Contributor

telegraf-tiger bot commented Apr 8, 2026

Thanks so much for the pull request!
🤝 ✒️ Just a reminder that the CLA has not yet been signed, and we'll need it before merging. Please sign the CLA when you get a chance, then post a comment here saying !signed-cla

@telegraf-tiger telegraf-tiger bot added docs Issues related to Telegraf documentation and configuration descriptions plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins labels Apr 8, 2026
@hackery
Copy link
Copy Markdown
Contributor Author

hackery commented Apr 8, 2026

!signed-cla

Copy link
Copy Markdown
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks @hackery! Just one comment/suggestion...

Comment thread plugins/inputs/smartctl/README.md Outdated
Comment on lines +91 to +95
> [!NOTE]
> If your system uses the `sudo-rs` Rust-based rewrite of GNU `sudo`, the
> logging options in `Defaults!SMARTCTL` are not supported and will cause
> errors. There's not currently a native way to prevent voluminous logs with
> `use_sudo` enabled. See trifectatechfoundation/sudo-rs#1181.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My concern is that nobody will remove this again once the sudo-rs bug will be resolved. So can we please change this to

Suggested change
> [!NOTE]
> If your system uses the `sudo-rs` Rust-based rewrite of GNU `sudo`, the
> logging options in `Defaults!SMARTCTL` are not supported and will cause
> errors. There's not currently a native way to prevent voluminous logs with
> `use_sudo` enabled. See trifectatechfoundation/sudo-rs#1181.
> [!NOTE]
> 🪲 In case you are using `sudo-rs` instead of GNU's `sudo`, the logging options
> `Defaults!SMARTCTL` has to be removed as it is not supported currently.and will cause
> See trifectatechfoundation/sudo-rs#1181.

including the 🪲 icon. This way we can grep for that icon and check if these "temporary" unwanted behaviors (or bugs ;-)) are still applicable...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sensible. I'll do that through a workspace commit as it looks like some formatting etc was lost here.

@srebhan srebhan self-assigned this Apr 16, 2026
@srebhan srebhan changed the title docs(inputs.smartctl): sudoers for sudo-rs docs(inputs.smartctl): Document sudo-rs incompatibility Apr 16, 2026
Copy link
Copy Markdown
Member

@srebhan srebhan left a comment

Choose a reason for hiding this comment

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

Thanks @hackery!

@srebhan srebhan added the ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review. label Apr 16, 2026
@srebhan srebhan assigned skartikey and unassigned srebhan Apr 16, 2026
Copy link
Copy Markdown
Contributor

@skartikey skartikey left a comment

Choose a reason for hiding this comment

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

@hackery Thanks for the contribution!

@skartikey skartikey merged commit fcb3542 into influxdata:master Apr 16, 2026
27 checks passed
@github-actions github-actions bot added this to the v1.38.3 milestone Apr 16, 2026
@hackery hackery deleted the docs/inputs-smartctl-sudoers branch April 17, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Issues related to Telegraf documentation and configuration descriptions plugin/input 1. Request for new input plugins 2. Issues/PRs that are related to input plugins ready for final review This pull request has been reviewed and/or tested by multiple users and is ready for a final review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: inputs.smartctl sudoers for sudo-rs

3 participants