Skip to content

Commit cbe9e41

Browse files
committed
Merge remote-tracking branch 'origin/master' into edge
2 parents 5e10644 + d0b426d commit cbe9e41

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

mig/install/MiGserver-template.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ admin_list = __ADMIN_LIST__
5555
# If left empty the sender defaults to something like __USER__@__BASE_FQDN__ .
5656
smtp_sender = __SMTP_SENDER__
5757

58+
# Optional client certificate authentication
59+
# FQDN of the Certificate Authority host managing/signing user certificates.
60+
# Leave empty to disable unless you want client certificate authentication and
61+
# have your own CA to handle that part.
62+
ca_fqdn = __CA_FQDN__
63+
# Local user account used for certificate handling on the CA host. Defaults to
64+
# mig-ca if unset but only ever used if ca_fqdn is set.
65+
ca_user = __CA_USER__
66+
# SMTP server used in relation to the user certificate handling. Defaults to
67+
# localhost if unset but only ever used if ca_fqdn is set.
68+
ca_smtp = __CA_SMTP__
69+
5870
# Base paths
5971
# TODO: tilde in paths is not expanded where configparser is used directly!
6072
state_path = __MIG_STATE__

mig/install/generateconfs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,10 @@ def usage(options):
201201
'gdp_data_categories',
202202
'gdp_id_scramble',
203203
'gdp_path_scramble',
204-
'quota_backend'
204+
'quota_backend',
205+
'ca_fqdn',
206+
'ca_user',
207+
'ca_smtp'
205208
]
206209
int_names = [
207210
'cert_valid_days',

mig/shared/install.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,9 @@ def generate_confs(
465465
quota_backend='lustre',
466466
quota_user_limit=(1024**4),
467467
quota_vgrid_limit=(1024**4),
468+
ca_fqdn='',
469+
ca_user='mig-ca',
470+
ca_smtp='localhost',
468471
_getpwnam=pwd.getpwnam,
469472
):
470473
"""Generate Apache and MiG server confs with specified variables"""
@@ -649,6 +652,9 @@ def generate_confs(
649652
user_dict['__EXT_OIDC_REMOTE_USER_CLAIM__'] = ext_oidc_remote_user_claim
650653
user_dict['__EXT_OIDC_PASS_CLAIM_AS__'] = ext_oidc_pass_claim_as
651654
user_dict['__EXT_OIDC_REWRITE_COOKIE__'] = ext_oidc_rewrite_cookie
655+
user_dict['__CA_FQDN__'] = ca_fqdn
656+
user_dict['__CA_USER__'] = ca_user
657+
user_dict['__CA_SMTP__'] = ca_smtp
652658
user_dict['__PUBLIC_URL__'] = ''
653659
user_dict['__PUBLIC_ALIAS_URL__'] = ''
654660
user_dict['__PUBLIC_HTTP_URL__'] = ''

tests/fixture/confs-stdlocal/MiGserver.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ admin_list =
5555
# If left empty the sender defaults to something like testuser@ .
5656
smtp_sender =
5757

58+
# Optional client certificate authentication
59+
# FQDN of the Certificate Authority host managing/signing user certificates.
60+
# Leave empty to disable unless you want client certificate authentication and
61+
# have your own CA to handle that part.
62+
ca_fqdn =
63+
# Local user account used for certificate handling on the CA host. Defaults to
64+
# mig-ca if unset but only ever used if ca_fqdn is set.
65+
ca_user = mig-ca
66+
# SMTP server used in relation to the user certificate handling. Defaults to
67+
# localhost if unset but only ever used if ca_fqdn is set.
68+
ca_smtp = localhost
69+
5870
# Base paths
5971
# TODO: tilde in paths is not expanded where configparser is used directly!
6072
state_path = /home/mig/state

0 commit comments

Comments
 (0)