openshift-secured-pgadmin

by info.eximia.it

Helm chartv0.2.0Verified publisher

A secured version of PgAdmin for OpenShift

About this chart

Project: Secured PgAdmin Chart

Overview

This project contains a Helm chart that enables the deployment of the PgAdmin application on an OpenShift environment. The application is secured using OpenShift oauth-proxy to control access and provide robust authentication and authorization.

Features

  • PgAdmin: Is the most popular and feature rich Open Source administration and development platform for PostgreSQL, the most advanced Open Source database in the world.

  • OAuth-proxy: The OAuth proxy is an integral part of our security setup. It stands as a gatekeeper between the user and the PgAdmin application, providing a protective layer of authentication and authorization.

Pre-requisites

  • OpenShift environment
  • Helm installed

Installation

Before installing the Secured PgAdmin Chart, add the chart repository to your Helm configuration:

helm repo add eximiait https://charts.eximiait.com.ar
helm repo update

To install the Secured PgAdmin Chart from the EximiaIT repository with the release name my-release, run the following command:

helm install my-release eximiait/openshift-secured-pgadmin

You can also customize the installation by specifying a values.yaml file:

helm install my-release eximiait/openshift-secured-pgadmin -f values.yaml

Configuration

The following table lists the configurable parameters of the Secured PgAdmin Chart and their default values.

ParameterDescriptionDefault
base.nameOverrideOverrides the name of the chart"pgadmin"
base.fullnameOverrideOverrides the full name of the chart"pgadmin"
base.volumes[0].nameName of the volume"pgadmin-data"
base.volumes[0].emptyDirSets to use an empty directory as volume{}
base.volumes[0].persistentVolumeClaim.claimNameThe name of PersistentVolumeClaim to use. If selected, you should set pvc.enabled: true.storage-claim
base.containers[0].nameName of the container"app"
base.containers[0].imageThe Docker image for PgAdmin"dpage/pgadmin4:7.4"
base.containers[0].imagePullPolicyImage pull policy for PgAdmin"IfNotPresent"
base.containers[0].ports[0].nameName of the exposed port"http"
base.containers[0].ports[0].containerPortPort to expose on the container's IP address80
base.containers[0].ports[0].protocolProtocol for the port"HTTP"
base.containers[0].livenessProbe.httpGet.pathPath to access on the IP to check the health"/misc/ping"
base.containers[0].livenessProbe.httpGet.portPort to use to check the health80
base.containers[0].livenessProbe.initialDelaySecondsNumber of seconds after the container has started before liveness probes are initiated30
base.containers[0].livenessProbe.periodSecondsHow often (in seconds) to perform the probe60
base.containers[0].livenessProbe.failureThresholdWhen a Pod starts and the probe fails, Kubernetes will try failureThreshold times before giving up3
base.containers[0].resourcesCompute resources required by the container{}
base.containers[0].volumeMounts[0].nameName of the volume mount"pgadmin"
base.containers[0].volumeMounts[0].mountPathPath where the volume should be mounted in the container"/pgadmin-data"
base.upstreamUpstream URL for the OAuth Proxy"http://localhost:80"
base.cookieSecretSecret used to encrypt OAuth cookies"bA7kPuPzko-igWaLPhVDWVj_VhENVnVcHce6rYQwu_s="
pvc.enabledUsed to create a PVCfalse
pvc.sizeUsed to indicate a PVC size1Gi

These parameters can be set in the values.yaml file or passed on the command line during chart installation. For example:

helm install my-release eximiait/redisinsight-oauth-proxy --set base.nameOverride=myapp

Chart dependencies

This chart has the following dependency:

dependencies:
  - name: openshift-secured-app
    version: x.y.z
    repository: https://charts.eximiait.com.ar

Security

We use OAuth-proxy as a mechanism for securing access to PgAdmin. OAuth-proxy provides a layer of security that handles authentication and authorization, ensuring only authenticated and authorized users can access the application.

Contribution

Contributions are welcome! Read the Contribution Guidelines for more information.

Deploy openshift-secured-pgadmin with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openshift-secured-pgadmin 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartopenshift-secured-pgadmin is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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