auth

Paddy 2015-12-14 Parent:fc68085eb40d

181:b7e685839a1b Go to Latest

auth/replication-controllers/authd.json

Break out scopes and events. This repo has gotten unwieldy, and there are portions of it that need to be imported by a large number of other packages. For example, scopes will be used in almost every API we write. Rather than importing the entirety of this codebase into every API we write, I've opted to move the scope logic out into a scopes package, with a subpackage for the defined types, which is all most projects actually want to import. We also define some event type constants, and importing those shouldn't require a project to import all our dependencies, either. So I made an events subpackage that just holds those constants. This package has become a little bit of a red-headed stepchild and is do for a refactor, but I'm trying to put that off as long as I can. The refactoring of our scopes stuff has left a bug wherein a token can be granted for scopes that don't exist. I'm going to need to revisit that, and also how to limit scopes to only be granted to the users that should be able to request them. But that's a battle for another day.

History
paddy@176 1 {
paddy@176 2 "kind":"ReplicationController",
paddy@176 3 "apiVersion":"v1",
paddy@176 4 "metadata":{
paddy@176 5 "name": "ducky-authd",
paddy@176 6 "labels": {
paddy@176 7 "name": "authd",
paddy@176 8 "context": "ducky",
paddy@176 9 "repo": "secondbit--authd",
paddy@176 10 "role": "auth"
paddy@176 11 }
paddy@176 12 },
paddy@176 13 "spec":{
paddy@176 14 "replicas":1,
paddy@176 15 "selector":{
paddy@176 16 "context": "ducky",
paddy@176 17 "name":"authd",
paddy@176 18 "repo": "secondbit--authd",
paddy@176 19 "role": "auth"
paddy@176 20 },
paddy@176 21 "template":{
paddy@176 22 "metadata":{
paddy@176 23 "labels":{
paddy@176 24 "context": "ducky",
paddy@176 25 "name":"authd",
paddy@176 26 "repo": "secondbit--authd",
paddy@176 27 "role": "auth"
paddy@176 28 }
paddy@176 29 },
paddy@176 30 "spec":{
paddy@176 31 "volumes": [
paddy@176 32 {
paddy@176 33 "name": "jwt-volume",
paddy@176 34 "secret": {
paddy@176 35 "secretName": "jwt"
paddy@176 36 }
paddy@176 37 }
paddy@176 38 ],
paddy@176 39 "containers":[
paddy@176 40 {
paddy@176 41 "name":"ducky-authd",
paddy@176 42 "image": "secondbit/authd:latest",
paddy@176 43 "volumeMounts": [
paddy@176 44 {
paddy@176 45 "name": "jwt-volume",
paddy@176 46 "readOnly": true,
paddy@176 47 "mountPath": "/private/kubernetes/jwt"
paddy@176 48 }
paddy@176 49 ],
paddy@176 50 "ports":[
paddy@176 51 {
paddy@176 52 "name": "http",
paddy@176 53 "containerPort":9000
paddy@176 54 }
paddy@176 55 ]
paddy@176 56 }
paddy@176 57 ]
paddy@176 58 }
paddy@176 59 }
paddy@176 60 }
paddy@176 61 }