Skip to content

WIP: feat: add cap challenge type - #107

Draft
tacerus wants to merge 1 commit into
DropMorePackets:masterfrom
tacerus:cap-native
Draft

WIP: feat: add cap challenge type#107
tacerus wants to merge 1 commit into
DropMorePackets:masterfrom
tacerus:cap-native

Conversation

@tacerus

@tacerus tacerus commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator

This implements native support for Cap.
While Cap does offer a reCAPTCHA compatible siteverify endpoint, it requires a different frontend call and, as it's commonly self-hosted, customizable backend URLs.
Berghain users should also be encouraged to host the Cap assets by themselves.

This implements native support for Cap.
While Cap does offer a reCAPTCHA compatible siteverify endpoint, it
requires a different frontend call and, as it's commonly self-hosted,
customizable backend URLs.
Berghain users should also be encouraged to host the Cap assets by
themselves.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
@tacerus

tacerus commented Aug 9, 2026

Copy link
Copy Markdown
Collaborator Author

So far, this uses the Cap standalone server.
It might be desirable to implement the server functionality natively in Berghain, there's https://github.com/ackcoder/go-cap or https://github.com/samwafgo/cap_go_server, but I'm not sure if it's a good fit.

@fionera

fionera commented Aug 12, 2026

Copy link
Copy Markdown
Member

When looking into what Cap does, I think we could even replace the default pow challenge with it

@fionera

fionera commented Aug 12, 2026

Copy link
Copy Markdown
Member

Tho that would mean to port their js backend and stuff to go, which would be also a nice flex

@tacerus

tacerus commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator Author

When looking into what Cap does, I think we could even replace the default pow challenge with it

Is it possible without the captcha part? I would prefer to keep the self-validating POW challenge as default and only have captcha as an optional level ...

Tho that would mean to port their js backend and stuff to go, which would be also a nice flex

Yes this is what I meant above, it would be nice as to avoid having to run another service (and a JS one ...), there are two implementations but they seem to be rather fresh in development.

@fionera

fionera commented Aug 13, 2026

Copy link
Copy Markdown
Member

When looking into what Cap does, I think we could even replace the default pow challenge with it

Is it possible without the captcha part? I would prefer to keep the self-validating POW challenge as default and only have captcha as an optional level ...

As I understood Cap, you can present multiple challenges, one of them being simple POW. Thats why I proposed that.

Tho that would mean to port their js backend and stuff to go, which would be also a nice flex

Yes this is what I meant above, it would be nice as to avoid having to run another service (and a JS one ...), there are two implementations but they seem to be rather fresh in development.

Yeah, I honstely would just take their JS backend and throw an LLM against it to port to Go, then take the bits and blops we need.

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

Successfully merging this pull request may close these issues.

2 participants