spctl accepts invalid config for sp_authc.yml
spctl accepts an invalid config without warning/error information for the user
Steps to reproduce :
Create the file sp_authc.yml
with the following content
---
auth_domains:
- type: "basic/internal_users_db"
role_mapping:
resolution_mode: "BOTH"
network:
trusted_proxies_regex: ".*"
http:
remote_ip_header: "x-forwarded-for"
The part
role_mapping:
resolution_mode: "BOTH"
should be part of file sp_authz.yml
not a sp_authc.yml
Execute command
def_spctl_update_config sgssl-0.example.com <path to sp_authc.ym>
spctl will return
Successfully connected to cluster sptest_docker (sgssl-0.example.com) as user CN=kirk,OU=client,O=client,L=Test,C=DE
Configuration has been updated