Skip to content

Commit 679d829

Browse files
authored
Merge pull request #17 from Keyfactor/est-54302
feat(est): Implement EST client into Signer module instead of using EST client dep
2 parents 4872175 + edb4ceb commit 679d829

23 files changed

+1295
-67
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Also called the Bootstrap Workflow
2+
name: Keyfactor Workflow
3+
4+
on:
5+
workflow_dispatch:
6+
pull_request:
7+
types: [opened, closed, synchronize, edited, reopened]
8+
push:
9+
create:
10+
branches:
11+
- 'release-*.*'
12+
13+
jobs:
14+
call-starter-workflow:
15+
uses: keyfactor/actions/.github/workflows/starter.yml@v2
16+
secrets:
17+
token: ${{ secrets.V2BUILDTOKEN}}
18+
APPROVE_README_PUSH: ${{ secrets.APPROVE_README_PUSH}}
19+
gpg_key: ${{ secrets.KF_GPG_PRIVATE_KEY }}
20+
gpg_pass: ${{ secrets.KF_GPG_PASSPHRASE }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
# Set version from DOCKER_METADATA_OUTPUT_VERSION as environment variable
3737
- name: Set Version
3838
run: |
39-
echo "VERSION=${DOCKER_METADATA_OUTPUT_VERSION:8}" >> $GITHUB_ENV
39+
echo "VERSION=${DOCKER_METADATA_OUTPUT_VERSION:8}.0" >> $GITHUB_ENV # Eventually will build this into Keyfactor bootstrap
4040
4141
# Change version and appVersion in Chart.yaml to the tag in the closed PR
4242
- name: Update Helm App/Chart Version

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,4 +369,5 @@ FodyWeavers.xsd
369369
*.key
370370
credentials.yaml
371371

372-
vendor
372+
vendor
373+
.env

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v2.1.0
2+
## Features
3+
4+
### Signer
5+
- Implemented in-project EST client to remove EJBCA Go Client as dependency
6+
17
# v2.0.0
28
## Features
39

@@ -19,4 +25,4 @@
1925

2026
### Actions
2127
- Added GitHub Actions for building and testing the EJBCA CSR Signer
22-
- Added GitHub Actions for releasing the EJBCA CSR Signer
28+
- Added GitHub Actions for releasing the EJBCA CSR Signer

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
2+
# ejbca-k8s-csr-signer
3+
4+
An implementation of the Kubernetes CSR signing API that routes Certificate Signing Requests from the cluster to the EJBCA Enrollment API
5+
6+
#### Integration status: Production - Ready for use in production environments.
7+
8+
## About the Keyfactor API Client
9+
10+
This API client allows for programmatic management of Keyfactor resources.
11+
12+
## Support for ejbca-k8s-csr-signer
13+
14+
ejbca-k8s-csr-signer is open source and supported on best effort level for this tool/library/client. This means customers can report Bugs, Feature Requests, Documentation amendment or questions as well as requests for customer information required for setup that needs Keyfactor access to obtain. Such requests do not follow normal SLA commitments for response or resolution. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com/
15+
16+
###### To report a problem or suggest a new feature, use the **[Issues](../../issues)** tab. If you want to contribute actual bug fixes or proposed enhancements, use the **[Pull requests](../../pulls)** tab.
17+
18+
---
19+
20+
21+
---
22+
23+
24+
125
<a href="https://kubernetes.io">
226
<img src="https://kubernetes.io/images/favicon.png" alt="Kubernetes logo" title="K8s" align="left" height="50" />
327
</a>
@@ -30,4 +54,5 @@ The EJBCA CSR Signer v2.0 has breaking changes from v1.0. To migrate from v1.0 t
3054
* [Runtime Customization](docs/annotations.markdown)
3155
* [End Entity Name Selection](docs/endentitynamecustomization.markdown)
3256
* [Testing](docs/testing.markdown)
33-
* [License](LICENSE)
57+
* [License](LICENSE)
58+

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ module github.com/Keyfactor/ejbca-k8s-csr-signer
33
go 1.20
44

55
require (
6-
github.com/Keyfactor/ejbca-go-client v1.3.7
76
github.com/Keyfactor/ejbca-go-client-sdk v0.1.5
87
github.com/go-logr/logr v1.3.0
98
github.com/stretchr/testify v1.8.4
9+
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352
1010
k8s.io/api v0.28.4
1111
k8s.io/apimachinery v0.28.4
1212
k8s.io/client-go v0.28.4
@@ -49,7 +49,6 @@ require (
4949
github.com/prometheus/common v0.45.0 // indirect
5050
github.com/prometheus/procfs v0.12.0 // indirect
5151
github.com/spf13/pflag v1.0.5 // indirect
52-
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 // indirect
5352
go.uber.org/multierr v1.11.0 // indirect
5453
go.uber.org/zap v1.26.0 // indirect
5554
golang.org/x/exp v0.0.0-20231206192017-f3f8817b8deb // indirect

go.sum

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
github.com/Keyfactor/ejbca-go-client v1.3.7 h1:QhcBaR8O99ngG+zdRMYPsqFIoioc6tStq2zP2EuwNGU=
2-
github.com/Keyfactor/ejbca-go-client v1.3.7/go.mod h1:onVifqcnxbIsYU/cEEYql3q8VbdhBlbzeH6I2MxPNFU=
31
github.com/Keyfactor/ejbca-go-client-sdk v0.1.5 h1:PLX7NH6q26XyxIA7TQfZbKJawsXLZ+6yYs9pBYHsZrU=
42
github.com/Keyfactor/ejbca-go-client-sdk v0.1.5/go.mod h1:12uc/cynQy/GEiYnYJgivFjRGpyusPvIu/vLYAscejs=
53
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
@@ -67,7 +65,6 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
6765
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
6866
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
6967
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
70-
github.com/matttproud/golang_protobuf_extensions v1.0.4 h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo=
7168
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 h1:jWpvCLoY8Z/e3VKvlsiIGKtc+UG6U5vzxaoagmhXfyg=
7269
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0/go.mod h1:QUyp042oQthUoa9bqDv0ER0wrtXnBruoNd7aNjkbP+k=
7370
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
@@ -198,8 +195,6 @@ k8s.io/component-base v0.28.4 h1:c/iQLWPdUgI90O+T9TeECg8o7N3YJTiuz2sKxILYcYo=
198195
k8s.io/component-base v0.28.4/go.mod h1:m9hR0uvqXDybiGL2nf/3Lf0MerAfQXzkfWhUY58JUbU=
199196
k8s.io/klog/v2 v2.110.1 h1:U/Af64HJf7FcwMcXyKm2RPM22WZzyR7OSpYj5tg3cL0=
200197
k8s.io/klog/v2 v2.110.1/go.mod h1:YGtd1984u+GgbuZ7e08/yBuAfKLSO0+uR1Fhi6ExXjo=
201-
k8s.io/kube-openapi v0.0.0-20231129212854-f0671cc7e66a h1:ZeIPbyHHqahGIbeyLJJjAUhnxCKqXaDY+n89Ms8szyA=
202-
k8s.io/kube-openapi v0.0.0-20231129212854-f0671cc7e66a/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA=
203198
k8s.io/kube-openapi v0.0.0-20231206194836-bf4651e18aa8 h1:vzKzxN5uyJZLY8HL1/OovW7BJefnsBIWt8T7Gjh2boQ=
204199
k8s.io/kube-openapi v0.0.0-20231206194836-bf4651e18aa8/go.mod h1:AsvuZPBlUDVuCdzJ87iajxtXuR9oktsTctW/R9wwouA=
205200
k8s.io/utils v0.0.0-20231127182322-b307cd553661 h1:FepOBzJ0GXm8t0su67ln2wAZjbQ6RxQGZDnzuLcrUTI=

integration-manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
"$schema": "https://keyfactor.github.io/integration-manifest-schema.json",
33
"integration_type": "api-client",
44
"name": "ejbca-k8s-csr-signer",
5-
"status": "pilot",
5+
"status": "production",
66
"link_github": true,
7+
"platform_matrix": "linux/arm64,linux/amd64,linux/s390x,linux/ppc64le",
78
"description": "An implementation of the Kubernetes CSR signing API that routes Certificate Signing Requests from the cluster to the EJBCA Enrollment API",
89
"support_level": "kf-community",
910
"release_dir": ""

internal/controllers/certificatesigningrequest_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright © 2023 Keyfactor
2+
Copyright © 2024 Keyfactor
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

internal/controllers/certificatesigningrequest_controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright © 2023 Keyfactor
2+
Copyright © 2024 Keyfactor
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)