Commit graph

3735 commits

Author SHA1 Message Date
Bobby DeSimone
4a52835baa
docs: add issue templates 2019-01-26 13:00:17 -08:00
Bobby DeSimone
661fd89feb
docs: add build from source guide (#32) 2019-01-26 12:10:27 -08:00
Bobby DeSimone
7e1d1a7896
authenticate: refactor middleware, logging, and tests (#30)
- Abstract remaining middleware from authenticate into internal.
- Use middleware chaining in authenticate.
- Standardize naming of Request and ResponseWriter to match std lib.
- Add healthcheck / ping as a middleware.
- Internalized wraped_writer package adapted from goji/middleware.
- Fixed indirection issue with reverse proxy map.
2019-01-25 20:58:50 -08:00
Bobby DeSimone
b9c298d278
authenticate/providers : add gitlab support (#28)
- Add UserInfo struct and implementation to gather additional
  user information if the endpoint exists.
- Add example docker-compose.yml for on-prem gitlab.
- Add gitlab docs.
- Removed explicit email checks in handlers.
- Providers are now a protected type on provider data.
- Alphabetized provider list.
- Refactored authenticate.New to be more concise.
2019-01-24 15:10:16 -08:00
Bobby DeSimone
426e003b03
proxy: add JWT request signing support (#19)
- Refactored middleware and request hander logging.
- Request refactored to use context.Context.
- Add helper (based on Alice) to allow middleware chaining.
- Add helper scripts to generate elliptic curve self-signed certificate that can be used to sign JWT.
- Changed LetsEncrypt scripts to use acme instead of certbot.
- Add script to have LetsEncrypt sign an RSA based certificate.
- Add documentation to explain how to verify headers.
- Refactored internal/cryptutil signer's code to expect a valid EC priv key.
- Changed JWT expiries to use default leeway period.
- Update docs and add screenshots.
- Replaced logging handler logic to use context.Context.
- Removed specific XML error handling.
- Refactored handler function signatures to prefer standard go idioms.
2019-01-22 21:44:22 -08:00
Bobby DeSimone
98b8c7481f
Merge pull request #25 from desimone/bug/skip-provider, fixes #24.
authenticate: fixes incorrect error check
2019-01-22 21:12:30 -08:00
Bobby DeSimone
f9c0961c77
authenticate: fixes incorrect error check 2019-01-22 21:10:20 -08:00
Michael Barrientos
356aa33970 Add SKIP_PROVIDER_BUTTON env 2019-01-22 17:34:06 -08:00
Bobby DeSimone
44527662fd
Rename Authenticator to Authenticate.
Rename single-constructor packages NewProxy and NewAuthenticator to New
Removed unused upstreamTransport.
2019-01-20 12:15:29 -08:00
Bobby DeSimone
2c7a7f2e02
cmd/pomerium: add check for service validity
proxy: update key check error message to check 32 bytes
authenticate: update key check error message to check 32 bytes
docs: update readme for clarity
2019-01-19 11:32:36 -08:00
Bobby DeSimone
9404dafcf4
internal/cryputil: combines aead and cryptutil packages
- Refactored encrypt / decrypt methods to use aead's NonceSize() interface method.
- Add explicit GenerateKey function.
- Remove mutex on XChaCha20.
2019-01-18 12:08:54 -08:00
Bobby DeSimone
24b11b0428
internal/cryputil: combines aead and cryptutil packages.
- Refactored encrypt / decrypt methods to use aead's NonceSize() interface method.
- Add explicit GenerateKey function.
- Remove mutex on XChaCha20.
2019-01-18 11:55:04 -08:00
Bobby DeSimone
131810ccfe
docs : add docker automated build icon to readme 2019-01-17 12:05:34 -08:00
Bobby DeSimone
b312357c01
docs : update readme and quickstart 2019-01-17 09:20:16 -08:00
Bobby DeSimone
ae4fd837a0
Typo in readme 2019-01-17 00:23:05 -08:00
Bobby DeSimone
929a1ca7b0
deployment : add docker support, docker-compose example, & quick-start guide. 2019-01-17 00:22:10 -08:00
Bobby DeSimone
60afad1bd7
deployment : add docker-compose file 2019-01-17 00:08:36 -08:00
Bobby DeSimone
e41d11f78b
deployment : add docker-compose file 2019-01-16 23:59:36 -08:00
Bobby DeSimone
4042f71383
deployment : add docker-compose file 2019-01-16 17:44:53 -08:00
Bobby DeSimone
1dac8e56d0
Merge branch 'feature/XChaCha20-Poly1305' 2019-01-16 12:37:26 -08:00
Bobby DeSimone
8d84391340
internal/aead : replace miscreant with xchacha20poly1305 2019-01-16 12:36:59 -08:00
Bobby DeSimone
5a58290ca9
internal/aead : replace miscreant with xchacha20poly1305 (#15) 2019-01-16 12:27:34 -08:00
Bobby DeSimone
72922b8ee8
internal/aead : replace miscreant with xchacha20poly1305 2019-01-16 12:14:51 -08:00
Michael Barrientos
d24516f6e4 cmd/pomerium : add service modes (#9) 2019-01-16 07:58:05 -08:00
Michael Barrientos
7c2c9ceffe deployment : fixes dockerfile closes #9 (#14). 2019-01-15 18:02:39 -08:00
Bobby DeSimone
f50ed074b1
Remove unused test files.
Fix build at golang tip.
2019-01-15 15:47:28 -08:00
Bobby
074bc0e63c
cmd/promerium : support TLS configuration from environmental variables (#12)
* Add ability to set TLS configuration from environmental variables.
* Add support for enabling debug mode from environmental variables.
2019-01-15 15:24:05 -08:00
Bobby
0766725ff8
proxy : add HTTP endpoint support (#13)
proxy : Add HTTP (insecure) endpoint support, closes #11.

* Fix typos
* Fixed additional typos and an ineffectual assignment
* Update route configuration in docs
2019-01-15 15:06:16 -08:00
bdd
56c89e8653
Improve test coverage. (#8)
* Improve test coverage.
* Remove unused http status code argument from SignInPageMethod.
* Removed log package in internal packages.
* Add test to check https scheme is used for authorization url.
* Add unit tests for global logging package.
2019-01-11 13:49:28 -10:00
bdd
5a75ace403
Fixes #2 : Adds Microsoft Azure Active Directory provider support (#5) 2019-01-05 01:28:13 -08:00
Bobby DeSimone
46ac3293a8
update reamde and docs 2019-01-04 21:24:07 -08:00
Bobby DeSimone
d4818fd5e3
Update docs and readme 2019-01-04 18:57:45 -08:00
Bobby DeSimone
90ab756de1
Added gif to the readme.
Simplified, and de-duplicated many of the configuration settings.
Removed configuration settings that could be deduced from other settings.
Added some basic documentation.
Removed the (duplicate?) user email domain validation check in proxy.
Removed the ClientID middleware check.
Added a shared key option to be used as a PSK instead of using the IDPs ClientID and ClientSecret.
Removed the CookieSecure setting as we only support secure.
Added a letsencrypt script to generate a wildcard certificate.
Removed the argument in proxy's constructor that allowed arbitrary fucntions to be passed in as validators.
Updated proxy's authenticator client to match the server implementation of just using a PSK.
Moved debug-mode logging into the log package.
Removed unused approval prompt setting.
Fixed a bug where identity provider urls were hardcoded.
Removed a bunch of unit tests. There have been so many changes many of these tests don't make sense and will need to be re-thought.
2019-01-04 18:25:03 -08:00
Bobby DeSimone
52a87b6e46
Add code coverage with codecov.io 2019-01-02 12:16:44 -08:00
Bobby DeSimone
d56c889224
initial release 2019-01-02 12:13:36 -08:00