http-module-v0
Container Image
europe-west2-docker.pkg.dev/tinyplatform/tinysystems/http-module-v0:0.1.184Components 3 available
http_auth_parse
Extracts Basic Auth credentials from HTTP headers. In port receives: context + headers array. Out port always emits: {context, found, user, password}. If Authorization header with 'Basic' scheme found, decodes base64 and sets found=true with user/password. Otherwise found=false.
http_request
Outbound HTTP request maker. Request port receives: context, method, timeout, URL, headers, contentType, body. Blocks until HTTP response received. On success (status < 400): emits context + response on Response port. On failure or status >= 400: returns error, or if enableErrorPort=true in settings, emits on Error port instead.
http_server
HTTP request handler. Start port receives configuration and starts the server (blocks until stopped). Each incoming HTTP request emits on Request port. Wire Request to processing logic, then wire result to Response port with statusCode, contentType, headers, body.
Release Notes
Tiny Systems HTTP module
HTTP clients and servers
Build locally
go run cmd/main.go tools build --devkey abcd11111e --name github.com/tiny-systems/http-module --version v1.0.5 --platform-api-url http://localhost:8281
Run locally
HOSTNAME=http-1 OTLP_DSN=http://test.token@localhost:2345 go run cmd/main.go run --name localsecond/http-module-v1 --namespace=tinysystems --version=1.0.5
Required Permissions
This module requires elevated Kubernetes RBAC permissions.
| API Group | Resources | Verbs |
|---|---|---|
core | pods | get |
core | services | getlistupdate |
networking.k8s.io | ingresses | getlistupdate |