Skip to content

endocrimes/nomadproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nomadproxy

An mTLS-escaping Nomad Proxy that exposes the Nomad API to your Tailscale Tailnet.

Build

go build -v -o nomadproxy ./nomadproxy.go

Run

Static auth key

If TS_AUTH_KEY is present in the environment, this takes precedence for authenticating the proxy.

export TS_AUTH_KEY='...'

./nomadproxy \
  --hostname="nomad" \
  --backend-addr="https://nomad/ui"

OAuth client

If OAuth client credentials are provided, a short-lived auth key will be created for authenticating the proxy when/as needed. The tag(s) associated with the OAuth client (and subsequent device auth key) can be supplied via --device-tag.

export TAILNET_NAME='...'
export TS_OAUTH_CLIENT_ID='...'
export TS_OAUTH_CLIENT_SECRET='...'

./nomadproxy \
  --hostname="nomad" \
  --backend-addr="https://nomad/ui" \
  --device-tag='tag:nomad'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •