httpose-0.1.1 is not a library.
httpose
A quick and dirty solution to "HTTP-expose" secret meant for Docker build.
Caveat: This does not employ any SSL over HTTP, and assumes the working
networking environment is safe without encryption (e.g. localhost
).
Get Started
Simply run
# stdin
## Serves at `127.0.0.1:2048` by default
)
## (CTRL-C to terminate)
## Pipe in also works
|
## (CTRL-C to terminate)
# env var
HTTPOSE_SECRET=xxx
## (CTRL-C to terminate)
# by file
## (CTRL-C to terminate)
## Serves at 0.0.0.0 interface and port 12345
## Not recommended to serve out of 127.0.0.1 unless within Docker bridge mode
## Help details
You can get the secret value by curl
-ing or wget
when the service is up:
# curl
# wget
Changelogs
See CHANGELOG.md for more details.
Cargo build
You will need to install cargo
and rustc
. See (rustup
)[https://rustup.rs]
for more information.
To build in release mode via cargo
, simply run:
To execute, simply run:
Docker build
To build the image, simply run:
# Host network mode for simplicity
# Bridge mode, requires changing of listening address
# Secret by env var (not recommended because docker inspect can see the secret)
# Secret by file
# Help details