sourcefield
by SourceField
SourceField's Application Helm Chart, containing our UI, Backend, and all required dependencies
About this chart
In order to install the Helm chart, please run the following after configuring your values, e.g. ./values.yaml:
INSTALLED_CHART_NAME="sourcefield"
CHART_URL="https://harbor.sourcefield.io/chartrepo/sourcefield-public/sourcefield"
CHART_VERSION="0.1.4-dev"
helm install \
"${INSTALLED_CHART_NAME}" \
"${CHART_URL}" \
--version "${CHART_VERSION}" \
-f "./values.yaml"
Exposed Services
If you are not using the provided capability to expose ingresses via violet.ingress.enabled or stereoscope.ingress.enabled, you will have to accommodate the services below. In addition, you will also need to setup the DNS names (global.stereoscope.hostName and global.violet.hostName) that each service uses as outlined in Values : Required : All Installations.
Violet (Front-End)
Service Name: <.Release.Name>-stereoscope
Port: 8000
Stereoscope (Back-End)
Service Name: <.Release.Name>-violet
Port: 3000
Values
Required
All Installations
| Key | Type | Default | Description |
| --------------------------------------- | ------ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | ------- |
| global.env.SOURCEFIELD_LICENSE_KEY | string | nil | License Key for your SourceField installation (required) |
| global.stereoscope.hostName | string | nil | Host DNS name for SourceField's Stereoscope App (required); this must match all entries for stereoscope.ingress.hosts[*].host and stereoscope.ingress.tls[*].hosts[*] |
| global.violet.hostName | string | nil | Host DNS name for SourceField's Violet App ; this must match all entries for violet.ingress.hosts[*].host and violet.ingress.tls[*].hosts[*] |
| stereoscope.env.DJANGO_SECRET_KEY | string | nil | (Required) This is the Django secret key that keeps the application secure; recommendation: base64 /dev/urandom | head -c50 |
| stereoscope.env.FIELD_ENCRYPTION_KEY | string | nil | (Required) This is the key which ensures that all encrypted data can be unencrypted from the app. This should be stored as all encrypted data will be non-recoverable if this value changes; recommendation: cat /dev/urandom | head -c32 | base64 |
| stereroscope.env.DNS_HOSTNAME_CRISSPR | string | crisspr.sourcefield.io | Do not change; this is how SourceField connects to our Risk Score image generator |
GitHub Enterprise
| Key | Type | Default | Description |
|---|---|---|---|
stereoscope.env.GITHUB_BASE_URL | string | https://github.com | (Important) If using GitHub Enterprise, this URL will be custom to your instance, otherwise, the application is configured for GitHub Cloud |
stereoscope.env.GITHUB_API_BASE_URL | string | https://api.github.com | (Important) If using GitHub Enterprise, this URL will be custom to your instance, otherwise, the application is configured for GitHub Cloud |
Can Modify
| Key | Type | Default | Description |
|---|---|---|---|
stereoscope.image.pullPolicy | string | IfNotPresent | When the application restarts, how should K8s handle the Docker image |
stereoscope.resources | map | {} | K8s resources for the Stereoscope application |
violet.image.pullPolicy | string | IfNotPresent | When the application restarts, how should K8s handle the Docker image |
violet.resources | map | {} | K8s resources for the Violet application |
stereoscope.postgresql.metrics.enabled | boolean | false | Whether to enable Prometheus metrics for SourceField's Postgres instance |
One-Time Modification Only
| Key | Type | Default | Description |
|---|---|---|---|
stereoscope.neo4j.name | string | sourcefield | Username for Stereoscope to connect to neo4j |
stereoscope.neo4j.password | string | sourcefield | Password for Stereoscope's neo4j user |
stereoscope.postgresql.auth.username | string | sourcefield | Username for Stereoscope to connect to Postgres |
stereoscope.postgresql.auth.password | string | sourcefield | Password for Stereoscope to connect to Postgres |
stereoscope.postgresql.auth.database | string | sourcefield | Database created for Stereoscope to use in Postgres |
stereoscope.postgresql.auth.postgresPassword | string | sourcefield | Password for Stereoscope's Postgres user |
Ingress-Related*
You must have an ingress to both the Stereoscope and Violet applications. There are validation checks to ensure that the Ingress is properly configured - meaning that the values for the following must be the same (<application> is either stereoscope or violet):
global.<application>.hostName<application>.ingress.hosts[*].host<application>.ingress.tls[*].hosts[*]
| Key | Type | Default | Description |
|---|---|---|---|
<application>.ingress.enabled | boolean | false | Whether to use the SourceField's app ingress |
<application>.ingress.className | string | "nginx" | Ingress class to use for SourceField's app ingress |
<application>.ingress.annotations | map | {} | Annotations to add to the SourceField's app ingress |
<application>.ingress.hosts | array | See values.yaml | List of hosts for SourceField's app ingress; set the following: host, paths.path (/), and paths.pathType (ImplementationSpecific) |
<application>.ingress.tls | array | See values.yaml | List of TLS hosts for the SourceField-configured ingress |
Do Not Modify
| Key | Type | Default | Description |
|---|---|---|---|
global.env.PUBLIC_DOCS_URL | string | docs.sourcefield.io | |
stereoscope.image.repository | string | us-docker.pkg.dev/plumbr/sourcefield-public/stereoscope | Do not change this - versions of Stereoscope and Violet are heavily-linked to each other |
stereoscope.image.tag | string | 28e75b8 | Do not change this - versions of Stereoscope and Violet are heavily-linked to each other |
stereroscope.env.DNS_HOSTNAME_CRISSPR | string | crisspr.sourcefield.io | Do not change; this is how SourceField connects to our Risk Score image generator |
stereoscope.env.NEO4J_PORT | int | 7474 | The port for the neo4j instance |
stereoscope.env.NEO4J_USERNAME | string | neo4j | Do not change; currently changing this will cause the installation to fail due to an issue with neo4j's Helm chart |
violet.image.repository | string | us-docker.pkg.dev/plumbr/sourcefield-public/violet | Do not change this - versions of violet and Violet are heavily-linked to each other |
violet.image.tag | string | 52bb08a | Do not change this - versions of Stereoscope and Violet are heavily-linked to each other |
Deploy sourcefield with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sourcefield on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsourcefield is pinned at v0.1.4-dev in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply