s3app

by YOTRON

Helm chartv1.2.7App 1.2.7Apache-2.0

S3App simplifies the access to a S3Buckets with a provider independent web based frontend which allows the visualizing and the management of the co ntent of S3 buckets.

About this chart

YOTRON is a consultancy company which is focused on DevOps, Cloudmanagement and Data Management. Visit us on www.yotron.de.

S3App

Description

S3 (Simple Storage Solution) is a file storage services which is part of Cloud solutions. It is known for its scalability, data availability, security, performance and the ease to connect storage clients to it. Introduced by Amazon in AWS, other provider of managed S3 are available just like software solutions to set up an private S3-solution like (Ceph or Cloudian).

S3App simplifies the access to a S3Buckets with a provider independent web based frontend which allows the visualizing and the management of the content of S3 buckets.

For further information and the manual, please see YOTRON/s3app

Content

This HELM package contains th following applications:

namedescription
S3AppA web application to visualize and to manage the content of S3Bucket independently from Acceess- or Secret-Keys.
NGINXAn optional Reverse Proxy as a Kubernetes sidecar to S3App for security and TLS termination (https)
PostgreSQLAn optional metadata database. Not needed for testing and can be provided externally.

URLs

The project contains code, build packages, container ... . Below an overview:

TypeProviderURL
S3App Manualyotron.dehttps://www.yotron.de/s3app/
Containerhub.docker.comhttps://hub.docker.com/r/yotronpublic/s3app
Python Package (PyPi)pypi.orghttps://pypi.org/project/s3app/
HELM packageartifacthub.io / helm.yotron.dehttps://artifacthub.io/packages/helm/yotron-helm-charts/s3app
Code/Contributiongithub.comhttps://github.com/yotron/s3app/
Problems/Feedbackgithub.comhttps://github.com/yotron/s3app/issues

Prerequisites

  • HELM 3

Dependencies

The following dependencies are included in that package.

namedescription
k8s-secretsAn application free package to simplify the deployment of secrets to Kubernetes.
PostgreSQL by BitnamiA optional package if you want to deploy a PostgreSQL additionally.

Installation

Fast installation

You can install a fully functional S3App for testing and demonstration without the need of a configuration.

helm repo add yotron-apps http://helm.yotron.de/
helm install s3app yotron-apps/s3app

S3App is now reachable with a NodePort service under http://:31005

Integration as a Chart dependency

To integrate S3App into you project Chart, please add the HELM package to your own HELM project:

dependencies:
  - name: s3app
    version: <the version you want>
    repository: http://helm.yotron.de/

HELM Configuration

S3App Customization Parameter

NameDefaultExampleDescriptionConfig Parameter (docu)
customize.titleS3App by YOTRONTitle of your project.S3APP_APP_NAME
customize.iconhttps://www.yotron.de/img/yotron_logo.svgIcon to be used in the Header. Can be any URL to an png, svg, ... .S3APP_APP_ICON

Log and Server Parameter

The server settings like hostnamesor listenerPort can be used independently if you want to use the Ingress Controller or the ReverseProxy as the application web endpoint.

NameDefaultExampleDescriptionConfig Parameter (docu)
logLevelinfoLogLevel for the Logging. Can be: fatal, error, warning, info, debugS3APP_LOG_LEVEL
hostnames[]["s3app.k8s.yotron.de"]Mandatory for Ingress and Reverse Proxy: List of hosts the S3App Web server is listening on.
listenerPort80The port of S3App Web Server is listening on, like https://s3app.k8s.yotron.de:443
listenerIPs["192.168.56.249"]IPs S3App shall listen on. Must be set to allow external Access to the app directly.

General K8S Parameter

NameDefaultExampleDescription
k8s.identifiers3appIdentifier for the Kubernetes Resources
k8s.annotations{}yotron.de/created_by: s3appDictionary of annotations added too all Kuberentes resources in the deployment.
k8s.service.annotations{}metallb.universe.tf/loadBalancerIPs: 192.168.56.249Dictionary of annotations added to the Kubernetes service of S3App.
k8s.service.typeNodePortType of the Kubernetes Service. Could be ClusterIP, NodePort, LoadBalancer, ...
k8s.service.nodePort31005NodePort the S3App Service is reachable as a Kubernetes NodePort service.

S3App Image, database and Performance Parameter

NameDefaultExampleDescriptionConfig Parameter (docu)
app.secretKeychangeMySecretA key which used to sign session cookies for protection against cookie data tampering. In production please change it.S3APP_SECRET_KEY
app.server.replicas1Parallelization of S3App-Pods. Increase the to allow High Availability or a higher performance if needed-
app.server.threadsPerReplica4Thread per S3App Pod allowed to run.
app.server.imageyotronpublic/s3appDocker Image URl of S3App.
app.server.imagePullPolicyIfNotPresentIs set to IfNotPresent to pull the Docker image only if needed.
app.server.taglatestSet the tag of the Docker Image you want to deploy.
app.server.database.typesqliteSet the type of databse to store the S3App metadata. Must be sqlite or postgres.S3APP_DB_TYPE
app.server.database.pgInternaltrueSet to false if you want to use a external PostgreSQL. Set to true to use the PostgreSQL deployed by this HELM package.
app.server.database.pgDbHostpostgres.mydb.netOnly when pgInternal: false: The host of the external PostgreSQLS3APP_PG_DB_HOST
app.server.database.pgDbPort5432Only when pgInternal: false: The listener port of the external PostgreSQLS3APP_PG_DB_PORT
app.server.database.pdDbNames3appOnly when pgInternal: false: The database name of the external PostgreSQLS3APP_PG_DB_NAME
app.server.database.pgDbUserNames3appOnly when pgInternal: false: The user name to authenticate against the external PostgreSQLS3APP_PG_DB_USER_NAME
app.server.database.pgDbUserPws3appOnly when pgInternal: false: The password to authenticate against the external PostgreSQLS3APP_PG_DB_USER_PW
app.configsMap with additional configurations for Flask Appbuilder.

| For performance tuning please read our remarks in Github

Authentication general

nameDefaultExampleDescriptionConfig Parameter (docu)
auth.typedatabaseldapParameter to define the authentication method. It can be an authentication via LDAP or via the default database with name and password.S3APP_AUTH_TYPE
auth.userRegistrationfalseParameter to define if a user can self registrate to S3App. With LDAP it must be set to True.AUTH_USER_REGISTRATION
auth.userRegistrationRoleS3UserDefault role a user, when registered or authenticated via LDAP firstly.AUTH_USER_REGISTRATION_ROLE
auth.rolesMappingMapping a LDAP group onto a S3App role S3User or Admin.AUTH_ROLES_MAPPING
auth.sessionLifeTime600Seconds of inactivity after which a user must re-login.PERMANENT_SESSION_LIFETIME

Authentication LDAP

| name | Default | Ex

Deploy s3app with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has s3app 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 charts3app is pinned at v1.2.7 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