opengist icon indicating copy to clipboard operation
opengist copied to clipboard

[Feature] Public/anonymous upload

Open bo0tzz opened this issue 1 year ago • 7 comments

Opengist looks very nice, props on the great project!

I'd like to request a setting to enable anonymous/public gist creation, so an opengist instance can be used without needing to create an account.

bo0tzz avatar Nov 29 '24 09:11 bo0tzz

Another option, at least for me, would be a "referral link" of sorts that allows someone to do an anonymous upload under an existing account.

bo0tzz avatar Nov 29 '24 09:11 bo0tzz

Thanks :)

What's the deal with creating an account ? Besides if you setup OAuth it would require 2-3 clicks for your users to create one. If we implement this, that means the gist would be read only after it was created since it's anonymous ?

thomiceli avatar Nov 29 '24 12:11 thomiceli

I can see maybe see the use case if you're the only one to use Opengist in your private environment, but that would mean to totally remove the accounts system for the instance; why not

thomiceli avatar Nov 29 '24 12:11 thomiceli

What's the deal with creating an account

Not a huge deal of course, but I'm thinking about using it for people to upload troubleshooting info (logs etc) and it'd be nice to keep the barrier on that low, especially if offering a way for people to upload directly from a CLI or such.

the gist would be read only after it was created since it's anonymous

Yes, which is fine. A potential option I've seen some bins offer would be to generate an extra link that allows editing/deleting later, or to throw a temporary cookie into the user's browser. In case of the referral link type setup I imagine it would become owned by the referring user who would then have edit rights.

bo0tzz avatar Nov 29 '24 12:11 bo0tzz

For me, I was thinking it may be helpful to have a simple API where I could, for an example, upload a file via curl on a machine I only have IPMI access to. For an example:

curl -F  "file=@/var/log/some.log" https://gist.example.com/upload

I wouldn't mind having to enter a simple token or some auth if required, but nothing too long as over IPMI you typically can't paste. When having to have others make pastes, maybe we could setup a user account with simple credentials that can be used to upload like this?

grmrgecko avatar Feb 11 '25 23:02 grmrgecko

For me, I was thinking it may be helpful to have a simple API where I could, for an example, upload a file via curl on a machine I only have IPMI access to. For an example:

curl -F  "file=@/var/log/some.log" https://gist.example.com/upload

I wouldn't mind having to enter a simple token or some auth if required, but nothing too long as over IPMI you typically can't paste. When having to have others make pastes, maybe we could setup a user account with simple credentials that can be used to upload like this?

I was just looking around for some "console pasting" function my self, little sadden it doesnt have this.

VinterSolen avatar Mar 19 '25 22:03 VinterSolen

Am also looking for an anonymous pastebin for homelab use. I have quite a lot of Fedora VMs across several physical hosts, all with local identities because lazy. Frequently have to move bits of text around between VMs. I use rustdesk as a universal remote desktop; fantastic piece of software but its reliability in the workflow

copy-a-thing-within-one-desktop extract-the-clipboard-to-the-remote-client switch-to-another-desktop paste-from-remote-client-into-desktop

is low. Logging in from each desktop would just be friction. An anonymous gist solution would be nice.

jonahbenton avatar Aug 15 '25 21:08 jonahbenton