os-proxy

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

README

os-proxy

Proxies calls to the OpenStack API with a self-signed certificate.

All URLs in the OpenStack catalog are rewritten to point to the proxy itself, which will properly reverse proxy them to the original URL.

Use locally

Download the binary for linux64 on this repository's release page or build it with go build ..

Required configuration:

  • -authurl: URL of the remote OpenStack Keystone.
  • -proxyurl: URL the proxy will be reachable at.

Example:

./os-proxy -authurl='https://openstack.example.com:13000/v3' -proxyurl='https://localhost:15432'

Deploy on the OpenStack cloud

The proxy.sh helper script deploys os-proxy to an OpenStack VM and attaches a floating IP for external connectivity. The Ignition configuration injected in the VM triggers the download of a prebuilt os-proxy binary from Github.

Set OS_PROXY in the environment, and have the openstack client in $PATH.

Required configuration:

  • -a: URL of the remote OpenStack Keystone.
  • -u: URL the proxy will be reachable at.
  • -f: Flavor of the proxy Nova instance.
  • -i: Image of the proxy Nova instance.
  • -u: Name or ID of the public network where to create the floating IP.

Example:

./proxy.sh \
	-a 'https://keystone.example.com:13000' \
	-u 'https://proxy.example.com:5443'     \
	-f 'm1.s2.medium'                       \
	-i 'rhcos'                              \
	-n 'external'

Test

Run make test.

Requirements for the test:

  • Bash v4+
  • Go
  • Netcat
  • Jq

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL