/Sigv4 Auth for AWS

Sigv4 Auth for AWS

v1.0.4

Traefik SigV4 Middleware

This is a Traefik plugin that lets you sign your requests sent to an aws-like API. The plugin can be used to serve static sites from an s3-compatible provider.

Configuration

OptionRequiredDescription
accessKeyXaws Access Key
secretKeyXaws Secret Key
sessionTokenaws Session Token
serviceXaws Service
endpointXaws Endpoint
regionXaws Region

Example config

Static config

# traefik.yml
experimental:
plugins:
sigv4middleware:
moduleName: "github.com/ygormartins/traefik-aws-sigv4-middleware-v1"
# Populate this with the latest release tag.
version: vX.Y.Z

Dynamic config

http:
middlewares:
sigv4:
plugin:
sigv4middleware:
accessKey: ROOTNAME
secretKey: CHANGEME123
service: s3
endpoint: minio.localhost
region: us-east-1
routers:
minio:
rule: host(`minio.localhost`)
service: minio@docker
entryPoints:
- web
middlewares:
- sigv4