Skip to content

Commit

Permalink
DeployAI: Add marketplace verifier
Browse files Browse the repository at this point in the history
  • Loading branch information
dwendland committed Jul 26, 2024
1 parent 8eeb1e7 commit e3dbf4a
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 0 deletions.
18 changes: 18 additions & 0 deletions aws/apps/deployai/marketplace/verifier.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: verifier-marketplace
namespace: argocd
spec:
destination:
namespace: deployai
server: https://kubernetes.default.svc
project: default
source:
path: aws/deployai/marketplace/iam/verifier
repoURL: https://github.com/FIWARE-Ops/fiware-gitops
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
12 changes: 12 additions & 0 deletions aws/deployai/marketplace/iam/verifier/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v2
name: vcverifier
description: Chart holder for argo-cd

type: application
version: 1.0.22
appVersion: "2.1.0"

dependencies:
- name: vcverifier
version: 1.0.22
repository: https://i4Trust.github.io/helm-charts
78 changes: 78 additions & 0 deletions aws/deployai/marketplace/iam/verifier/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
vcverifier:
deployment:
image:
repository: quay.io/fiware/vcverifier
tag: 2.7.0
pullPolicy: Always
logging:
level: DEBUG
pathsToSkip:
- "/health"

ssikit:
auditorUrl: http://waltid-marketplace-vcwaltid:7003
verifier:
tirAddress: https://tir.deployai.fiware.dev
did: did:web:marketplace.deployai.fiware.dev
configRepo:
configEndpoint: http://ccs-marketplace-credentials-config-service:8080/

initContainers:
- name: add-theme
image: quay.io/fiware/verifier-theme:0.0.1
imagePullPolicy: Always
volumeMounts:
- name: static-volume
mountPath: /target

server:
staticDir: /static
templateDir: /templates

route:
enabled: true
host: verifier-marketplace.deployai.fiware.dev
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
certificate:
issuer:
kind: ClusterIssuer
name: letsencrypt-aws-prod


templates:
verifier_present_qr.html: |-
{{define "verifier_present_qr"}}
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<link href="/static/css/w3pro.css" rel="stylesheet">
<link href="/static/css/mystyle.css" rel="stylesheet">
<link href="/static/css/prism.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#2d58a7">
<title>Credential Verifier</title>
</head>
<body>
<div class="w3-bar w3-card color-primary w3-margin-bottom w3-large">
<a class="w3-bar-item w3-right" href="https://marketplace.deployai.fiware.dev"><img src="/static/img/logo-white.svg" alt="DeployAI Marketplace" style="width:222px;height:50px;">
</a>
</div>
<main class="w3-container w3-center">
<h3>Scan this QR code to authenticate with a mobile</h3>
<img src="data:{{.qrcode}}" alt="the qr.">
</main>
</body>
</html>
{{end}}
static:
enabled: true

0 comments on commit e3dbf4a

Please sign in to comment.