Commit graph

285 commits

Author SHA1 Message Date
Bobby DeSimone
fc3b16d366
docs: add AdGuard recipe (#359)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-10-09 08:28:12 -07:00
Bobby DeSimone
acc85dbf42 docs: use master for docs again
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-10-08 17:28:06 -07:00
Bobby DeSimone
28eae36ce1
v0.4.0
deployment: prepare v0.4.0 (#350
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-10-07 19:53:57 -07:00
Bobby DeSimone
a96aec57d5
proxy: add per-route request headers setting (#346)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-10-04 14:51:52 -07:00
Bobby DeSimone
eaa1e7a4fb
proxy: support external access control requests (#324)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-10-03 21:22:44 -07:00
Bobby DeSimone
df822a4bae
all: support insecure mode
- pomerium/authenticate: add cookie secure setting
- internal/config: transport security validation moved to options
- internal/config: certificate struct hydrated
- internal/grpcutil: add grpc server mirroring http one
- internal/grpcutil: move grpc middleware
- cmd/pomerium: use run wrapper around main to pass back errors
- cmd/pomerium: add waitgroup (block on) all servers http/grpc

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-10-02 18:44:19 -07:00
Bobby DeSimone
412782658b
docs: use dev for current master branch
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-10-02 17:16:56 -07:00
Bobby DeSimone
7cef246d53
docs: add version dropdown
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-10-02 15:31:02 -07:00
Bobby DeSimone
1e4496c2b9
Merge pull request #334 from desimone/docs/add-nist-zta
docs: add nist publication to background
2019-10-01 18:50:07 -07:00
Travis Groth
251ab0d527
internal/config: Switch to using struct scoped viper instance (#332)
* Switch to using struct scoped viper instance

* Rename NewXXXOptions

* Handle unchecked errors from viper.BindEnv
2019-10-01 18:16:36 -04:00
Bobby DeSimone
13baa22898
docs: add nist publication to background
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-10-01 10:24:08 -07:00
Bobby DeSimone
33d4e4843b
internal/log: return full X-Forwarded-For
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-09-28 12:15:13 -07:00
Bobby DeSimone
7c755d833f
authenticate: encrypt & mac oauth2 callback state
- cryptutil: add hmac & tests
- cryptutil: rename cipher / encoders to be more clear
- cryptutil: simplify SecureEncoder interface
- cryptutil: renamed NewCipherFromBase64 to NewAEADCipherFromBase64
- cryptutil: move key & random generators to helpers

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-09-23 19:15:52 -07:00
Bobby DeSimone
5842f3033a
middleware: health-check respond to all methods
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-09-19 16:05:07 -07:00
Stuart Howlette
490d131070 docs: add AWS Cognito identity provider instructions (#314)
* Added AWS Cognito instructions for working with Pomerium
* pngcrushed the images, and added cognito to vuepress identity providers config
2019-09-19 08:36:05 -07:00
Bobby DeSimone
cd6311773f
Merge pull request #311 from desimone/bug/308
cmd/pomerium: add host to main logging handler
2019-09-18 19:55:00 -07:00
Bobby DeSimone
cfeb5e1ef9
Merge pull request #310 from desimone/bug/262
proxy: handle double slash in paths
2019-09-18 19:54:38 -07:00
Bobby DeSimone
c315b62df4
Merge pull request #304 from desimone/bug/fix-group-impersonation
proxy: fix group impersonation bug
2019-09-18 19:54:17 -07:00
Travis Groth
d5ac4a676a
Add production configuration docs (#309) 2019-09-18 21:12:31 -04:00
Bobby DeSimone
4d05ca635e
docs: fix existing links
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-09-17 09:07:25 -07:00
Bobby DeSimone
21e215ccea
proxy: handle double slash in paths
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-09-16 20:34:04 -07:00
Bobby DeSimone
d9b18f77b7
update changelog 2019-09-16 20:24:30 -07:00
Bobby DeSimone
decf661eb0
proxy: fix group impersonation bug
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-09-16 19:23:55 -07:00
Bobby DeSimone
dc12947241
all: refactor handler logic
- all: prefer `FormValues` to `ParseForm` with subsequent `Form.Get`s
- all: refactor authentication stack to be checked by middleware, and accessible via request context.
- all: replace http.ServeMux with gorilla/mux’s router
- all: replace custom CSRF checks with gorilla/csrf middleware
- authenticate: extract callback path as constant.
- internal/config: implement stringer interface for policy
- internal/cryptutil: add helper func `NewBase64Key`
- internal/cryptutil: rename `GenerateKey` to `NewKey`
- internal/cryptutil: rename `GenerateRandomString` to `NewRandomStringN`
- internal/middleware: removed alice in favor of gorilla/mux
- internal/sessions: remove unused `ValidateRedirectURI` and `ValidateClientSecret`
- internal/sessions: replace custom CSRF with gorilla/csrf fork that supports custom handler protection
- internal/urlutil: add `SignedRedirectURL` to create hmac'd URLs
- internal/urlutil: add `ValidateURL` helper to parse URL options
- internal/urlutil: add `GetAbsoluteURL` which takes a request and returns its absolute URL.
- proxy: remove holdover state verification checks; we no longer are setting sessions in any proxy routes so we don’t need them.
- proxy: replace un-named http.ServeMux with named domain routes.

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-09-16 18:01:14 -07:00
Bobby DeSimone
37b0897274
docs: fix example configuration urls
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-09-12 13:58:09 -07:00
Yuchen Ying
27a3870373 Add tls_server_name option to policy file. 2019-09-07 04:09:49 +00:00
Bobby DeSimone
380d314404
authenticate: make service http only
- Rename SessionState to State to avoid stutter.
- Simplified option validation to use a wrapper function for base64 secrets.
- Removed authenticates grpc code.
- Abstracted logic to load and validate a user's authenticate session.
- Removed instances of url.Parse in favor of urlutil's version.
- proxy: replaces grpc refresh logic with forced deadline advancement.
- internal/sessions: remove rest store; parse authorize header as part of session store.
- proxy: refactor request signer
- sessions: remove extend deadline (fixes #294)
- remove AuthenticateInternalAddr
- remove AuthenticateInternalAddrString
- omit type tag.Key from declaration of vars TagKey* it will be inferred
  from the right-hand side
- remove compatibility package xerrors
- use cloned http.DefaultTransport as base transport
2019-09-04 16:27:08 -07:00
Bobby DeSimone
bc72d08ad4
Merge pull request #292 from desimone/release/v0-3-0
release: v0.3.0
2019-09-01 10:59:21 -07:00
Bobby DeSimone
f8017b45b7
release: v0.3.0
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-09-01 10:29:26 -07:00
Felipe Zipitría
b945b415ed Remove duplicated text (#287)
Fix typo in readme.
2019-08-31 16:54:23 -07:00
Travis Groth
2d2f314a7b
Make auth flow diagram fonts consistent (#278) 2019-08-24 15:16:02 -04:00
Bobby DeSimone
6e6ab3baa0
httputil: use http error wrapper
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-24 09:15:07 -07:00
Travis Groth
d26f935cbb
Add authenticatoin flow diagram (#275) 2019-08-22 18:30:49 -04:00
Bobby DeSimone
e3d78932d2
Merge pull request #271 from desimone/docs/enable-algolia
docs: use algolia for search
2019-08-21 16:26:41 -07:00
Bobby DeSimone
7d1c8ecc55
docs: enable algolia
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-20 09:35:01 -07:00
Bobby DeSimone
d7ecd76653
Merge pull request #270 from desimone/docs/263
docs: update kubernetes example
2019-08-20 08:51:20 -07:00
Bobby DeSimone
32f280f8f9
docs: update kubernetes example
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-20 08:46:18 -07:00
Travis Groth
66ce8ed8f2
Update architecture diagrams (#269) 2019-08-15 22:31:49 -04:00
Bobby DeSimone
1bfb64ed31
config: remove references to named ports
- Go 1.12.8 changed the way url parse handles service named ports.

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-15 09:06:53 -07:00
Bobby DeSimone
7d41431e3b
Merge pull request #265 from desimone/docs/add-community-details
docs: add mailing list and twitter
2019-08-14 15:22:15 -07:00
Travis Groth
ba37ed2305
GRPC Improvements 2019-08-14 18:14:09 -04:00
Bobby DeSimone
6b7a3e0a5a
docs: add mailing list and twitter
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-14 09:10:59 -07:00
Bobby DeSimone
7f99671bfa
docs: add contributing guide for docs
- merge developers guide and contributing
- delete duplicate "from source"
- add docs makefile entry
- fix "edit in github" link

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-12 19:55:51 -07:00
Bobby DeSimone
8002e74982
proxy: enable client certificate in transport
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-12 15:08:18 -07:00
Bobby DeSimone
66751fa15a
docs: add visual studio code server
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-08 10:04:56 -07:00
Bobby DeSimone
413c50bca7
docs: readd programmatic-access
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-07 20:15:34 -07:00
Bobby DeSimone
351bf2fd53
cllarify release branches and timeline
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-05 13:37:20 -07:00
Bobby DeSimone
55a97fabd4
typo 2019-08-03 22:29:40 -07:00
Bobby DeSimone
0a530fbea2
docs: update site ui
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
2019-08-03 22:28:18 -07:00
Bobby DeSimone
f1a3475466
v0.2.0 2019-08-03 18:14:09 -07:00