Change default server-unix-socket-mode 755 -> 660 (#1423)

This commit is contained in:
Dmitry Wagin
2019-12-16 08:37:00 -05:00
committed by Steve Chavez
parent 7f365bf60b
commit e12c1319b6
3 changed files with 6 additions and 5 deletions
+1
View File
@@ -23,6 +23,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- #1385, bulk RPC call now should be done by specifying a `Prefer: params=multiple-objects` header - @steve-chavez
- #1401, resource embedding now outputs an error when multiple relationships between two tables are found - @steve-chavez
- #1423, default Unix Socket file mode from 755 to 660 - @dwagin
## [6.0.2] - 2019-08-22
+3 -3
View File
@@ -177,7 +177,7 @@ readOptions = do
parseSocketFileMode :: C.Key -> C.Parser C.Config (Either Text FileMode)
parseSocketFileMode k =
C.optional k C.string >>= \case
Nothing -> pure $ Right 493 -- return default 755 mode if no value was provided
Nothing -> pure $ Right 432 -- return default 660 mode if no value was provided
Just fileModeText ->
case (readOct . unpack) fileModeText of
[] ->
@@ -267,8 +267,8 @@ readOptions = do
|## if specified it takes precedence over server-port
|# server-unix-socket = "/tmp/pgrst.sock"
|## unix socket file mode
|## when none is provided, 755 is applied by default
|# server-unix-socket-mode = "755"
|## when none is provided, 660 is applied by default
|# server-unix-socket-mode = "660"
|
|## base url for swagger output
|# server-proxy-uri = ""
+2 -2
View File
@@ -66,8 +66,8 @@ _baseCfg = -- Connection Settings
AppConfig mempty "postgrest_test_anonymous" Nothing "test" "localhost" 3000
-- No user configured Unix Socket
Nothing
-- No user configured Unix Socket file mode (defaults to 755)
(Right 493)
-- No user configured Unix Socket file mode (defaults to 660)
(Right 432)
-- Jwt settings
(Just $ encodeUtf8 "reallyreallyreallyreallyverysafe") False Nothing
-- Connection Modifiers