feat(sshwifty) add sshwifty (#8143)

**Description**
add sshwifty
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [X] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [X] ⚖️ My code follows the style guidelines of this project
- [X] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🪞 I have opened a PR on
[truecharts/containers](https://github.com/truecharts/containers) adding
the container to TrueCharts mirror repo.
- [X] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Xstar97TheNoob
2023-04-30 06:17:26 -04:00
committed by GitHub
parent 1259a29e60
commit 4b947295ae
9 changed files with 297 additions and 0 deletions

View File

@@ -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

View File

@@ -0,0 +1 @@
# Changelog

View File

@@ -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"

View File

@@ -0,0 +1 @@
# README

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

View File

@@ -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}

View File

@@ -0,0 +1 @@
{{- include "tc.v1.common.lib.chart.notes" $ -}}

View File

@@ -0,0 +1 @@
{{ include "tc.v1.common.loader.all" . }}

View File

@@ -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