nginx

Paddy 2015-06-30

1:ac9c19126939 Go to Latest

nginx/secrets/jwt.json

Make nginx kubernetes-ready. We had to update to use a ubuntu-based image to build nginx into, because (and I kid you not) alpine linux straight-up ignores your resolv.conf file, meaning any attempt to use it with kubernetes DNS is doomed to fail. Who thought this was a good idea? So we're using a bloated image instead. Oh well. We also are running a wrapper script instead of nginx directly, so we can inject the JWT_SECRET environment variable based on a kubernetes secret file. We define the secret file (using a placeholder secret, obvs) so that future-Paddy can remember what the hell it looks like, when he inevitably loses the file and needs to sin up a new cluster. Or whatever. Finally, we updated the token expiration error message to be in an errors array, as God (and our API conventions) intended.

History
1 {
2 "apiVersion": "v1",
3 "kind": "Secret",
4 "metadata" : {
5 "name": "jwt",
6 "namespace": "default"
7 },
8 "data": {
9 "secret": "INSERT BASE64 ENCODED SECRET HERE"
10 }
11 }