This repository was archived by the owner on May 31, 2023. It is now read-only.
forked from kubeedge/kubeedge
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added proposal and code for vault PKI for cloudcore and edgecore
Hashicorp vault is used as PKI Cloudcore and Edgecore retrieve their certificates and perform rotation For cloudcore initial certificate retrieval is done via init container Rotation is done for both using sidecar Signed-off-by: Armin Schlegel <[email protected]> fix: edgetunnel re-reads certs on reconnect
- Loading branch information
Showing
668 changed files
with
88,400 additions
and
654 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.vscode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,6 @@ keadm/keadm | |
_output | ||
_tmp | ||
build/edge/tmp | ||
.history | ||
|
||
patch |
205 changes: 205 additions & 0 deletions
205
LICENSES/vendor/github.com/edgefarm/vault-integration/LICENSE
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- 07-deployment.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | 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2h0dHBzOi8vdmF1bHQucml2ZW5k | ||
ZWxsLmhvbWUvdjEvcGtpL2NybDANBgkqhkiG9w0BAQsFAAOCAQEAmhpWgI3iSnEI | ||
5EjmXGe9fxKRX5eQ8fzMESptRmHI98pTBxVeaSp2PNYNHnE8xW/K+4mOm1OEX9pw | ||
bChTH8syJGqMYMMRBZgF9rqDRhDH+LiSwic8PbhXSAWp67ioBb7DIraU3z9zSgPl | ||
P6UpAls5f2aAK/E623JlV3xgfEWB2DZWZ03dezWtSP5f1qU5Ml7Hw3ByOkGHc9dP | ||
NO4qpST9F5w0YVQgLlNhxyxhY6ZO/NS3GWSPw9GuRUBz2CL/8VK5GTaHcKzNOcsx | ||
LnioYw089jdG63GjBS5DscOMxi4aDm/HniYIotMJi0Ak440FiTyebYD84DVrA8qS | ||
1TK78QCsCQ== | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
authrole=cloudcore | ||
force=false | ||
name=cloudcore.ci4rail.com | ||
ca=/etc/kubeedge/certs/rootCA.crt | ||
cert=/etc/kubeedge/certs/edge.crt | ||
key=/etc/kubeedge/certs/edge.key | ||
role=server | ||
serverca=/opt/certretrieval/cert/ca.crt | ||
ttl=24h | ||
vault=https://vault.ci4rail.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: cloudcore | ||
namespace: kubeedge | ||
data: | ||
cloudcore.yaml: | | ||
apiVersion: cloudcore.config.kubeedge.io/v1alpha2 | ||
kind: CloudCore | ||
kubeAPIConfig: | ||
kubeConfig: "" | ||
master: "" | ||
modules: | ||
cloudHub: | ||
nodeLimit: 10 | ||
tlsCAFile: /etc/kubeedge/certs/rootCA.crt | ||
tlsCertFile: /etc/kubeedge/certs/edge.crt | ||
tlsPrivateKeyFile: /etc/kubeedge/certs/edge.key | ||
unixsocket: | ||
address: unix:///var/lib/kubeedge/kubeedge.sock | ||
enable: true | ||
websocket: | ||
address: 0.0.0.0 | ||
enable: true | ||
port: 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
bases: | ||
- ../../cloud | ||
|
||
resources: | ||
- ca-configmap.yaml | ||
- cloudhub-configmap.yaml | ||
|
||
patches: | ||
- patch.yaml | ||
|
||
configMapGenerator: | ||
- name: certretrieval.config | ||
namespace: kubeedge | ||
files: | ||
- certretrieval.config | ||
|
||
patchesJson6902: | ||
- path: patch-volumes.json | ||
target: | ||
kind: Deployment | ||
name: cloudcore | ||
version: v1 | ||
group: apps | ||
namespace: kubeedge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"op": "replace", | ||
"path": "/spec/template/spec/volumes/3", | ||
"value": { | ||
"name": "certs", | ||
"emptyDir": {} | ||
} | ||
}, | ||
{ | ||
"op": "replace", | ||
"path": "/spec/template/spec/containers/0/volumeMounts/1", | ||
"value": { | ||
"name": "certs", | ||
"mountPath": "/etc/kubeedge/certs" | ||
} | ||
} | ||
] |
Oops, something went wrong.