depot/go
Luke Granger-Brown 04c3a8431b go/openshiftauth: init
This is a small "library" for wrapping binaries with magic OAuth authentication based on the automatically-injected k8s service account tokens and OpenShift's OAuth service.

There's an example of this deployed at https://example-lukegb-openshiftauth-test.apps.k8s.lukegb.tech/.

The main pieces of setup that need to happen is:

* Set "serviceAccount" in pod definition
* Add Route for pod
* Edit serviceaccount and add metadata.annotations, e.g.:
    serviceaccounts.openshift.io/oauth-redirectreference.first: >-
      {"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"example"}}
2020-10-04 14:38:56 +01:00
..
openshiftauth go/openshiftauth: init 2020-10-04 14:38:56 +01:00
twitterchiver go: move go.mod to go folder 2020-10-04 11:33:08 +01:00
default.nix go/openshiftauth: init 2020-10-04 14:38:56 +01:00
go.mod third_party/gopkgs: import some more packages 2020-10-04 14:36:31 +01:00
go.sum third_party/gopkgs: import some more packages 2020-10-04 14:36:31 +01:00
go.sum.license go: move go.mod to go folder 2020-10-04 11:33:08 +01:00