Skip to content

Commit

Permalink
Update test for installing CA with existing DS
Browse files Browse the repository at this point in the history
The test for installing CA with existing DS has been updated
to set up the security domain prior to running pkispawn.
  • Loading branch information
edewata committed Dec 5, 2023
1 parent b296064 commit 30ec75d
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ca-existing-ds-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,52 @@ jobs:
docker exec pki pki-server ca-db-access-grant \
uid=pkidbuser,ou=people,dc=ca,dc=pki,dc=example,dc=com
# https://github.com/dogtagpki/pki/wiki/Setting-up-Security-Domain
- name: Create security domain database
run: |
docker exec pki pki-server sd-create \
--name EXAMPLE
- name: Configure security domain manager
run: |
# configure CA as security domain manager
docker exec pki pki-server ca-config-set securitydomain.select new
docker exec pki pki-server ca-config-set securitydomain.name EXAMPLE
docker exec pki pki-server ca-config-set securitydomain.host pki.example.com
docker exec pki pki-server ca-config-set securitydomain.httpport 8080
docker exec pki pki-server ca-config-set securitydomain.httpsadminport 8443
docker exec pki pki-server ca-config-set securitydomain.checkIP false
docker exec pki pki-server ca-config-set securitydomain.checkinterval 300000
docker exec pki pki-server ca-config-set securitydomain.flushinterval 86400000
docker exec pki pki-server ca-config-set securitydomain.source ldap
# register CA as security domain manager
docker exec pki pki-server sd-subsystem-add \
--subsystem CA \
--hostname pki.example.com \
--unsecure-port 8080 \
--secure-port 8443 \
--domain-manager \
"CA pki.example.com 8443"
# https://github.com/dogtagpki/pki/wiki/Setting-up-Subsystem-User
- name: Add subsystem user
run: |
docker exec pki pki-server ca-user-add \
--full-name CA-pki.example.com-8443 \
--type agentType \
CA-pki.example.com-8443
- name: Assign subsystem cert to subsystem user
run: |
docker exec pki pki-server ca-user-cert-add \
--cert /etc/pki/pki-tomcat/certs/subsystem.crt \
CA-pki.example.com-8443
- name: Assign roles to subsystem user
run: |
docker exec pki pki-server ca-user-role-add CA-pki.example.com-8443 "Subsystem Group"
# https://github.com/dogtagpki/pki/wiki/Setting-up-CA-Admin-User
- name: Add CA admin user
run: |
Expand Down Expand Up @@ -293,6 +339,7 @@ jobs:
-D pki_ds_url=ldap://ds.example.com:3389 \
-D pki_ds_setup=False \
-D pki_share_db=True \
-D pki_security_domain_setup=False \
-D pki_admin_setup=False \
-v
Expand Down

0 comments on commit 30ec75d

Please sign in to comment.