Pinniped is the easy, secure way to log in to your Kubernetes clusters.
Go to file
Matt Moyer 434e3fe435
Refactor integration test environment helpers to be more structured.
This change replaces our previous test helpers for checking cluster capabilities and passing external test parameters. Prior to this change, we always used `$PINNIPED_*` environment variables and these variables were accessed throughout the test code.

The new code introduces a more strongly-typed `TestEnv` structure and helpers which load and expose the parameters. Tests can now call `env := library.IntegrationEnv(t)`, then access parameters such as `env.Namespace` or `env.TestUser.Token`. This should make this data dependency easier to manage and refactor in the future. In many ways this is just an extended version of the previous cluster capabilities YAML.

Tests can also check for cluster capabilities easily by using `env := library.IntegrationEnv(t).WithCapability(xyz)`.

The actual parameters are still loaded from OS environment variables by default (for compatibility), but the code now also tries to load the data from a Kubernetes Secret (`integration/pinniped-test-env` by default). I'm hoping this will be a more convenient way to pass data between various scripts than the local `/tmp` directory. I hope to remove the OS environment code in a future commit.

Signed-off-by: Matt Moyer <moyerm@vmware.com>
2020-09-24 18:03:45 -05:00
.github PR template is not working, so trying moving it up one directory 2020-09-17 16:36:33 -07:00
apis Add IdentityProvider field to TokenCredentialRequestSpec. 2020-09-22 10:03:31 -05:00
cmd internal/provider -> internal/dynamiccert 2020-09-23 08:29:35 -04:00
deploy Plumb through ImagePullSecrets to agent pod 2020-09-24 15:52:05 -04:00
deploy-local-user-authenticator Rename many of resources that are created in Kubernetes by Pinniped 2020-09-18 15:56:50 -07:00
doc Replace title in README.md with project logo 2020-09-24 10:09:50 -07:00
generated Upgrade client-go, et al from 1.19.0 to 1.19.2. 2020-09-24 09:21:10 -05:00
hack Upgrade client-go, et al from 1.19.0 to 1.19.2. 2020-09-24 09:21:10 -05:00
internal Fix expected CIC status message on non-hosted control planes 2020-09-24 17:56:55 -04:00
pkg/config Plumb through ImagePullSecrets to agent pod 2020-09-24 15:52:05 -04:00
test Refactor integration test environment helpers to be more structured. 2020-09-24 18:03:45 -05:00
tools Save 2 lines by using inline-style comments for Copyright 2020-09-16 10:35:19 -04:00
.gitattributes Add .gitattributes as a hint to the GitHub diff viewer. 2020-09-15 11:44:23 -05:00
.gitignore Hello, world! 2020-07-02 17:05:59 -07:00
.golangci.yaml Add Go vanity import paths. 2020-09-18 14:56:24 -05:00
.pre-commit-config.yaml Update precommit hook config to ignore generated files and fix whitespace. 2020-08-31 16:41:22 -05:00
ADOPTERS.md Update module/package names to match GitHub org switch. 2020-09-17 12:56:54 -05:00
Dockerfile Bump golang from 1.15.1 to 1.15.2 2020-09-16 14:59:35 +00:00
go.mod Upgrade client-go, et al from 1.19.0 to 1.19.2. 2020-09-24 09:21:10 -05:00
go.sum Upgrade client-go, et al from 1.19.0 to 1.19.2. 2020-09-24 09:21:10 -05:00
LICENSE Add Apache 2.0 license. 2020-07-06 13:50:31 -05:00
MAINTAINERS.md MAINTAINERS.md: add initial draft 2020-09-15 13:14:50 -04:00
README.md Replace title in README.md with project logo 2020-09-24 10:09:50 -07:00
SECURITY.md Update precommit hook config to ignore generated files and fix whitespace. 2020-08-31 16:41:22 -05:00

Pinniped Logo

Overview

Pinniped provides identity services to Kubernetes.

Pinniped allows cluster administrators to easily plug in external identity providers (IDPs) into Kubernetes clusters. This is achieved via a uniform install procedure across all types and origins of Kubernetes clusters, declarative configuration via Kubernetes APIs, enterprise-grade integrations with IDPs, and distribution-specific integration strategies.

Example Use Cases

  • Your team uses a large enterprise IDP, and has many clusters that they manage. Pinniped provides:
    • Seamless and robust integration with the IDP
    • Easy installation across clusters of any type and origin
    • A simplified login flow across all clusters
  • Your team shares a single cluster. Pinniped provides:
    • Simple configuration to integrate an IDP
    • Individual, revocable identities

Architecture

Pinniped offers credential exchange to enable a user to exchange an external IDP credential for a short-lived, cluster-specific credential. Pinniped supports various IDP types and implements different integration strategies for various Kubernetes distributions to make authentication possible.

To learn more, see architecture.md.

Pinniped Architecture Sketch

Trying Pinniped

Care to kick the tires? It's easy to install and try Pinniped.

Installation

Currently, Pinniped supports self-hosted clusters where the Kube Controller Manager pod is accessible from Pinniped's pods. Support for other types of Kubernetes distributions is coming soon.

To try Pinniped, see deploy/README.md.

Contributions

Contributions are welcome. Before contributing, please see the Code of Conduct and the contributing guide.

Reporting Security Vulnerabilities

Please follow the procedure described in SECURITY.md.

License

Pinniped is open source and licensed under Apache License Version 2.0. See LICENSE file.

Copyright 2020 the Pinniped contributors. All Rights Reserved.