infra

command module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

README

Introduction

Infra is identity and access management for Kubernetes. Instead of creating separate credentials and writing scripts to map permissions to Kubernetes, developers & IT teams can integrate existing identity providers (Okta, Google accounts, GitHub auth, Azure active directory) to securely provide developers with access to Kubernetes.

Features

  • One-command access: infra login
  • Fine-grained permissions
  • Onboard & offboard users via Okta (Azure AD, Google, GitHub coming soon)
  • Audit logs for who did what, when (coming soon)
  • CLI & REST API
  • Configure via infra.yaml

Architecture

Install

Install on Kubernetes

Install via kubectl:

kubectl apply -f https://raw.githubusercontent.com/infrahq/early-access/master/deploy/kubernetes.yaml

Infra exposes a LoadBalancer service by default:

kubectl get svc --namespace infra

In this case, Infra is exposed on IP 31.58.101.169

$ kubectl get svc --namespace infra
NAME      TYPE           CLUSTER-IP     EXTERNAL-IP     PORT(S)        AGE
infra     LoadBalancer   10.12.11.116   31.58.101.169   80:32326/TCP   1m

Optionally, map a domain to the exposed endpoint (e.g. infra.example.com to 31.58.101.169)

Install Infra CLI

On macOS:

curl -L "https://github.com/infrahq/infra/releases/latest/download/infra-darwin-$(uname -m)" -o /usr/local/bin/infra && chmod +x /usr/local/bin/infra

On Linux:

curl -L "https://github.com/infrahq/infra/releases/latest/download/infra-linux-$(uname -m)" -o /usr/local/bin/infra && chmod +x /usr/local/bin/infra

On Windows:

curl.exe -L "https://github.com/infrahq/infra/releases/download/latest/infra-windows-amd64.exe" -o infra.exe

Adding Users

Documentation

Develop

Clone the project:

git clone https://github.com/infrahq/infra
cd infra

Run locally:

go run .

Test

Run tests:

go test ./...

Release

Setup

  • GitHub CLI
  • gon for signing MacOS binaries: go get https://github.com/mitchellh/gon
make release         # Build, sign and upload binaries
make release/docker  # Build and push Docker images

Security

We take security very seriously. If you have found a security vulnerability please disclose it privately to us by email via security@infrahq.com

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
cmd
server
Code generated for package server by go-bindata DO NOT EDIT.
Code generated for package server by go-bindata DO NOT EDIT.
test module

Jump to

Keyboard shortcuts

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