File tree Expand file tree Collapse file tree 4 files changed +34
-1
lines changed
tests/fixture/confs-stdlocal Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,18 @@ admin_list = __ADMIN_LIST__
55
55
# If left empty the sender defaults to something like __USER__@__BASE_FQDN__ .
56
56
smtp_sender = __SMTP_SENDER__
57
57
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
+
58
70
# Base paths
59
71
# TODO: tilde in paths is not expanded where configparser is used directly!
60
72
state_path = __MIG_STATE__
Original file line number Diff line number Diff line change @@ -201,7 +201,10 @@ def usage(options):
201
201
'gdp_data_categories' ,
202
202
'gdp_id_scramble' ,
203
203
'gdp_path_scramble' ,
204
- 'quota_backend'
204
+ 'quota_backend' ,
205
+ 'ca_fqdn' ,
206
+ 'ca_user' ,
207
+ 'ca_smtp'
205
208
]
206
209
int_names = [
207
210
'cert_valid_days' ,
Original file line number Diff line number Diff line change @@ -465,6 +465,9 @@ def generate_confs(
465
465
quota_backend = 'lustre' ,
466
466
quota_user_limit = (1024 ** 4 ),
467
467
quota_vgrid_limit = (1024 ** 4 ),
468
+ ca_fqdn = '' ,
469
+ ca_user = 'mig-ca' ,
470
+ ca_smtp = 'localhost' ,
468
471
_getpwnam = pwd .getpwnam ,
469
472
):
470
473
"""Generate Apache and MiG server confs with specified variables"""
@@ -649,6 +652,9 @@ def generate_confs(
649
652
user_dict ['__EXT_OIDC_REMOTE_USER_CLAIM__' ] = ext_oidc_remote_user_claim
650
653
user_dict ['__EXT_OIDC_PASS_CLAIM_AS__' ] = ext_oidc_pass_claim_as
651
654
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
652
658
user_dict ['__PUBLIC_URL__' ] = ''
653
659
user_dict ['__PUBLIC_ALIAS_URL__' ] = ''
654
660
user_dict ['__PUBLIC_HTTP_URL__' ] = ''
Original file line number Diff line number Diff line change @@ -55,6 +55,18 @@ admin_list =
55
55
# If left empty the sender defaults to something like testuser@ .
56
56
smtp_sender =
57
57
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
+
58
70
# Base paths
59
71
# TODO: tilde in paths is not expanded where configparser is used directly!
60
72
state_path = /home/mig/state
You can’t perform that action at this time.
0 commit comments