-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some errors and validation for group_rules and coroutine_stack_si…
…ze with ldap (#692) * check group rule settings are defined * add group_rules to config-validation test * add coroutine_stack_size validation if ldap is used * change coroutine_stack_size with ldap error text * rules.c fmt
- Loading branch information
Showing
9 changed files
with
197 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
docker/config-validation/configs/coroutine_stack_size/invalid/odyssey-test5.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
coroutine_stack_size 8 | ||
|
||
log_format "%p %t %l [%i %s] (%c) %m\n" | ||
|
||
listen { | ||
host "*" | ||
} | ||
|
||
storage "postgres_server" { | ||
type "remote" | ||
host "*" | ||
} | ||
|
||
ldap_endpoint "ldap" { | ||
ldapserver "127.0.0.1" | ||
ldapport 389 | ||
ldapscheme "ldap" | ||
ldapbasedn "dc=local" | ||
ldapbinddn "dc=local" | ||
ldapbindpasswd "pass" | ||
} | ||
|
||
database "db" { | ||
user "user" { | ||
storage "postgres_server" | ||
pool "session" | ||
authentication "none" | ||
ldap_endpoint_name "ldap" | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
docker/config-validation/configs/coroutine_stack_size/valid/odyssey-test3.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
coroutine_stack_size 16 | ||
|
||
log_format "%p %t %l [%i %s] (%c) %m\n" | ||
|
||
listen { | ||
host "*" | ||
} | ||
|
||
storage "postgres_server" { | ||
type "remote" | ||
host "*" | ||
} | ||
|
||
ldap_endpoint "ldap" { | ||
ldapserver "127.0.0.1" | ||
ldapport 389 | ||
ldapscheme "ldap" | ||
ldapbasedn "dc=local" | ||
ldapbinddn "dc=local" | ||
ldapbindpasswd "pass" | ||
} | ||
|
||
database "db" { | ||
user "user" { | ||
storage "postgres_server" | ||
pool "session" | ||
authentication "none" | ||
ldap_endpoint_name "ldap" | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
docker/config-validation/configs/group_rules/invalid/odyssey-test1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
unix_socket_dir "/tmp" | ||
unix_socket_mode "0644" | ||
|
||
log_format "%p %t %l [%i %s] (%c) %m\n" | ||
|
||
listen { | ||
host "*" | ||
} | ||
|
||
storage "postgres_server" { | ||
type "remote" | ||
} | ||
|
||
database "db" { | ||
group "group1" { | ||
storage "postgres_server" | ||
pool "session" | ||
authentication "none" | ||
group_query_user "group_query_user" | ||
group_query_db "group_query_db" | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
docker/config-validation/configs/group_rules/invalid/odyssey-test2.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
unix_socket_dir "/tmp" | ||
unix_socket_mode "0644" | ||
|
||
log_format "%p %t %l [%i %s] (%c) %m\n" | ||
|
||
listen { | ||
host "*" | ||
} | ||
|
||
storage "postgres_server" { | ||
type "remote" | ||
} | ||
|
||
database "db" { | ||
group "group1" { | ||
storage "postgres_server" | ||
pool "session" | ||
authentication "none" | ||
group_query "SELECT rolname FROM pg_roles WHERE pg_has_role(rolname, 'group1', 'member')" | ||
group_query_db "group_query_db" | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
docker/config-validation/configs/group_rules/invalid/odyssey-test3.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
unix_socket_dir "/tmp" | ||
unix_socket_mode "0644" | ||
|
||
log_format "%p %t %l [%i %s] (%c) %m\n" | ||
|
||
listen { | ||
host "*" | ||
} | ||
|
||
storage "postgres_server" { | ||
type "remote" | ||
} | ||
|
||
database "db" { | ||
group "group1" { | ||
storage "postgres_server" | ||
pool "session" | ||
authentication "none" | ||
group_query "SELECT rolname FROM pg_roles WHERE pg_has_role(rolname, 'group1', 'member')" | ||
group_query_user "group_query_user" | ||
} | ||
} | ||
|
23 changes: 23 additions & 0 deletions
23
docker/config-validation/configs/group_rules/valid/odyssey-test1.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
unix_socket_dir "/tmp" | ||
unix_socket_mode "0644" | ||
|
||
log_format "%p %t %l [%i %s] (%c) %m\n" | ||
|
||
listen { | ||
host "*" | ||
} | ||
|
||
storage "postgres_server" { | ||
type "remote" | ||
} | ||
|
||
database "db" { | ||
group "group1" { | ||
storage "postgres_server" | ||
pool "session" | ||
authentication "none" | ||
group_query "SELECT rolname FROM pg_roles WHERE pg_has_role(rolname, 'group1', 'member')" | ||
group_query_user "group_query_user" | ||
group_query_db "group_query_db" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters