Git Product home page Git Product logo

amethyst's People

Contributors

an-empty-string avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

amethyst's Issues

Client certificate support

Client certificates should be handled, and information about the certificate should be made available to resources. At least this information should be available:

  • Raw certificate data (as bytes)
  • Certificate subject common name
  • Certificate fingerprint

Better MIME type detection

Currently, we use a hardcoded dictionary of file extensions mapped to MIME types to decide what type to return to the client. The builtin mimetypes module provides a better way of handling this.

Better CGI script handling

Currently, CGI script handling leaves a lot to be desired:

  • It's impossible to have a CGI script as the index.gmi (or similar) of a directory -- the script's source is served instead.
  • Path handling doesn't work as the CGI spec says it should. For example, URLs such as /cgi-bin/index.cgi/this/should/be/pathinfo/ simply don't work (they should execute index.cgi and pass /this/should/be/pathinfo/ as the PATH_INFO environment variable).
  • CGI scripts should receive information about the client certificate they are being requested with, if any.

Additionally, it's probably worth reviewing the CGI spec again to make sure we are implementing as much of it as possible.

Add support for EC keys

Currently we enforce RSA key usage, but this is mostly just to satisfy the typechecker. Non-RSA keys are great but we need to make sure we handle them properly in every case.

Support for `.meta` files

Other Gemini servers support .meta files, which contain information about how to serve the files in the directory (for example, MIME type overrides, lists of authorized client certificates, and other directory-specific configuration). Amethyst should support these too.

Continuous integration

Set up GitHub Actions for CI. Currently we can run type checking (mypy) and potentially some other static analysis tooling, but it would be nice to have some unit tests too.

Certificates are never automatically regenerated

config.TLSConfig.get_ssl_context never automatically updates a certificate at runtime, even though it should when the tls config option is set to auto. Manually clearing the _context_cache (by sending SIGHUP) causes the certificate to be automatically regenerated, however.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.