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

some sort of access control #113

Closed
aaronpk opened this issue Apr 18, 2020 · 6 comments
Closed

some sort of access control #113

aaronpk opened this issue Apr 18, 2020 · 6 comments

Comments

@aaronpk
Copy link

aaronpk commented Apr 18, 2020

Is there any interest in adding some form of access control to limit who can upload files? I'm interested in using this, but I would be the only person I'd want to be able to upload files.

An API key for the upload API would be simple. Some sort of login to limit the web interface would be a bit more work.

@geek-at
Copy link
Member

geek-at commented May 3, 2020

There's a config setting "UPLOAD_CODE" that requires a code (specified in the config) for each upload. It's not yet implemented but will be soon

@thieman
Copy link

thieman commented May 17, 2020

Alternatively, for my use case it'd be fine if I could use the secret upload URL and then disable the API upload capability entirely. Unless there's a way to do that now that I'm not seeing?

@npalladium
Copy link

This is something I'm interested in too. (Even disabling the API completely after the upload is done is fine.)

And thanks for the amazing project. Works like a charm with Lemmy.

@geek-at
Copy link
Member

geek-at commented Jun 4, 2020

Since I have discovered that someone has uploaded CSAM (Child sexual abuse material) AGAIN on pictshare.net I'll implement this feature today or in the coming days as I'm sick and tired of sending reports to Interpol

@carcinocron
Copy link

@geek-at were you able to implement it?

@geek-at
Copy link
Member

geek-at commented Oct 9, 2020

Yes at the moment I have implemented the ALLOWED_SUBNET Config field where you can enter a CDIR range for IPs that are allowed to upload. But havent implemented the UPLOAD_CODE config setting yet

@geek-at geek-at closed this as completed Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants