Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy Cert auth, templates AND host certificates #625

Closed
grtjn opened this issue Sep 19, 2022 · 4 comments
Closed

Deploy Cert auth, templates AND host certificates #625

grtjn opened this issue Sep 19, 2022 · 4 comments
Milestone

Comments

@grtjn
Copy link

grtjn commented Sep 19, 2022

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?

@grtjn grtjn changed the title Deploy Cert auth, templates AND certificates Deploy Cert auth, templates AND host certificates Sep 19, 2022
@rjrudin
Copy link
Contributor

rjrudin commented Sep 20, 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())
  }
}

@grtjn
Copy link
Author

grtjn commented Sep 20, 2022

You could potentially consider attaching it to mlDeployCertificateTemplates, but a separate task would be useful too.

@rjrudin rjrudin added this to the 4.4.0 milestone Dec 15, 2022
@rjrudin
Copy link
Contributor

rjrudin commented Dec 19, 2022

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.

@rjrudin
Copy link
Contributor

rjrudin commented Dec 20, 2022

Being resolved via #641

@rjrudin rjrudin closed this as completed Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants