Code Monkey home page Code Monkey logo

tool-cache's Introduction

Binary crates cache

This repository is responsible for building and persisting binary crates cache, which is used later by actions-rs/install Action.

Cached crates

See workflow file for a list of crates, which are stored in the cache storage.

If you want to suggest a new crate to be added into the crate cache, check if it was asked before already, and if not - create a new issue.

Security considerations

Binary crates cache is stored at the third party server (AWS S3), meaning that using this tool cache is potentially less secure than just calling cargo install command.

Pre-built binaries are executed directly in the virtual environments and have full access to them, including access to the environment variables, secrets, access tokens and so on.

Malicious parties potentially might replace these pre-built binaries, leading to the security breach. We try our best to mitigate any potential security problems, but you must acknowledge that fact before using any @actions-rs Action, which uses this cache internally and explicitly enabling this functionality.

Security measures

  1. Crates are compiled right here at GitHub
  2. Crates are signed with 4096 bit RSA key
  3. That RSA key is stored in the GitHub secrets
  4. Actions at @actions-rs are validating this signature after the file downloading
  5. Compiled crates are stored in the AWS S3 bucket and served via AWS CloudFront
  6. MFA is enabled for AWS root user
  7. Separate AWS user for files uploading has the console access disabled and only one permission: PutObject for this S3 bucket
  8. AWS access key and other confidential details are stored in the GitHub secrets

Refer to the @actions-rs/install documentation to learn more about files downloading and validating.

Contribute and support

Any contributions are welcomed!

If you want to report a bug or have a feature request, check the Contributing guide.

You can also support author by funding the ongoing project work, see Sponsoring.

tool-cache's People

Contributors

svartalf avatar andy128k avatar bodil avatar rivy avatar

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.