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

Configuration to mandate a minimum bit length of paste slugs #163

Open
ChrisLovering opened this issue Jun 5, 2023 · 0 comments
Open

Configuration to mandate a minimum bit length of paste slugs #163

ChrisLovering opened this issue Jun 5, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers python

Comments

@ChrisLovering
Copy link
Contributor

Currently by default a paste slug is auto-growing, making it easy to enumerate all pastes if you wish to do so.

In the case that people hosting this service don't want this to be possible, we should add a configuration option to enforce a minimum bit length on slugs.

This could be done by making hash_create (or slug_create, either one) do min(selected, configuration.xxx) or such, that way a lower limit could always be imposed.

@supakeen supakeen added enhancement New feature or request good first issue Good for newcomers python labels Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers python
Projects
None yet
Development

No branches or pull requests

2 participants