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

make test prints the apiKey #63

Open
rbaumgar opened this issue Mar 15, 2024 · 0 comments
Open

make test prints the apiKey #63

rbaumgar opened this issue Mar 15, 2024 · 0 comments
Labels
priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@rbaumgar
Copy link

I have migrated my webhook to cert-manager v1.13.1.
Now I get the provided apiKey printed, which I do not want to see in automatic test protocols...

$ TEST_ZONE_NAME=my.domain. make test
TEST_ASSET_ETCD=_test/kubebuilder-1.28.0-linux-amd64/etcd \
TEST_ASSET_KUBE_APISERVER=_test/kubebuilder-1.28.0-linux-amd64/kube-apiserver \
TEST_ASSET_KUBECTL=_test/kubebuilder-1.28.0-linux-amd64/kubectl \
/usr/bin/go test -v .
=== RUN   TestRunsSuite
=== RUN   TestRunsSuite/Basic
=== RUN   TestRunsSuite/Basic/PresentRecord
    util.go:70: created fixture "basic-present-record"
    suite.go:38: Calling Present with ChallengeRequest: &v1alpha1.ChallengeRequest{UID:"", Action:"", Type:"", DNSName:"example.com", Key:"123d==", ResourceNamespace:"basic-present-record", ResolvedFQDN:"cert-manager-dns01-tests.my.domain.", ResolvedZone:"my.domain.", AllowAmbientCredentials:false, Config:(*v1.JSON)(0xc00070e270)}
I0315 12:42:10.574692  285584 main.go:142] call function Present: ResourceNamespace=basic-present-record, ResolvedZone=my.domain., ResolvedFQDN=cert-manager-dns01-tests.my.domain. DNSName=example.com
I0315 12:42:10.575049  285584 main.go:148] **Decoded configuration {dynu-secret}**
I0315 12:42:10.576462  285584 main.go:277] call function getDomainIdFromFQDN: **apiKey=abcABC123456**, ResolvedFQDN=cert-manager-dns01-tests.my.domain.
I0315 12:42:11.415191  285584 main.go:306] Domain Detail: id=9209690, node=cert-manager-dns01-tests
I0315 12:42:11.415221  285584 main.go:179] call function determineBaseRecordName: recordName=cert-manager-dns01-tests
I0315 12:42:12.234369  285584 main.go:375] Added TXT record result: {"statusCode":200,"id":10447515,"domainId":9209690,"domainName":"my.domain","nodeName":"cert-manager-dns01-tests","hostname":"cert-manager-dns01-tests.my.domain","recordType":"TXT","ttl":60,"state":true,"content":"cert-manager-dns01-tests.my.domain. 60 IN TXT \"123d==\"","updatedOn":"2024-03-15T11:42:12.117","textData":"123d=="}
I0315 12:42:12.994260  285584 main.go:375] Added TXT record result: {"statusCode":200,"id":10447516,"domainId":9209690,"domainName":"my.domain","nodeName":"","hostname":"my.domain","recordType":"TXT","ttl":60,"state":true,"content":"my.domain. 60 IN TXT \"123d==\"","updatedOn":"2024-03-15T11:42:12.89","textData":"123d=="}
I0315 12:42:12.994302  285584 main.go:173] Presented txt record cert-manager-dns01-tests.my.domain.
I0315 12:42:45.211687  285584 main.go:277] call function getDomainIdFromFQDN: **apiKey=abcABC123456**, ResolvedFQDN=cert-manager-dns01-tests.my.domain.
I0315 12:42:46.027191  285584 main.go:306] Domain Detail: id=9209690, node=cert-manager-dns01-tests
I0315 12:42:46.724078  285584 main.go:227] TXT entry with content my.domain. 60 IN TXT "123d==" (key value 123d==)
I0315 12:42:47.441375  285584 main.go:233] Deleted TXT record result: {"statusCode":200}
I0315 12:42:47.441414  285584 main.go:227] TXT entry with content cert-manager-dns01-tests.my.domain. 60 IN TXT "123d==" (key value 123d==)
I0315 12:42:48.391805  285584 main.go:233] Deleted TXT record result: {"statusCode":200}
I0315 12:42:48.391836  285584 main.go:227] TXT entry with content  (key value 123d==)
I0315 12:42:48.391846  285584 main.go:227] TXT entry with content apps.ocp4.my.domain. 60 IN TXT "07QkfbaBeGOsoMdL3NLxvN7yk4NMzUjhhAa7AhCVONQ" (key value 123d==)
I0315 12:42:48.391856  285584 main.go:227] TXT entry with content my.domain. 120 IN SOA ns1.dynu.com. administrator.dynu.com. 0 3600 900 604800 300 (key value 123d==)
I0315 12:42:48.425179  285584 main.go:277] call function getDomainIdFromFQDN: **apiKey=abcABC123456**, ResolvedFQDN=cert-manager-dns01-tests.my.domain.
I0315 12:42:49.153359  285584 main.go:306] Domain Detail: id=9209690, node=cert-manager-dns01-tests
I0315 12:42:49.901336  285584 main.go:227] TXT entry with content  (key value 123d==)
I0315 12:42:49.901363  285584 main.go:227] TXT entry with content apps.ocp4.my.domain. 60 IN TXT "07QkfbaBeGOsoMdL3NLxvN7yk4NMzUjhhAa7AhCVONQ" (key value 123d==)
I0315 12:42:49.901373  285584 main.go:227] TXT entry with content my.domain. 120 IN SOA ns1.dynu.com. administrator.dynu.com. 0 3600 900 604800 300 (key value 123d==)
--- PASS: TestRunsSuite (44.52s)
    --- PASS: TestRunsSuite/Basic (40.64s)
        --- PASS: TestRunsSuite/Basic/PresentRecord (40.64s)
PASS
ok  	github.com/Dopingus/cert-manager-webhook-dynu	44.544s
@inteon inteon added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

2 participants