resurface
Resurface discovers and alerts on quality and security signatures in your API traffic.
About this chart
resurfaceio-helm-resurface
Resurface makes it easy to capture and analyze API calls with your own security data lake.
Components
- StatefulSets: Resurface database coordinator pod and worker replicas with persistent storage. Your very own Resurface instance.
- Service: Coordinator. Exposes the API Explorer frontend for your Resurface instance.
- Service: Worker. Exposes the fluke microservice used to import API calls into your Resurface instance.
- Ingress: Requires HAProxy ingress controller. Enabled by default.
- TLS Secret: (Optional) TLS certificate and key. Used for Ingress TLS termination. A TLS cert and key combination can be autoissued by the cert-manager utility, or it can be provided by the user. Disabled by default.
- Issuer: (Optional) Issues TLS certificate from Let's Encrypt. Requires Cert-manager utility. Disabled by default.
- DaemonSet: (Optional) Packet-sniffer-based logger. Captures API calls made to your application pods over the wire, parses them and sends them to your Resurface pod. A service account, cluster role, and cluster role binding are also deployed with this daemon set. Disabled by default.
- Deployments: (Optional) Data stream consumer applications. Captures API calls made to the Azure API Management and AWS API Gateway services. The API calls are published as events to an Azure Event Hubs/AWS Kinesis Data Streams instance, the applications consume these events, parses them and sends them to your Resurface pod. Opaque secrets containing sensitive data (such as AWS credentials) may be created alongside these deployments. Disabled by default.
- CronJob: (Optional) AWS VPC Traffic Mirror session maker. Creates traffic mirror sessions given different traffic sources (ECS tasks, EC2 instances, and/or Auto-Scaling Groups). When enabled, it updates the list of VNIs used by the sniffer to detect and capture incoming mirrored traffic for all active mirror sessions. It also restarts the DaemonSet accordingly.
Other components:
- ServiceAccounts: All DB workloads use the
resurface-saservice account by default. All Sniffer-related workloads use theresurface-sniffer-saservice account. - ClusterRole: Adds reading capabilities for the Sniffer pods to list pods and services internally. Adds writing capabilities to edit the VNIs ConfigMap when VPC mirroring is enabled.
- ClusterRoleBinding: Binds the ClusterRole to the
resurface-sniffer-saServiceAccount. - Secrets: Used to manage low-level Trino configuration values.
- ConfigMaps: Used to manage low-level Trino settings.
Dependencies
- HAProxy Ingress Controller
- Cert-manager utility (when TLS auto-issuing enabled)
- MinIO Object Storage (when Iceberg storage is enabled)
Values
The ingress values section is where the configuration for the Ingress resource can be found. The following fields can be found nested in this section:
-
ingress.enabled: boolean. The Ingress resource can be disabled by setting this value to
false. In that case, the services can still be exposed, albeit without SSL/TLS termination. See custom.service section. Defaults totrue. -
The ingress.importer nested section corresponds to the endpoint used by each Resurface worker node to import API calls into your Resurface database.
- ingress.importer.expose: boolean. The importer endpoint can be disabled by setting this value to
false. In that case, the endpoint will only be reachable through the worker importer service and not the ingress resource. Defaults totrue. - ingress.importer.path: string. The ingress resource will route all calls made to this path to the worker importer service. Defaults to
"/fluke". Required only if ingress.importer.expose is set totrue.
- ingress.importer.expose: boolean. The importer endpoint can be disabled by setting this value to
-
The ingress.minio nested section refers to routing access to the MinIO web console through the available Ingress Controller (see the Iceberg integration section below)
- ingress.minio.expose: boolean. If both the MinIO subchart has been deployed and the Iceberg integration is enabled, the MinIO web console can be accessed through port
9001by setting this value totrue. Defaults tofalse.
- ingress.minio.expose: boolean. If both the MinIO subchart has been deployed and the Iceberg integration is enabled, the MinIO web console can be accessed through port
-
The ingress.tls nested section corresponds to the TLS termination configuration for the Ingress resource.
- ingress.tls.enabled: boolean. The TLS termination feature can be enabled by setting this value to
true. Defaults tofalse. - ingress.tls.host: string. Host included in the TLS certificate. DNS records must be updated accordingly. Required only if ingress.tls.enabled is set to
true. - ingress.tls.autoissue: this nested subsection corresponds to the configuration needed to auto-issue a TLS certificate using the cert-manager utility. The auto-issuing process is mutually exclusive with respect to the BYOC (bring-your-own-certificate) process.
- ingress.tls.autoissue.enabled: boolean. The TLS certificate automatic issuing and renewal process can be disabled by setting this value to
false. Defaults totrue. - ingress.tls.autoissue.staging: boolean. The TLS certificate automatic issuing and renewal process uses the "Let's Encrypt" ACME as CA. Let's Encrypt provides both a staging environment and a rate-limited production environment for the certificate issuing process. By setting this value to
truecert-manager uses the former, and by setting it tofalseit then uses the latter. Defaults totrue. - ingress.tls.autoissue.email: string. Let's Encrypt will send notices only if a certificate is about to expire and the renewal process has failed. Required only if ingress.tls.autoissue.enabled is set to
true.
- ingress.tls.autoissue.enabled: boolean. The TLS certificate automatic issuing and renewal process can be disabled by setting this value to
- ingress.tls.byoc: this nested subsection corresponds to the bring-your-own-certificate configuration. This process is mutually exclusive with respect to the auto-issuing process. A user must supply the name of a Kubernetes TLS Secret that already exists in the same namespace.
- ingress.tls.byoc.secretname: string. Name of an already existing Kubernetes TLS Secret to be used by the Ingress resource. Required only if ingress.tls.enabled is set to
trueand ingress.tls.autoissue.enabled is set tofalse.
- ingress.tls.byoc.secretname: string. Name of an already existing Kubernetes TLS Secret to be used by the Ingress resource. Required only if ingress.tls.enabled is set to
- ingress.tls.enabled: boolean. The TLS termination feature can be enabled by setting this value to
ingress:
enabled: true
tls:
enabled: true
host: thisisanexample.com
autoissue:
staging: false
email: [email protected]
Authentication can be configured in the auth section.
-
auth.enabled: boolean. If set to
true, an authentication header will be required for any DB transaction. Auth will work only when TLS is enabled. At least one authentication method must be enabled when auth is enabled. Defaults tofalse. -
The auth.basic subsection corresponds to basic authentication. When basic auth is enabled, a secret containing an encrypted list of allowed credentials will be mounted in the file system, and a valid username and password combination will be required at the login page of the API Explorer.
- auth.basic.enabled: If set to
true, basic authentication will be enabled. Defaults tofalse. - auth.basic.credentials: Sequence of credentials allowed. Both a username and password are required for each item. At least one credential must be passed when auth.basic.enabled is set to
true.
- auth.basic.enabled: If set to
-
The auth.jwt subsection refers to authentication using JSON Web Tokens. When JWT auth is enabled, only requests with a valid bearer token header will be served.
- auth.jwt.enabled: If set to
true, JWT authentication will be enabled. Defaults tofalse. - auth.jwt.jwksurl: String. The URL pointing to a JWKS service, a PEM or HMAC file that can be used to validate the JWT signature of each token.
- auth.jwt.enabled: If set to
-
The auth.oauth2: subsection corresponds to authentication provided by an external OAuth 2.0 identity provider. When OAuth2 auth is enabled, users will be redirected to the external provider Log In page, and redirected back to the API Explorer once authenticated. All the corresponding endpoints for an external OAuth 2.0 Authorization Code service must be configured, as well as a Client ID and Client Secret provided by this third party.
- auth.oauth2.enabled: If set to
true, OAuth 2.0 will be enabled. Defaults tofalse. - auth.oauth2.issuer: String. The issuer URL for the external OAuth 2.0 service. All tokens issued by the service must have this in the
issfield. Required only if auth.aouth2.enabled is set totrue. - auth.oauth2.authurl: String. The service authorization URL. The browser will be redirected to this URL when accessing the API Explorer for the first time. Required only if auth.aouth2.enabled is set to
true. - auth.oauth2.tokenurl: String. The URL of the endpoint on the authorization server to exchange the authorization code for an access token. Required only if auth.aouth2.enabled is set to
true. - auth.oauth2.jwksurl: String. The URL of the JSON Web Key Set (JWKS) endpoint on the authorization server. It must point to the set of keys containing the public key to verify any JSON Web Token (JWT) from the authorization server. Required only if auth.aouth2.enabled is set to
true. - auth.oauth2.userinfourl: String. If supplied then this URL is used to validate the OAuth access token and retrieve any associated claims. Required only if the authorization server issues opaque tokens.
- auth.oauth2.clientid: String. Client identifier provided by the external OAuth 2.0 service.
- auth.oauth2.clientsecret: String. Client secret provided by the external OAuth2.0 service.
- auth.oauth2.enabled: If set to
auth:
enabled: true
basic:
enabled: true
credentials:
- username: admin
password: irtRUqUp7fkfL
- username: msmith
password: qPBceDWjPJFYKfX7QAXfmy1b33tBE
jwt:
enabled: true
jwksurl: https://cluster.example.net/.well-known/jwks.json
oauth2:
enabled: true
issuer: https://accounts.google.com
authurl: https://accounts.google.com/o/oauth2/v2/auth
tokenurl: https://oauth2.googleapis.com/token
jwksurl: https://www.googleapis.com/oauth2/v3/certs
userinfourl: https://openidconnect.googleapis.com/v1/userinfo
clientid: sampleid123.apps.googleusercontent.com
clientsecret: samplesecret456
The provider value is a string equal to either azure, aws, or gcp. It is used as an alias to request persistent volumes specific to each provider. See the custom.storage section.
provider: azure
The units values is a string equal to either binary or metric. It is used to set the convention used for data units when configuring a release of this chart. When set to binary, powers to two (kiB, MiB, GiB, TiB) are used. When set to metric, powers of ten (kB, MB, GB, TB) are used. Defaults to binary.
The multinode section is where the configuration to set multiple database nodes can be found.
- multinode.enabled: boolean. If set to
trueworker nodes are enabled. Otherwise, the single-node configuration is used. Defaults tofalse - multinode.workers: integer. Number of stateful worker nodes to deploy. Resources mus t be available in the cluster in order to succesfully scale accordingly. The total number of nodes in the database will be multinode.workers + 1, since the coordinator node itself always acts as a worker node.
multinode:
enabled: true
workers: 3
Iceberg integration can be configured in the iceberg section. In this mode, data will automatically be pushed to a given object storage server using the Apache Iceberg table format. This can increase storage capacity at least 10x with next to no performance impact. The configured object storage can be an external service such as AWS S3, or it can be hosted in the same Kubernetes cluster using MinIO. A valid license must be provided in order to enable an Iceberg integration succesfully. At the moment, downgrades from an iceberg deployment to a non-iceberg deployment are not supported.
-
iceberg.enabled: boolean. If set to
true, data will automatically be replicated to the configured object storage, including all data already captured. Defaults tofalse. -
The iceberg.s3 subsection corresponds to the configuration for the AWS S3 object storage service.
- iceberg.s3.enabled: If set to
true, AWS S3 object storage will be used to store Iceberg data and metadata files. It is important to note that MinIO, AWS S3, and Azure Blob Storage iceberg deployments are all mutually exclusive. Defaults tofalse. - iceberg.s3.bucketname: string. Unique name for the S3 bucket where data will be written to.
- iceberg.s3.aws: nested subsection where the configuration for the AWS account that owns the S3 bucket can be found.
- iceberg.s3.aws.region: string. AWS region where S3 bucket was created in. Required only if iceberg.s3.enabled is set to
true. - iceberg.s3.aws.accesskey: string. AWS Credentials. It is not recommended to pass the AWS credentials as helm values, and instead create a kubernetes secret object manually named resurface-s3-creds with the corresponding key-value pairs. Required only if iceberg.s3.enabled is set to
trueand the resurface-s3-creds secret does not exist. - iceberg.s3.aws.secretkey: string. AWS Credentials. It is not recommended to pass AWS credentials as helm values, and instead create a kubernetes secret object manually named resurface-s3-creds with the corresponding key-value pairs. Required only if iceberg.s3.enabled is set to
trueand the **resurface-s3-creds
- iceberg.s3.aws.region: string. AWS region where S3 bucket was created in. Required only if iceberg.s3.enabled is set to
- iceberg.s3.enabled: If set to
Deploy resurface with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has resurface 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 chartresurface is pinned at v3.9.0 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