Skip to content

Commit a6f075f

Browse files
authored
Merge pull request #14 from ehorning/feature/CORE-2736-add-dependencies
add cse to marketplace listing
2 parents 1a00a73 + 490f58e commit a6f075f

File tree

6 files changed

+160
-4
lines changed

6 files changed

+160
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ to complete necessary fields prior to deployment.
1212
Virtru was founded on the core belief that privacy-preserving data protection is both a fundamental right and a force multiplier for organizations. Our products make it easy to share sensitive data, while you meet compliance, so you can collaborate with confidence and achieve your organizational mission. If you have questions, need support, or require help installing Virtru, please visit our support center.
1313
[Learn more](https://support.virtru.com/hc/en-us)
1414

15+
## Deploying with `mpdev`
16+
17+
To deploy to marketplace using Google's `mpdev` tool, first add the necessary secrets and configs to the `parameters` JSON block in `gke-deploy.sh`. Parameters set here can be used to override the default settings in `chart/gateway/values.yaml`. If deploying to production, set `ENVIRONMENT=production` in your local environment. Then run `./gke-deploy.sh` to deploy.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.4.2
1+
3.5.0

chart/gateway/Chart.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
apiVersion: v2
22
name: gateway
33
version: 1.0.0
4+
# Should be updated to use github or chartmuseum urls instead of relative
5+
# paths after https://github.com/virtru/virtru-charts/pull/19 is merged
6+
dependencies:
7+
- name: cse
8+
version: 0.2.0
9+
repository: https://charts.production.virtru.com
10+
condition: cse.enabled
11+
- name: cks
12+
version: 0.4.0
13+
repository: https://charts.production.virtru.com
14+
condition: cks.enabled

chart/gateway/values.yaml

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
replicaCount: 2
22

33
image:
4-
repository: gcr.io/virtru-public/staging/gateway
4+
repository: gcr.io/virtru-public/gateway
55
pullPolicy: Always
66
# Overrides the image tag whose default is the chart appVersion.
7-
tag: "2.14.0"
7+
tag: "2.15.0"
88

99
imagePullSecrets: []
1010
nameOverride: ""
@@ -60,3 +60,47 @@ gatewayApiTokenName: my-token
6060
gatewayApiSecret: my-secret
6161
gatewayTransportMaps: '*=>[smtp-relay.gmail.com]:587'
6262
ubbagentImage: "gcr.io/cloud-marketplace-tools/metering/ubbagent:latest"
63+
64+
cks:
65+
enabled: False
66+
image:
67+
repository: "gcr.io/virtru-public/gateway/cks"
68+
tag: "v1.3.4"
69+
testPodAnnotations:
70+
helm.sh/hook: test-success
71+
replicaCount: 1
72+
service:
73+
type: LoadBalancer
74+
virtruAuth:
75+
authTokenJson: "fake-auth-token"
76+
77+
cse:
78+
enabled: False
79+
ingress:
80+
enabled: true
81+
host: "http://cse.default.svc.cluster.local"
82+
image:
83+
repository: "gcr.io/virtru-public/gateway/cse"
84+
tag: "v3.0.1-ccbc39e"
85+
imagePullSecrets: []
86+
testPodAnnotations:
87+
helm.sh/hook: test-success
88+
service:
89+
type: LoadBalancer
90+
appSecrets:
91+
hmac:
92+
tokenId: "fake-hmac-token-id"
93+
tokenSecret: "fake-hmac-token-secret"
94+
secretKey: "fake-secret-key"
95+
ssl:
96+
certificate: "fake-certificate"
97+
privateKey: "fake-private-key"
98+
appConfig:
99+
accountsUrl: "https://api.virtru.com/accounts/api"
100+
acmUrl: "https://api.virtru.com/acm/api"
101+
jwksAuthzIssuers: "eyAidmlydHJ1LXRlc3QiOiAiaHR0cDovL2p3dC5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsL2p3ay5qc29uIiB9Cg=="
102+
jwksAuthnIssuers: "eyAidmlydHJ1LXRlc3QiOiAiaHR0cDovL2p3dC5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsL2p3ay5qc29uIiB9Cg=="
103+
jwtAud: "eyJhdXRobiI6InZpcnRydS10ZXN0IiwiYXV0aHoiOiJ2aXJ0cnUtdGVzdCJ9Cg=="
104+
jwtKaclsUrl: "http://cse.default.svc.cluster.local"
105+
processNumberOverride: "5"
106+
useSsl: "true"

gke-deploy.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
set -eu
1919

20+
cd chart/gateway
21+
helm dependency update
22+
cd -
23+
2024
if [[ "${ENVIRONMENT:-}" = 'production' ]]; then
2125
export REGISTRY=gcr.io/virtru-public/gateway;
2226
printf 'Deploying to production. Using registry [%s]\n' $REGISTRY
@@ -50,7 +54,17 @@ parameters=$(cat <<virtruparams
5054
"gatewayApiSecret": "mysecret",
5155
"numberOfLicenses":"10",
5256
"primaryMailingDomain":"virtru.example.com",
53-
"reportingSecret":"gs://cloud-marketplace-tools/reporting_secrets/fake_reporting_secret.yaml"
57+
"reportingSecret":"gs://cloud-marketplace-tools/reporting_secrets/fake_reporting_secret.yaml",
58+
"cse.appSecrets.hmac.tokenId":"my-hmac-token-id",
59+
"cse.appSecrets.hmac.tokenSecret":"my-hmac-token-secret",
60+
"cse.appSecrets.secretKey":"my-cse-secret-key",
61+
"cse.appSecrets.ssl.certificate":"my-ssl-certificate",
62+
"cse.appSecrets.ssl.privateKey":"my-ssl-private-key",
63+
"cse.appConfig.jwksAuthzIssuers":"eyAidmlydHJ1LXRlc3QiOiAiaHR0cDovL2p3dC5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsL2p3ay5qc29uIiB9Cg==",
64+
"cse.appConfig.jwksAuthnIssuers":"eyAidmlydHJ1LXRlc3QiOiAiaHR0cDovL2p3dC5kZWZhdWx0LnN2Yy5jbHVzdGVyLmxvY2FsL2p3ay5qc29uIiB9Cg==",
65+
"cse.appConfig.jwtAud":"eyJhdXRobiI6InZpcnRydS10ZXN0IiwiYXV0aHoiOiJ2aXJ0cnUtdGVzdCJ9Cg==",
66+
"cse.appConfig.jwtKaclsUrl":"cse.virtru.svc.cluster.local",
67+
"cse.ingress.host":"cse.virtru.svc.cluster.local"
5468
}
5569
virtruparams
5670
)

schema.yaml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ x-google-marketplace:
1616
type: REPO_WITH_REGISTRY
1717
image.tag:
1818
type: TAG
19+
cse:
20+
properties:
21+
cse.image.repository:
22+
type: REPO_WITH_REGISTRY
23+
cse.image.tag:
24+
type: TAG
1925
ubbagent:
2026
# Image for the Billing sidecar, from Google
2127
properties:
@@ -135,6 +141,84 @@ properties:
135141
type: string
136142
x-google-marketplace:
137143
type: REPORTING_SECRET
144+
cse.enabled:
145+
title: Include Google Client Side Encryption Key Management Server (KMS)
146+
description: Standard Plan Required
147+
type: boolean
148+
enum:
149+
- True
150+
- False
151+
default: True
152+
cse.appSecrets.hmac.tokenId:
153+
title: Google Client Side Encryption KMS Token ID
154+
description: Token ID Provided by Virtru. Leave blank if not deploying Google Client Side Encryption KMS
155+
type: string
156+
x-google-marketplace:
157+
type: STRING
158+
default: ""
159+
cse.appSecrets.hmac.tokenSecret:
160+
title: Google Client Side Encryption KMS Token Secret
161+
description: Token Secret Provided by Virtru. Leave blank if not deploying Google Client Side Encryption KMS
162+
type: string
163+
x-google-marketplace:
164+
type: STRING
165+
default: ""
166+
cse.appSecrets.secretKey:
167+
title: Google Client Side Encryption KMS Secret Key
168+
description: Leave blank if not deploying Google Client Side Encryption KMS
169+
type: string
170+
x-google-marketplace:
171+
type: STRING
172+
default: ""
173+
cse.appSecrets.ssl.certificate:
174+
title: Google Client Side Encryption SSL Certificate
175+
description: Leave blank if not deploying Google Client Side Encryption KMS
176+
type: string
177+
x-google-marketplace:
178+
type: STRING
179+
default: ""
180+
cse.appSecrets.ssl.privateKey:
181+
title: Google Client Side Encryption SSL Private Key
182+
description: Leave blank if not deploying Google Client Side Encryption KMS
183+
type: string
184+
x-google-marketplace:
185+
type: STRING
186+
default: ""
187+
cse.appConfig.jwksAuthzIssuers:
188+
title: Authz Issuers
189+
description: Base64-encoded authz issuer json. Leave blank if not deploying Google Client Side Encryption KMS
190+
type: string
191+
x-google-marketplace:
192+
type: STRING
193+
default: "default"
194+
cse.appConfig.jwksAuthnIssuers:
195+
title: Authn Issuers
196+
description: Base64-encoded authn issuer json. Leave blank if not deploying Google Client Side Encryption KMS
197+
type: string
198+
x-google-marketplace:
199+
type: STRING
200+
default: "default"
201+
cse.appConfig.jwtAud:
202+
title: Issuer Names
203+
description: Base64-encoded json containing issuer names. Leave blank if not deploying Google Client Side Encryption KMS
204+
type: string
205+
x-google-marketplace:
206+
type: STRING
207+
default: "default"
208+
cse.appConfig.jwtKaclsUrl:
209+
title: Google Client Side Encryption URL
210+
description: Leave blank if not deploying Google Client Side Encryption KMS
211+
type: string
212+
x-google-marketplace:
213+
type: STRING
214+
default: "http://cse.default.svc.cluster.local"
215+
cse.ingress.host:
216+
title: Google Client Side Encryption Domain Name
217+
description: Leave blank if not deploying Google Client Side Encryption KMS
218+
type: string
219+
x-google-marketplace:
220+
type: STRING
221+
default: "http://cse.default.svc.cluster.local"
138222
required:
139223
- name
140224
- namespace

0 commit comments

Comments
 (0)