Commit graph

106 commits

Author SHA1 Message Date
Tejasvi Nareddy
9992eebcac proxy: fix bug with incorrect addressing causing invalid route configs 2019-05-21 17:08:03 -04:00
Bobby DeSimone
2eb2eb0620
Merge pull request #127 from deltabweb/master
deployment: add arm64v8 dockerfile
2019-05-19 20:07:26 -07:00
deltabweb
d1042d8c8b
Create Dockerfile for arm64 - Fixes #125 2019-05-20 14:16:47 +12:00
Bobby DeSimone
382f9de876
Merge pull request #126 from benny-gold/master
authenticate: add more verbose errors to authenticate handler
2019-05-19 11:31:27 -07:00
Ben Gould
07bb698bb9 more verbose errors on invalid uri parameter 2019-05-19 19:22:13 +01:00
Bobby DeSimone
af2c41a238
internal/config: centralize options handling 2019-05-18 12:44:32 -07:00
Travis Groth
ebb6df6c3f Refactor to central options struct and parsing 2019-05-18 08:17:36 -04:00
Bobby DeSimone
5970d6c766
Merge pull request #121 from banzaicloud/dockerfile-golint
docker: add missing golint command
2019-05-15 12:57:40 -07:00
Nandor Kracser
8b86454cb5 docker: add missing golint command 2019-05-15 13:29:16 +02:00
Bobby DeSimone
27d4683662
authenticate: add CSP headers to this service only (#120) 2019-05-14 22:29:24 -07:00
Bobby DeSimone
cfac5f10ff
cmd/pomerium: move middleware for all http handlers to global context (#117) 2019-05-14 13:23:25 -07:00
Bobby DeSimone
04a653f694
docs: fix typos and reorganize 2019-05-09 23:16:26 -07:00
Bobby DeSimone
5448e3599a
cmd/pomerium : refactor main to more testable (#112)
- cmd/pomerium: refactor global timeouts to be configurable
- cmd/pomerium: add tests
- cmd/pomerium: remove debug flag, set with env vars only
- cmd/pomerium: global ping now returns version not OK
- proxy: validate shared secret encoding and length
- docs: add timeout to example policy
- docs: document timeouts and cors
- docs: update pomerium logo
- docs: add policy authorization docs
2019-05-09 23:10:19 -07:00
Bobby DeSimone
5e37c29dfe
proxy: make http headers configurable (#108)
- http headers can be disabled via an env config
- http headers can be configured by k/v map env config
- pomerium/envconfig updated to use original syntax v1.5.0
- go.mod / go.sum patches updated
2019-05-07 12:05:25 -07:00
Bobby DeSimone
0086fa05f8
docs: fix typos in reference 2019-05-03 20:54:21 -07:00
Bobby DeSimone
25d76cd5c0
proxy: make http redirect server configurable (#105) 2019-05-03 20:48:26 -07:00
Bobby DeSimone
286aad3b92
internal/httputil: add strip port function (#106) 2019-05-03 20:21:38 -07:00
Bobby DeSimone
d235f8ebf2
deployment: just make non amd builds 2019-05-03 13:13:00 -07:00
Bobby DeSimone
bad57938ac
Merge pull request #86 from nitper/cors
add cors_allow_preflight option to a route's policy
2019-05-03 12:30:55 -07:00
Bobby DeSimone
7d2af213cc
deployment: add images for arm (#102) 2019-05-03 12:28:29 -07:00
nitper
45bb2e0a4d
add cors_allow_preflight option to route policy 2019-05-03 15:16:46 -04:00
Bobby DeSimone
c18f7d89ae
deployment: use distroless builds (#101)
Replaces the current alpine based Dockerfile with distroless. Improvements include:

- Minimal surface area, ideal for static builds like pomerium.
- Includes `ca-certificates`
- Includes`nsswitch`

Closes #97 .
2019-05-02 19:02:46 -07:00
Bobby DeSimone
1a3add8fbc
bug: version should be processed before other flags (#99) 2019-05-01 12:52:57 -07:00
Bobby DeSimone
4bdb9173ff
version++ 2019-04-30 21:22:48 -07:00
Bobby DeSimone
1d8eb12d7a
changelog++ 2019-04-30 21:20:48 -07:00
Bobby DeSimone
ce7a8b1f2d
docs: add certificate section (#96)
Closes #88
2019-04-27 20:21:43 -07:00
Bobby DeSimone
857b9e5773
cmd/pomerium: redirect http and add hsts headers (#92) 2019-04-24 13:29:11 -07:00
Bobby DeSimone
fbe1cae482
proxy: remove unused setting AuthorizeInternalAddr (#93)
- Added unit tests for policy validation.
- Removed extraneous policy validation for URLs.
- Add dependency caching to dockerfile.
2019-04-24 13:28:29 -07:00
Bobby DeSimone
96f4b8bd61
docs: add sitemap 2019-04-14 17:59:31 -07:00
Bobby DeSimone
603e6a17b9
authenticate: infer settings from authenticate url (#83) 2019-04-10 12:16:00 -07:00
Bobby DeSimone
06da599fbc
internal/identity: replace legacy approval_prompt=force with prompt=consent(#82)
Fixes a bug where caused by setting both prompt=consent and approval_prompt=force.
2019-04-08 17:32:40 -07:00
Bobby DeSimone
20b3950811
internal/identity: explicitly request a refresh_token from google on authorization
Google only provide refresh_token on the first authorization from the user. If user clears cookies, re-authorization will not bring back refresh_token. A work around to this is to add prompt=consent to the OAuth redirect URL and will always return a refresh_token.

Fixes Issue #80
2019-04-08 13:21:57 -07:00
Lian Duan
f54bf3f291
Force requesting refresh_token from Google
Google only provide refresh_token on the first authorization from the user. If user clears cookies, re-authorization will not bring back refresh_token. A work around to this is to add prompt=consent to the OAuth redirect URL and will always return a refresh_token.
2019-04-08 16:07:51 +02:00
Bobby DeSimone
7bf257f6e9
docs: add synology tutorial (#79) 2019-04-06 23:35:20 -07:00
Bobby DeSimone
41c42f590f
v0.0.3 2019-03-29 16:13:15 -07:00
Bobby DeSimone
0b0010e6ce
docs: changelog++ v0.0.3 (#76) 2019-03-29 16:09:46 -07:00
Bobby DeSimone
8ead5b2a7e
docs: update helm_gke script and docs 2019-03-29 11:41:37 -07:00
Bobby DeSimone
5284c8c32b
deployment: update helm and add quick-start docs (#75)
- adds quick-start documentation for using helm
- update helm deployment charts to match outstanding official charts repo.
2019-03-29 08:35:31 -07:00
Bobby DeSimone
7c7939cf5b
deployment: add google analytics 2019-03-28 22:28:37 -07:00
Bobby DeSimone
b18a462681
internal/log: fix setting log level (#74)
- POMERIUM_DEBUG no longer sets log level.
- LOG_LEVEL now responsible for setting global log level.
2019-03-28 11:40:36 -07:00
Bobby DeSimone
a39e84cef8
internal/identity: use email for group identifier for gsuite (#72) 2019-03-26 20:29:57 -07:00
Bobby DeSimone
b93a8aa79c
proxy: add debug message for cert pool 2019-03-24 17:12:37 -07:00
Bobby DeSimone
45e6a8dc57
docs: update changelog, documentaiton, and helm configurations. (#63)
- Update changelog.
- Update docs to cover authorization support.
- Updates helm to support authorization, and policy file.
2019-03-19 10:55:41 -07:00
Bobby DeSimone
eb9dff0c48
scripts: fix kubernetes script 2019-03-12 15:44:54 -07:00
Bobby DeSimone
0a501b61ed
authenticate: support kubernetes (#62)
- cmd/pomerium: made ping a toplevel route for all services.
- docs: updated kubernetes script and corresponding configuration yaml's
2019-03-12 15:31:17 -07:00
Bobby DeSimone
c13459bb88
authorize: add authorization (#59)
* authorize: authorization module adds support for per-route access policy. In this release we support the most common forms of identity based access policy: `allowed_users`, `allowed_groups`, and `allowed_domains`. In future versions, the authorization module will also support context and device based authorization policy and decisions. See website documentation for more details.
 * docs: updated `env.example` to include a `POLICY` setting example.
 * docs:  added `IDP_SERVICE_ACCOUNT` to  `env.example` .
 * docs: removed `PROXY_ROOT_DOMAIN` settings which has been replaced by `POLICY`.
 * all: removed `ALLOWED_DOMAINS` settings which has been replaced by `POLICY`. Authorization is now handled by the authorization service and is defined in the policy configuration files.
 * proxy: `ROUTES` settings which has been replaced by `POLICY`.
* internal/log: `http.Server` and `httputil.NewSingleHostReverseProxy` now uses pomerium's logging package instead of the standard library's built in one.

Closes #54
Closes #41
Closes #61
Closes #58
2019-03-07 12:47:07 -08:00
Bobby DeSimone
1187be2bf3
authenticator: support groups (#57)
- authenticate/providers: add group support to azure
- authenticate/providers: add group support to google
- authenticate/providers: add group support to okta
- authenticate/providers: add group support to onelogin
- {authenticate/proxy}: change default cookie lifetime timeout to 14 hours
- proxy: sign group membership
- proxy: add group header
- deployment: add CHANGELOG
- deployment: fix where make release wasn’t including version
2019-02-28 19:34:22 -08:00
Bobby DeSimone
a2d647ee5b
deployment: add automatic travis releases 2019-02-19 14:40:47 -08:00
Bobby DeSimone
1848899152
v0.0.2 2019-02-19 14:02:15 -08:00
Bobby DeSimone
afd5abdc09
cmd/pomerium: add service mode to log 2019-02-19 11:23:10 -08:00