0-hub-gw

command module
v0.0.0-...-61b7590 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

README

Zero-DB Gateway

Allows to protect backend Zero-DB for Hub uploads with protection. Supports itsyou.online and threefold connect.

Summary

Expose a small RESP (redis) protocol server supporting small amount of commands, used to provide public access to another backend behind (tested with 0-db).

Commands

Small amount of commands are available.

AUTH

Authenticate yourself with a JWT as argument. Your JWT needs to be a valid ItsYou.Online JWT token or a token generated via the hub for threefold connect.

EXISTS

Forward to the backend, EXISTS command, only if the user is authenticated.

SET

Forward SET to the backend, only if the user is authenticated and if the payload matches the key format used by the backend storage (flist backend).

This avoid anyone to push unexpected data or overwrite data with fake data.

INFO

Returns legacy answer to determine it's a gateway.

SELECT

Wrapper used to avoid command error, this does nothing

Repository Owner

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL