gliderlabs / cmd

Other
28 stars 4 forks source link

app/cmd: introduces preprocessors for session #153

Closed progrium closed 7 years ago

progrium commented 7 years ago

Components can now hook into early session handling. A number of early session handling logic has been put into their respective components. This means you can easily turn them off by disabling their component.

For example, one you might want to turn off in development is the access component which checks GitHub if your user is in the alpha group. This is shown as an example in .env.example.

Another example is disabling the notice on first-time SSH login to login via web first. This is currently tied to the console component, which we probably don't want to disable entirely, but eventually we can split this out or make it configurable for that component. To disable this notice and the console interface you'd set your .env:

export CONSOLE_ENABLED=false
progrium commented 7 years ago

Grumble. Not sure which I'd rather do: update the CI image to Go 1.8 or change sorting back to 1.7 style. :\

progrium commented 7 years ago

CI passed. Quick review @mattaitchison ?