s3app
by YOTRON
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:
| name | description |
|---|---|
| S3App | A web application to visualize and to manage the content of S3Bucket independently from Acceess- or Secret-Keys. |
| NGINX | An optional Reverse Proxy as a Kubernetes sidecar to S3App for security and TLS termination (https) |
| PostgreSQL | An optional metadata database. Not needed for testing and can be provided externally. |
URLs
The project contains code, build packages, container ... . Below an overview:
| Type | Provider | URL |
|---|---|---|
| S3App Manual | yotron.de | https://www.yotron.de/s3app/ |
| Container | hub.docker.com | https://hub.docker.com/r/yotronpublic/s3app |
| Python Package (PyPi) | pypi.org | https://pypi.org/project/s3app/ |
| HELM package | artifacthub.io / helm.yotron.de | https://artifacthub.io/packages/helm/yotron-helm-charts/s3app |
| Code/Contribution | github.com | https://github.com/yotron/s3app/ |
| Problems/Feedback | github.com | https://github.com/yotron/s3app/issues |
Prerequisites
- HELM 3
Dependencies
The following dependencies are included in that package.
| name | description |
|---|---|
| k8s-secrets | An application free package to simplify the deployment of secrets to Kubernetes. |
| PostgreSQL by Bitnami | A 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
| Name | Default | Example | Description | Config Parameter (docu) |
|---|---|---|---|---|
| customize.title | S3App by YOTRON | Title of your project. | S3APP_APP_NAME | |
| customize.icon | https://www.yotron.de/img/yotron_logo.svg | Icon 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.
| Name | Default | Example | Description | Config Parameter (docu) |
|---|---|---|---|---|
| logLevel | info | LogLevel for the Logging. Can be: fatal, error, warning, info, debug | S3APP_LOG_LEVEL | |
| hostnames | [] | ["s3app.k8s.yotron.de"] | Mandatory for Ingress and Reverse Proxy: List of hosts the S3App Web server is listening on. | |
| listenerPort | 80 | The 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
| Name | Default | Example | Description |
|---|---|---|---|
| k8s.identifier | s3app | Identifier for the Kubernetes Resources | |
| k8s.annotations | {} | yotron.de/created_by: s3app | Dictionary of annotations added too all Kuberentes resources in the deployment. |
| k8s.service.annotations | {} | metallb.universe.tf/loadBalancerIPs: 192.168.56.249 | Dictionary of annotations added to the Kubernetes service of S3App. |
| k8s.service.type | NodePort | Type of the Kubernetes Service. Could be ClusterIP, NodePort, LoadBalancer, ... | |
| k8s.service.nodePort | 31005 | NodePort the S3App Service is reachable as a Kubernetes NodePort service. |
S3App Image, database and Performance Parameter
| Name | Default | Example | Description | Config Parameter (docu) |
|---|---|---|---|---|
| app.secretKey | changeMySecret | A key which used to sign session cookies for protection against cookie data tampering. In production please change it. | S3APP_SECRET_KEY | |
| app.server.replicas | 1 | Parallelization of S3App-Pods. Increase the to allow High Availability or a higher performance if needed- | ||
| app.server.threadsPerReplica | 4 | Thread per S3App Pod allowed to run. | ||
| app.server.image | yotronpublic/s3app | Docker Image URl of S3App. | ||
| app.server.imagePullPolicy | IfNotPresent | Is set to IfNotPresent to pull the Docker image only if needed. | ||
| app.server.tag | latest | Set the tag of the Docker Image you want to deploy. | ||
| app.server.database.type | sqlite | Set the type of databse to store the S3App metadata. Must be sqlite or postgres. | S3APP_DB_TYPE | |
| app.server.database.pgInternal | true | Set 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.pgDbHost | postgres.mydb.net | Only when pgInternal: false: The host of the external PostgreSQL | S3APP_PG_DB_HOST | |
| app.server.database.pgDbPort | 5432 | Only when pgInternal: false: The listener port of the external PostgreSQL | S3APP_PG_DB_PORT | |
| app.server.database.pdDbName | s3app | Only when pgInternal: false: The database name of the external PostgreSQL | S3APP_PG_DB_NAME | |
| app.server.database.pgDbUserName | s3app | Only when pgInternal: false: The user name to authenticate against the external PostgreSQL | S3APP_PG_DB_USER_NAME | |
| app.server.database.pgDbUserPw | s3app | Only when pgInternal: false: The password to authenticate against the external PostgreSQL | S3APP_PG_DB_USER_PW | |
| app.configs | Map with additional configurations for Flask Appbuilder. |
| For performance tuning please read our remarks in Github
Authentication general
| name | Default | Example | Description | Config Parameter (docu) |
|---|---|---|---|---|
| auth.type | database | ldap | Parameter 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.userRegistration | false | Parameter to define if a user can self registrate to S3App. With LDAP it must be set to True. | AUTH_USER_REGISTRATION | |
| auth.userRegistrationRole | S3User | Default role a user, when registered or authenticated via LDAP firstly. | AUTH_USER_REGISTRATION_ROLE | |
| auth.rolesMapping | Mapping a LDAP group onto a S3App role S3User or Admin. | AUTH_ROLES_MAPPING | ||
| auth.sessionLifeTime | 600 | Seconds 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charts3app is pinned at v1.2.7 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