Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Kiam server health check is hardcoded #1350

Closed
kevtaylor opened this issue Jun 4, 2018 · 2 comments
Closed

Kiam server health check is hardcoded #1350

kevtaylor opened this issue Jun 4, 2018 · 2 comments
Assignees

Comments

@kevtaylor
Copy link
Contributor

The latest vault (0.10.1) does not allow port names in the subject alternative name

Previous editions allowed this: "alt_names=kiam-server:443,localhost:443" when creating an pki issue

This has now been stopped and only valid dns names are allowed

Vault will allow localhost overriding which will create:

X509v3 Subject Alternative Name:
                DNS:localhost

...but the server health checks in the kiam-server manifest specify the port in the server address check and this is validated against the SAN in the cert

livenessProbe:
                  exec:
                    command:
                    - /health
                    - --cert=/etc/kiam/tls/server.pem
                    - --key=/etc/kiam/tls/server-key.pem
                    - --ca=/etc/kiam/tls/ca.pem
                    - --server-address=localhost:443
                    - --server-address-refresh=2s
                    - --timeout=5s

Need to either allow a configurable server-address or have some other health check

/cc @pingles

@kevtaylor
Copy link
Contributor Author

I'm going to put in a PR to make the server address configurable
/assign @kevtaylor

@pingles
Copy link

pingles commented Jun 11, 2018

We recently took a PR to address this uswitch/kiam#86. I'm hoping we can pick up a few other changes and have a 3.0 release within a couple of weeks. The change has been integrated so there's a tagged image on Quay with the new code but there's a few other improvements I'd like to see pulled in before we move to do another release.

The TLS change is potentially breaking (depending on how certs are generated) so it is potentially worth talking about how kube-aws does that currently. If you're generating them with Vault and there's no port in the server name then you should be able to work fine.

davidmccormick pushed a commit to HotelsDotCom/kube-aws that referenced this issue Jul 18, 2018
Consolidates the kiam parts into the kiamSupport configuration.
Also adds the listeners for server and agent as configurable options.
The previously KIAMImage type is now underneath kiamSupport, so this is a breaking change to existing cluster.yaml files

Now looks like this
```
  kiamSupport:
    enabled: true
    image:
      repo: quay.io/uswitch/kiam
      tag: v2.8
    server: localhost
    agent: kiam-server
```

The original DNS health check/server settings are preserved as defaults
The kiam image is bumped to v2.8

Resolves kubernetes-retired#1350

Conflicts:
	core/controlplane/config/config.go
	core/controlplane/config/templates/cluster.yaml
	test/integration/maincluster_test.go
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants