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

New package: please-0.3.17 #27037

Closed
wants to merge 1 commit into from
Closed

Conversation

edneville
Copy link

Adding please, a simple regex-first sudo alternative in safe rust

@edneville edneville force-pushed the master branch 3 times, most recently from 0df9464 to 30f3c6d Compare December 8, 2020 19:34
Copy link
Member

@ericonr ericonr left a comment

Choose a reason for hiding this comment

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

Neat project!

Have you gone through a security review or similar procedure?

srcpkgs/please/template Outdated Show resolved Hide resolved
srcpkgs/please/template Outdated Show resolved Hide resolved
srcpkgs/please/template Outdated Show resolved Hide resolved
srcpkgs/please/template Outdated Show resolved Hide resolved
@edneville
Copy link
Author

Neat project!
Have you gone through a security review or similar procedure?

Good question. There hasn't been a formal security review. Maybe that is something for the future. Were you offering to sponsor? If so I would be willing to work with you on that.

Thanks for reviewing, I think the template looks cleaner based on your review. I hope the alterations are good now so I've resolved those conversations. Reopen if there are more changes are required.

@ericonr
Copy link
Member

ericonr commented Dec 9, 2020

Were you offering to sponsor? If so I would be willing to work with you on that.

Sorry, no :/

I was considering how inclusion into the distro would work, given that we have a responsibility for what we ship; and a sudo-like utility is a prime target.

@edneville
Copy link
Author

edneville commented Dec 9, 2020 via email

@ericonr
Copy link
Member

ericonr commented Dec 10, 2020

I understand your concern, there are two sides to this. Most distro
users understand regex, at least from grep/sed/rewriterule, (something
even in powershell) but few understand sudoers EBNF rules. Yes, it is
new, but the long term goal provides a good way to reliably delegate
access.

Yes, there's something to be said for providing simpler security tools that can greatly increase the general security, due to being simpler to deploy. At the same time, we still have to minimally ensure that these tools don't introduce new holes.

Since you're introducing a new tool into the field, the burden of proof for that is mostly on you. If I don't merge this new package, not much changes, and people who really want it can install it from elsewhere. If we do merge this package and someone finds an exploit or issue with it, then we (Void) share the responsibility for the number of affected people, since including it in our repository counts as vetting it.

@travankor
Copy link
Contributor

Note that Void has opendoas, based on a similar tool in OpenBSD's src.

Secondly, there seems to already be a similar, older tool called please, packaged in FreeBSD, which can be a source of confusion for everyone. This project is called pleaser on crates.io, so I don't know what the reason is for the dual naming scheme.

@edneville
Copy link
Author

@ericonr:

Yes, there's something to be said for providing simpler security tools that can greatly increase the general security, due to being simpler to deploy. At the same time, we still have to minimally ensure that these tools don't introduce new holes.

This is a good attitude, and one that makes me confident in Void for the same reasons that I like Debian.

Since you're introducing a new tool into the field, the burden of proof for that is mostly on you. If I don't merge this new package, not much changes, and people who really want it can install it from elsewhere. If we do merge this package and someone finds an exploit or issue with it, then we (Void) share the responsibility for the number of affected people, since including it in our repository counts as vetting it.

The codebase is particularly small if that helps reduce concerns over attack surface, really Rust's Regex is doing the heavy lifting here.

@travankor:

Note that Void has opendoas, based on a similar tool in OpenBSD's src.

I've looked at doas, which, for similar reasons to this project desired a smaller code base than sudo.

Secondly, there seems to already be a similar, older tool called please, packaged in FreeBSD, which can be a source of confusion for everyone. This project is called pleaser on crates.io, so I don't know what the reason is for the dual naming scheme.

I used 'please' in as I thought that if someone wanted a sandwich they should ask 'please' first :) As I'm now aware of prior naming I'll update the project name where it isn't already 'pleaser'.

I was aware of 'doas' but not that FreeBSD had a tool named 'please' too, I suppose it came from similar thinking.

Importantly for this project, neither doas or gblach's please have regex command matching. doas is more limited than 'sudo' in that you cannot specify a range either, but if someone uses wildcards in a sudo argument without negations afterwards will likely suffer unfairly. This effort is to improve things, hopefully with a small codebase there will be fewer pains all round.

@edneville edneville changed the title New package: please-0.3.16 New package: please-0.3.17 Dec 10, 2020
@ericonr ericonr added the new-package This PR adds a new package label Dec 20, 2020
@edneville edneville force-pushed the master branch 3 times, most recently from 9d6c3f0 to 4ae814f Compare January 30, 2021 13:51
@edneville
Copy link
Author

@ericonr, is this ready to merge now?

@ericonr
Copy link
Member

ericonr commented Apr 18, 2021

I don't feel comfortable merging this myself (unless the situation around a review has changed?), and no other Void maintainer has stepped up to do it. Configuring such a tool using regex feels like a new enough paradigm (to me, at least), that beyond the implementation issues, there are probably new pitfalls to discover.

For the reasons listed above, I will be closing this issue, to avoid giving the impression that some behind the scenes movement is happening in regards to it. Thanks for your interest in Void!

@ericonr ericonr closed this Apr 18, 2021
@edneville edneville mentioned this pull request Jun 11, 2021
3 tasks
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new-package This PR adds a new package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants