diff --git a/charts/incubator/sshwifty/.helmignore b/charts/incubator/sshwifty/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/sshwifty/.helmignore @@ -0,0 +1,30 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png diff --git a/charts/incubator/sshwifty/CHANGELOG.md b/charts/incubator/sshwifty/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/sshwifty/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/sshwifty/Chart.yaml b/charts/incubator/sshwifty/Chart.yaml new file mode 100644 index 00000000000..49626f014c7 --- /dev/null +++ b/charts/incubator/sshwifty/Chart.yaml @@ -0,0 +1,27 @@ +apiVersion: v2 +appVersion: "latest" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 12.4.21 +deprecated: false +description: SSHwifty is a SSH and Telnet connector made for the Web. +home: https://truecharts.org/charts/incubator/sshwifty +icon: https://truecharts.org/img/hotlink-ok/chart-icons/sshwifty.png +keywords: + - ssh +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: sshwifty +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/sshwifty + - https://github.com/niruix/sshwifty +type: application +version: 0.0.1 +annotations: + truecharts.org/catagories: | + - ssh + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/sshwifty/README.md b/charts/incubator/sshwifty/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/sshwifty/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/sshwifty/icon.png b/charts/incubator/sshwifty/icon.png new file mode 100644 index 00000000000..2e308f38706 Binary files /dev/null and b/charts/incubator/sshwifty/icon.png differ diff --git a/charts/incubator/sshwifty/questions.yaml b/charts/incubator/sshwifty/questions.yaml new file mode 100644 index 00000000000..d9360249908 --- /dev/null +++ b/charts/incubator/sshwifty/questions.yaml @@ -0,0 +1,180 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} + +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + - variable: env + label: Image Environment + schema: + additional_attrs: true + type: dict + attrs: + - variable: SSHWIFTY_HOSTNAME + label: HostName + description: HTTP Host. Keep it empty to accept request from all hosts + schema: + type: string + default: "" + - variable: SSHWIFTY_SHAREDKEY + label: SharedKey + description: Web interface access password. Set to empty to allow public access + schema: + type: string + private: true + default: "" + - variable: DialTimeout + label: Dial Timeout + description: Remote dial timeout in seconds. + schema: + type: int + default: 10 + - variable: SOCKS5 + label: Show SOCKS5 Section + schema: + type: boolean + default: false + show_subquestions_if: true + subquestions: + - variable: SSHWIFTY_SOCKS5 + label: Socks5 Host + description: connect remote through the given proxy + schema: + type: string + default: "" + - variable: SSHWIFTY_SOCKS5_USER + label: Socks5 User + description: Username of the Socks5 server + schema: + type: string + default: "" + - variable: SSHWIFTY_SOCKS5_PASSWORD + label: Socks5 Password + description: Password of the Socks5 server + schema: + type: string + private: true + default: "" + - variable: SSHWIFTY_LISTENINTERFACE + label: Listen Interface + description: Which local network interface this server will be listening. + schema: + type: string + default: 0.0.0.0 + - variable: SSHWIFTY_INITIALTIMEOUT + label: Initial TimeOut + description: Timeout of initial request in Seconds. + schema: + type: int + default: 3 + - variable: SSHWIFTY_READTIMEOUT + label: Read TimeOut + description: How long does the connection can stay in idle before the backend server disconnects the client in Seconds. + schema: + type: int + default: 60 + - variable: SSHWIFTY_WRITETIMEOUT + label: Write TimeOut + description: How long the server will wait until the client connection is ready to receive new data in Seconds. + schema: + type: int + default: 60 + - variable: SSHWIFTY_HEARTBEATTIMEOUT + label: HeartBeat TimeOut + description: The interval between internal echo requests in Seconds. + schema: + type: int + default: 20 + - variable: SSHWIFTY_READDELAY + label: Read Delay + description: Forced delay between each request in MilliSeconds. + schema: + type: int + default: 10 + - variable: SSHWIFTY_WRITEDELAY + label: Write Delay + description: Forced delay between each write in MilliSeconds. + schema: + type: int + default: 10 + - variable: SSHWIFTY_ONLYALLOWPRESETREMOTES + label: Only Allow Preset Remotes + description: Allow the Preset Remotes only, and refuse to connect to any other remote host. + schema: + type: boolean + default: false + +# Include{containerBasic} +# Include{containerAdvanced} + +# Include{containerConfig} +# Include{serviceRoot} +# Include{serviceMain} +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: main + label: "Main Service Port Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 8182 + required: true +# Include{serviceExpertRoot} + default: false +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressTLS} +# Include{ingressTraefik} +# Include{ingressList} +# Include{securityContextRoot} + + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 0 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID this App of the user running the application" + schema: + type: int + default: 0 +# Include{securityContextContainer} +# Include{securityContextAdvanced} +# Include{securityContextPod} + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 + +# Include{resources} +# Include{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/sshwifty/templates/NOTES.txt b/charts/incubator/sshwifty/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/sshwifty/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/sshwifty/templates/common.yaml b/charts/incubator/sshwifty/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/sshwifty/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/sshwifty/values.yaml b/charts/incubator/sshwifty/values.yaml new file mode 100644 index 00000000000..f7fdfb43853 --- /dev/null +++ b/charts/incubator/sshwifty/values.yaml @@ -0,0 +1,56 @@ +image: + repository: tccr.io/truecharts/sshwifty + pullPolicy: IfNotPresent + tag: latest@sha256:3f4f3c44825a1bf3b1320194077b9e1fda44b5ad30f9070c4db2a638512bbf10 + +securityContext: + container: + readOnlyRootFilesystem: false + runAsNonRoot: false + runAsUser: 0 + runAsGroup: 0 + +workload: + main: + podSpec: + containers: + main: + probes: + liveness: + path: "/" + readiness: + path: "/" + startup: + path: "/" + env: + # empty to accept request from all hosts + SSHWIFTY_HOSTNAME: "" + # web access password + SSHWIFTY_SHAREDKEY: "" + DialTimeout: 10 + # SSHWIFTY_SOCKS5: "" When set, Sshwifty backend will try to connect remote through the given proxy + # SSHWIFTY_SOCKS5_USER + # SSHWIFTY_SOCKS5_PASSWORD + SSHWIFTY_LISTENPORT: "{{ .Values.service.main.ports.main.port }}" + SSHWIFTY_LISTENINTERFACE: "0.0.0.0" + SSHWIFTY_INITIALTIMEOUT: 3 + SSHWIFTY_READTIMEOUT: 60 + SSHWIFTY_WRITETIMEOUT: 60 + SSHWIFTY_HEARTBEATTIMEOUT: 20 + SSHWIFTY_READDELAY: 10 + SSHWIFTY_WRITEELAY: 10 + # SSHWIFTY_TLSCERTIFICATEFILE: "" + # SSHWIFTY_TLSCERTIFICATEKEYFILE: "" + # SSHWIFTY_PRESETS: [] json obj array https://github.com/nirui/sshwifty#configuration-file | preset section. + SSHWIFTY_ONLYALLOWPRESETREMOTES: false + +service: + main: + ports: + main: + protocol: http + port: 8182 + +portal: + open: + enabled: true