You've already forked oauth2-proxy
							
							
				mirror of
				https://github.com/oauth2-proxy/oauth2-proxy.git
				synced 2025-10-30 23:47:52 +02:00 
			
		
		
		
	Document bcrypt encryption for htpasswd
Remove mention of (insecure) SHA option for encryption.
This commit is contained in:
		| @@ -8,6 +8,8 @@ | ||||
|  | ||||
| ## Changes since v6.1.1 | ||||
|  | ||||
| - [#764](https://github.com/oauth2-proxy/oauth2-proxy/pull/764) Document bcrypt encryption for htpasswd (and hide SHA) (@lentzi90) | ||||
|  | ||||
| # v6.1.1 | ||||
|  | ||||
| ## Release Highlights | ||||
|   | ||||
| @@ -59,7 +59,7 @@ | ||||
| # authenticated_emails_file = "" | ||||
|  | ||||
| ## Htpasswd File (optional) | ||||
| ## Additionally authenticate against a htpasswd file. Entries must be created with "htpasswd -s" for SHA encryption | ||||
| ## Additionally authenticate against a htpasswd file. Entries must be created with "htpasswd -B" for bcrypt encryption | ||||
| ## enabling exposes a username/login signin form | ||||
| # htpasswd_file = "" | ||||
|  | ||||
|   | ||||
| @@ -62,7 +62,7 @@ An example [oauth2-proxy.cfg]({{ site.gitweb }}/contrib/oauth2-proxy.cfg.example | ||||
| | `--google-admin-email` | string | the google admin to impersonate for api calls | | | ||||
| | `--google-group` | string | restrict logins to members of this google group (may be given multiple times). | | | ||||
| | `--google-service-account-json` | string | the path to the service account json credentials | | | ||||
| | `--htpasswd-file` | string | additionally authenticate against a htpasswd file. Entries must be created with `htpasswd -s` for SHA encryption | | | ||||
| | `--htpasswd-file` | string | additionally authenticate against a htpasswd file. Entries must be created with `htpasswd -B` for bcrypt encryption | | | ||||
| | `--http-address` | string | `[http://]<addr>:<port>` or `unix://<path>` to listen on for HTTP clients | `"127.0.0.1:4180"` | | ||||
| | `--https-address` | string | `<addr>:<port>` to listen on for HTTPS clients | `":443"` | | ||||
| | `--logging-compress` | bool | Should rotated log files be compressed using gzip | false | | ||||
|   | ||||
| @@ -219,7 +219,7 @@ func NewFlagSet() *pflag.FlagSet { | ||||
| 	flagSet.String("client-secret", "", "the OAuth Client Secret") | ||||
| 	flagSet.String("client-secret-file", "", "the file with OAuth Client Secret") | ||||
| 	flagSet.String("authenticated-emails-file", "", "authenticate against emails via file (one per line)") | ||||
| 	flagSet.String("htpasswd-file", "", "additionally authenticate against a htpasswd file. Entries must be created with \"htpasswd -s\" for SHA encryption or \"htpasswd -B\" for bcrypt encryption") | ||||
| 	flagSet.String("htpasswd-file", "", "additionally authenticate against a htpasswd file. Entries must be created with \"htpasswd -B\" for bcrypt encryption") | ||||
| 	flagSet.Bool("display-htpasswd-form", true, "display username / password login form if an htpasswd file is provided") | ||||
| 	flagSet.String("custom-templates-dir", "", "path to custom html templates") | ||||
| 	flagSet.String("banner", "", "custom banner string. Use \"-\" to disable default banner.") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user