Open StefanAbl opened 3 years ago
So I did some more research and it seems like the option is not present in the version of tehwalris/go-freeipa. I updated the autogenerated code here and added the usage of the skip_host_check option here. This works and adds the service to the IPA Server without requiring a host.
I am not sure if this is wanted behavior for this application and I am also unsure about opening a PR because of the change of dependencies.
@StefanAbl you can make a PR in upstream project.
before beoing merged, you can go mod edit -replace
to override lib with your patched version (and do a PR here ^^)
Okay, I created a PR upstream
I tried using go mod edit -replace github.com/tehwalris/go-freeipa/freeipa=../go-freeipa/freeipa
and the replacement was successfully added to the go.mod file, however it seems like the old version is still used:
$ go build provisionners/freeipa.go
# command-line-arguments
provisionners/freeipa.go:125:6: unknown field 'SkipHostCheck' in struct literal of type freeipa.ServiceAddOptionalArgs
I am not sure why, I think it could be because of the strange versioning of go-freeipa.
Maybe I should just wait for the pullrequest in go-freeipa to be accepted or someone has better go knowledge than I do.
When creating an issuer with the
addHost
option set to false I am not able to successfully issue a certificate. This is because by default by default to create a service a host with the same FQDN must exist. To circumvent this issue the--skip-hostcheck
option would be set on the command line. It's equivalent would have to be set in the request to the FreeIPA web API.Logs from the controller container: