GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — webssh/CONTRIBUTING.md at main · ega-d/webssh

Expand file tree

/

CONTRIBUTING.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
218 lines (159 loc) · 7.21 KB
/

CONTRIBUTING.md

Copy path

File metadata and controls

218 lines (159 loc) · 7.21 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Contributing to WebSSH

Thanks for your interest in contributing! This project is open to contributions of all kinds - bug reports, feature requests, documentation improvements, and code.

Quick Links

  • Report a Bug
  • Propose a Feature
  • Security Issues - Please don't open public issues for vulnerabilities
  • Roadmap and planning workflow

Getting Started

Prerequisites

  • Python 3.11+
  • Docker (optional, for testing)

Local Development Setup

Follow Development and Testing for hash-locked dependency installation, an isolated test data directory, Node tooling, and the required checks. Python 3.11 is the minimum; the production container uses Python 3.15. Browser assets are already vendored, so no frontend build is needed to start the application.

Project Structure

Path Purpose
app/ Flask application, authenticated Socket.IO handlers, SSH/SFTP and storage services
static/, templates/ Vanilla JavaScript, CSS, vendored browser assets and Jinja templates
config.py, start.py Configuration and application entry point
tests/ Python, JavaScript, browser and disposable-server integration tests
scripts/ Dependency locks, vendor updates, CI and release checks
docs/wiki/ Versioned user and operator documentation
site/ Public project website

How to Contribute

Reporting Bugs

Before opening an issue:

  1. Check if the issue already exists
  2. Try the latest version
  3. Collect relevant info (browser, OS, error messages, logs)

Include in your bug report:

  • What you expected to happen
  • What actually happened
  • Steps to reproduce
  • Environment details (browser, OS, Docker version if applicable)

Suggesting Features

Start a Discussion for feature ideas. Please include:

  • Clear description of the feature
  • Use case - why is this useful?
  • Possible implementation approach (optional)

Pull Requests

Before You Start

  1. Check existing issues/PRs - Someone might already be working on it
  2. Open an issue first for larger changes - Let's discuss the approach
  3. Small PRs are better - Easier to review and merge

For substantial work, state the user problem, expected outcome and acceptance criteria in the linked issue/proposal. Include the reason for the chosen approach, validation, compatibility/security impact and remaining rollout checks in the PR. A new or changed setting, port or volume in docker-compose.yml also updates the Unraid template unraid/webssh.xml in the same PR; tests/test_unraid_template.py enforces this. Maintainers assign accepted work to a release milestone; merging does not itself publish a release. See the planning and release workflow for the lightweight cycle.

Development Workflow

  1. Fork the repository
  2. Create a feature branch from main
    git checkout -b feature/your-feature-name
  3. Make your changes
  4. Test your changes locally
  5. Commit with clear messages
  6. Push to your fork
  7. Open a Pull Request

Code Style

Python:

  • Follow PEP 8
  • Use meaningful variable names
  • Keep functions focused and small
  • Lean code: no unnecessary comments, docstrings only where logic is non-obvious

JavaScript:

  • Vanilla JS only (no frameworks - intentional architecture decision)
  • Use consistent indentation (4 spaces)
  • Prefer const over let, avoid var

General:

  • No trailing whitespace
  • Files end with a newline
  • Keep lines under 100 characters when reasonable

Commit Messages

Write clear commit messages:

Add SFTP directory creation support

- Implement mkdir operation in sftp_handler.py
- Add socket event handler for create_directory
- Update file manager UI with create folder button

Fixes #42

Format:

  • First line: Brief summary (imperative mood, max 50 chars)
  • Blank line
  • Body: Explain what and why (wrap at 72 chars)
  • Reference issues if applicable

Security Considerations

This project handles SSH credentials. When contributing, please:

  • Never log passwords or private keys
  • Validate and sanitize all user input
  • Check session ownership before operations
  • Use parameterized queries (SQLAlchemy handles this)
  • Clear sensitive data from memory when done
  • Consider path traversal in file operations

If your change touches authentication, encryption, or session handling, please note this in your PR for extra review attention.

Public Repository Hygiene

Everything committed here is published. Do not commit local development instructions, tool configuration, private notes, development captures, temporary test output, workstation paths, credentials, or unreferenced media. Keep reusable product and operator documentation in the public documentation areas.

Run the same repository guard used by CI before submitting:

python scripts/check_repository_hygiene.py

The guard inspects tracked files directly, so force-adding an ignored file does not bypass it. Changes that add a forbidden path, an internal-instruction marker, a workstation-specific tool path, or an unreferenced file under assets/ fail the required dispatch-integrity check.

On pull requests the same check also rejects coding-assistant attribution in the PR title, description, branch name and every commit of the PR: tool identities as author or committer, co-author or session trailers, session links and "generated by" footers. Check your commits before pushing:

python scripts/check_repository_hygiene.py --commits origin/main..HEAD

The description is checked when the PR is opened or updated with new commits; editing it alone does not rerun the check.

Testing Your Changes

Before submitting:

  1. Manual testing - Verify your changes work as expected
  2. Test edge cases - Empty inputs, special characters, large files
  3. Check different browsers - Chrome, Firefox, Safari at minimum
  4. Test with Docker - Ensure containerized deployment works
    docker build -t webssh:test .
    docker run -p 5000:5000 -e SECRET_KEY=$(openssl rand -hex 32) -e CORS_ORIGINS=http://localhost:5000 webssh:test

Documentation

Documentation improvements are always welcome:

  • Fix typos or unclear explanations
  • Add examples
  • Improve README
  • Add inline code comments

What's Needed

Areas where contributions are especially welcome:

  • Automated tests (pytest, playwright)
  • Internationalization (new language translations)
  • Accessibility improvements
  • Performance optimizations
  • Additional themes
  • Documentation

Code of Conduct

Be respectful and constructive. We're all here to build something useful.

  • Be welcoming to newcomers
  • Accept constructive criticism gracefully
  • Focus on what's best for the project
  • Show empathy towards others

Questions?

Reach out via issues or directly at [email protected]

License

By contributing, you agree that your contributions will be licensed under Apache License 2.0. See LICENSE for the terms and Licensing for historical and third-party notices.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.