Author: Ralf Haferkamp <rhaferkamp@owncloud.com> Date: Thu Nov 3 10:17:08 2022 +0100 [full-ci] Introduce TLS Settings for go-micro based grpc services and clients (#4901) * Introduce TLS Settings for go-micro based grpc services and clients TLS for the services can be configure by setting the OCIS_MICRO_GRPC_TLS_ENABLED" "OCIS_MICRO_GRPC_TLS_CERTIFICATE" and "OCIS_MICRO_GRPC_TLS_KEY" enviroment variables. TLS for the clients can configured by setting the "OCIS_MICRO_GRPC_CLIENT_TLS_MODE" and "OCIS_MICRO_GRPC_CLIENT_TLS_CACERT" variables. By default TLS is disabled. Co-authored-by: Martin <github@diemattels.at> * Unify TLS configuration for all grpc services All grpc service (whether they're based on reva) or go-micro use the same set of config vars now. TLS for the services can be configure by setting the OCIS_GRPC_TLS_ENABLED, OCIS_GRPC_TLS_CERTIFICATE and OCIS_GRPC_TLS_KEY enviroment variables. TLS for the clients can configured by setting the OCIS_GRPC_CLIENT_TLS_MODE and OCIS_MICRO_GRPC_CLIENT_TLS_CACERT variables. There are no individual per service config vars currently. If really needed, per service tls configurations can be specified via config file. Co-authored-by: Martin <github@diemattels.at> Co-authored-by: Martin <github@diemattels.at>
76 lines
1.5 KiB
YAML
76 lines
1.5 KiB
YAML
# Autogenerated
|
|
# Filename: auth-basic-config-example.yaml
|
|
|
|
tracing:
|
|
enabled: false
|
|
type: ""
|
|
endpoint: ""
|
|
collector: ""
|
|
log:
|
|
level: ""
|
|
pretty: false
|
|
color: false
|
|
file: ""
|
|
debug:
|
|
addr: 127.0.0.1:9147
|
|
token: ""
|
|
pprof: false
|
|
zpages: false
|
|
grpc:
|
|
addr: 127.0.0.1:9146
|
|
tls:
|
|
enabled: false
|
|
cert: ""
|
|
key: ""
|
|
protocol: tcp
|
|
token_manager:
|
|
jwt_secret: ""
|
|
reva:
|
|
address: 127.0.0.1:9142
|
|
tls:
|
|
mode: ""
|
|
'cacert env:': ""
|
|
skip_user_groups_in_token: false
|
|
auth_provider: ldap
|
|
auth_providers:
|
|
ldap:
|
|
uri: ldaps://localhost:9235
|
|
ca_cert: ~/.ocis/idm/ldap.crt
|
|
insecure: false
|
|
bind_dn: uid=reva,ou=sysusers,o=libregraph-idm
|
|
bind_password: ""
|
|
user_base_dn: ou=users,o=libregraph-idm
|
|
group_base_dn: ou=groups,o=libregraph-idm
|
|
user_scope: sub
|
|
group_scope: sub
|
|
user_filter: ""
|
|
group_filter: ""
|
|
user_object_class: inetOrgPerson
|
|
group_object_class: groupOfNames
|
|
login_attributes:
|
|
- uid
|
|
idp: https://localhost:9200
|
|
user_schema:
|
|
id: ownclouduuid
|
|
id_is_octet_string: false
|
|
mail: mail
|
|
display_name: displayname
|
|
user_name: uid
|
|
group_schema:
|
|
id: ownclouduuid
|
|
id_is_octet_string: false
|
|
mail: mail
|
|
display_name: cn
|
|
group_name: cn
|
|
member: member
|
|
owncloudsql:
|
|
db_username: owncloud
|
|
db_password: ""
|
|
db_host: mysql
|
|
db_port: 3306
|
|
db_name: owncloud
|
|
idp: https://localhost:9200
|
|
nobody: 90
|
|
join_username: false
|
|
join_owncloud_uuid: false
|