Skip to content

Caddy module to inject AWS v4 signature in reverse-proxy

License

Notifications You must be signed in to change notification settings

kkriehl/caddy-aws-transport

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Transport for Caddy

Note

The module is not validated -- yet! I don't use AWS personally, so feedback is welcome. Consider it WIP until this is removed. The configuration structure is also subject to change.

This module aims to injects the AWS V4 Signature for requests proxied to AWS services. It also implicitly calculates and sets the x-amz-content-sha256 header value.

Example

Caddyfile

example.com {
	reverse_proxy https://{$BUCKET_NAME}.s3.{$AWS_REGION}.amazonaws.com {
		header_up Host {upstream_hostport}
		transport aws {
			access_id {$AWS_ACCECSS_ID}
			secret_key {$AWS_SECRET_KEY}
			region {$AWS_REGION}
			service {$AWS_SERVICE}

			# other 'http' transport directives per:
			# https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#the-http-transport 
		}
	}
}

About

Caddy module to inject AWS v4 signature in reverse-proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%