You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mlDeploySecurity does all three (and a lot more), but you cannot do all three separately. You can mlDeployCertificateAuthorities, and mlDeployCertificateTemplates, but no mlDeployHostCertificates (to match the underlying command InsertCertificateHostsTemplateCommand).
Is there a workaround (using build.gradle only) and/or can this be added?
The text was updated successfully, but these errors were encountered:
grtjn
changed the title
Deploy Cert auth, templates AND certificates
Deploy Cert auth, templates AND host certificates
Sep 19, 2022
@grtjn This looks like an oversight. I don't see any reason why the InsertCertificateHostsTemplateCommand can't be run in isolation. I'll add it to the next release.
In the meantime, you can make a custom task like this (which I thought was documented somewhere but I'm not seeing it, so I'll get it documented as part of this ticket too):
task myTask(type: com.marklogic.gradle.task.MarkLogicTask) {
doLast {
new com.marklogic.appdeployer.command.security.InsertCertificateHostsTemplateCommand().execute(getCommandContext())
}
}
Thinking this task should be named mlDeployHostCertificateTemplates . I believe the term "Insert" was chosen to coincide with how the Manage API uses the term "insertHC" in this context, but that would be unexpected to an ml-gradle user.
mlDeploySecurity does all three (and a lot more), but you cannot do all three separately. You can mlDeployCertificateAuthorities, and mlDeployCertificateTemplates, but no mlDeployHostCertificates (to match the underlying command InsertCertificateHostsTemplateCommand).
Is there a workaround (using build.gradle only) and/or can this be added?
The text was updated successfully, but these errors were encountered: