Joel Speed
9bbd6adce9
Integrate HealthCheck middleware
2020-06-14 21:05:17 +01:00
Nick Meves
ce2e92bc57
Improve design of Base64Cipher wrapping other ciphers.
...
Have it take in a cipher init function as an argument.
Remove the confusing `newCipher` method that matched legacy behavior
and returns a Base64Cipher(CFBCipher) -- instead explicitly ask for
that in the uses.
2020-06-12 14:36:58 -07:00
Nick Meves
f7cca1d0b3
Refactor encryption.Cipher to be an Encrypt/Decrypt Interface
...
All Encrypt/Decrypt Cipher implementations will now take
and return []byte to set up usage in future binary compatible
encoding schemes to fix issues with bloat encrypting to strings
(which requires base64ing adding 33% size)
2020-06-12 14:36:58 -07:00
Yoshiki Nakagawa
d8d43bb51b
Support new option "github-user" ( #421 )
...
* feat(github): support new option "github-user"
* feat(github): rename github-user to github-users
* feat(github): update docs for github-users option
* feat(github): remove unneeded code
* feat(github): remove logging
* feat(github-user): use github-user as flagset options
* feat(github-user): remove optionns.go
* feat(github-user): add github-user flagset
* feat(github): improve readability in the docs
* feat(github-user): refactored SetUsers method
* Update flag description
Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
2020-06-01 20:02:07 +01:00
Joel Speed
3cbac6122d
Move configuration of logger to separate file
2020-05-31 14:08:00 +01:00
Joel Speed
3afcadae76
Move logging options to a struct
2020-05-31 14:08:00 +01:00
Timo Beckers
276d1c6f19
Always encrypt sessions regardless of configuration
2020-05-24 21:23:04 +01:00
Joel Speed
cce2c680d8
Move RealClientIP code to IP packages
2020-05-23 15:17:41 +01:00
Joel Speed
44b27e0208
Move Options and Validation to package
2020-05-21 22:43:42 +01:00