File tree 5 files changed +30
-10
lines changed
5 files changed +30
-10
lines changed Original file line number Diff line number Diff line change
1
+ * appsec 0.1.1 - 2024-03-07: integration of Lets encrypt cluster issuer
Original file line number Diff line number Diff line change @@ -25,18 +25,12 @@ newgrp microk8s
25
25
# setup user profile
26
26
. <( curl -s https://raw.githubusercontent.com/mkol5222/appsec-chart/main/setup-user.sh)
27
27
28
- # ready to deploy certificate issuer with HTTP-01 solver - FOCUS ON EMAIL ADDRESS!!!
29
- #
30
- #
31
- #
32
- MY_EMAIL_ADDRESS=
" [email protected] " # REPLACE
33
- helm install letsencrypt https://github.com/mkol5222/appsec-chart/releases/download/certs-0.1.0/certs-0.1.0.tgz --set letsencrypt.email=$MY_EMAIL_ADDRESS
34
-
35
28
36
29
# ready to deploy AppSec WAF - FOCUS ON INPUTS AND DNS RECORD!!!
37
30
#
38
31
#
39
32
#
33
+ MY_EMAIL_ADDRESS=
" [email protected] " # REPLACE
40
34
APPSEC_TOKEN=cp-abc123... # REPLACE WITH REAL TOKEN from Infinity Portal
41
35
APPSEC_HOSTNAME=appsec1492.klaud.online # REPLACE
42
36
@@ -47,7 +41,7 @@ echo "Make sure DNS recort for $APPSEC_HOSTNAME points to $VMPUBLICIP"
47
41
sudo resolvectl flush-caches
48
42
dig +short $APPSEC_HOSTNAME
49
43
50
- helm install appsec https://github.com/mkol5222/appsec-chart/releases/download/appsec-0.1.0 /appsec-0.1.0 .tgz --set cptoken=$APPSEC_TOKEN --set hostname=$APPSEC_HOSTNAME
44
+ helm install appsec https://github.com/mkol5222/appsec-chart/releases/download/appsec-0.1.1 /appsec-0.1.1 .tgz --set cptoken=$APPSEC_TOKEN --set hostname=$APPSEC_HOSTNAME --set letsencrypt.email= $MY_EMAIL_ADDRESS
51
45
52
46
# monitor appsec and http-01 solver
53
47
k get po --watch
Original file line number Diff line number Diff line change @@ -2,5 +2,5 @@ apiVersion: v2
2
2
name : appsec
3
3
description : Simple deployment of CloudGuard WAF with HTTPS and certs
4
4
type : application
5
- version : 0.1.0
5
+ version : 0.1.1
6
6
appVersion : " 1.0.1"
Original file line number Diff line number Diff line change
1
+ ---
2
+ apiVersion : cert-manager.io/v1
3
+ kind : ClusterIssuer
4
+ metadata :
5
+ name : lets-encrypt
6
+ spec :
7
+ acme :
8
+ email : {{ .Values.letsencrypt.email }}
9
+ server : https://acme-v02.api.letsencrypt.org/directory
10
+ privateKeySecretRef :
11
+ # Secret resource that will be used to store the account's private key.
12
+ name : {{ default "lets-encrypt-priviate-key" .Values.letsencrypt.secret }}
13
+ # Add a single challenge solver, HTTP01 using nginx
14
+ solvers :
15
+ - http01 :
16
+ ingress :
17
+ class : public
Original file line number Diff line number Diff line change 1
1
2
2
# hostname to publish to
3
3
hostname : " web1492.klaud.online"
4
- cptoken:
4
+ cptoken :
5
+
6
+ # Lets encrypt cluster issuer
7
+
8
+ letsencrypt :
9
+ # Lets encrypt certificate issuer user
10
+
11
+ # secret used to store Lets encrypt account's private key
12
+ secret : lets-encrypt-priviate-key
You can’t perform that action at this time.
0 commit comments