Skip to content

Contributing to BastionLab


Welcome and thank you for taking the time to contribute to BastionLab! πŸŽ‰πŸŽ‰

The following guide is a set of guidelines to help you contribute to the BastionLab project. These are mostly advice, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.

πŸ“ Code of conduct


This project and everyone participating in it is governed by the Mithril Security Code Of Conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to contact@mithrilsecurity.io.

πŸš€ What should I know before I get started?


❓ How to ask a question?

If you have a question to ask or if you want to open a discussion about BastionLab or privacy in data science in general, we have a dedicated Discord Community in which all these kind of exchanges are more than welcome!

βš™οΈ The BastionLab project

BastionLab is a simple privacy framework for data science collaboration.

It acts like an access control solution, for data owners to protect the privacy of their datasets, and stands as a guard, to enforce that only privacy-friendly operations are allowed on the data and anonymized outputs are shown to the data scientist.

  • Data owners can let external or internal data scientists explore and extract values from their datasets, according to a strict privacy policy they'll define in BastionLab.

  • Data scientists can remotely run queries on data frames without seeing the original data or intermediary results.

πŸ“ BastionLab project structure.

BastionLab Project βš™οΈπŸ”’/
β”œβ”€ Python Client/
β”‚  β”œβ”€ src/
β”‚  β”‚  β”œβ”€ BastionLab/
β”‚  β”‚  β”‚  β”œβ”€ Polars/
β”‚  β”‚  β”‚  β”œβ”€ Torch/
β”œβ”€ Rust Server/
β”‚  β”œβ”€ src/
β”‚  β”‚  β”œβ”€ Polars/
β”‚  β”‚  β”œβ”€ Torch/
You can find more information about the roadmap of the project here.

πŸ“š Useful resources

We highly encourage you to take a look at this resources for further information about BastionLab βš™οΈπŸ”’.

It is also recommended to look at some of our examples that demonstrate how BastionLab works before submitting your first contribution.

πŸ’» Contributing code


This section presents the different options that you can follow in order to contribute to the BastionLabπŸš€πŸ” project. You can either Report Bugs, Suggest Enhancements or Open Pull Requests.

🐞 Reporting bugs

This section helps you through reporting Bugs for BastionLab. Following the guidelines helps the maintainers to understand your report, reproduce the bug and work on fixing at as soon as possible.

Important!

Before reporting a bug, please take a look at the existing issues. You may find that the bug has already been reported and that you don't need to create a new one.

How to report a bug?

To report a Bug, you can either:

  • Follow this link and fill the bug report with the required information.

  • Go to BastionLab GitHub repository:

    • Go to Issues tab.
    • Click on New Issue button.
    • Choose the Bug option.
    • Fill the report with the required information.

How to submit a good bug report?

  • Follow the bug report template as much as possible (You can add further details if needed).
  • Use a clear and descriptive title.
  • Describe the expected behavior, the behaviour that's actually happening, and how often it reproduces.
  • Describe the exact steps to reproduce the problem.
  • Specify the versions of BastionLab Client and Server that produced the bug.
  • Add any other relevant information about the context, your development environment (operating system, language version, Libtorch version, platform, etc).
  • Attach screenshots, code snippets and any helpful resources.

πŸ’― Suggesting enhancements

This section guides you through suggesting enhancements for the BastionLab project. You can suggest one or many by opening a GitHub Issue.

Important!

Before opening an issue, please take a look at the existing issues. You may find that the same suggestion has already been done and that you don't need to create a new one.

How to suggest an enhancement?

To suggest enhancement for BastionLab Project, you can either:

  • Follow this link, choose the most relevant option and fill the report with the required information.

  • Go to BastionLab GitHub repository:

  • Go to Issues tab.

  • Click on New Issue button.
  • Choose the most relevant option.
  • Fill the description with the required information.

How to submit a good enhancement suggestion?

  • Choose the most relevant issue type for your suggestion.
  • Follow the provided template as much as possible.
  • Use a clear and descriptive title.
  • Add any other relevant information about the context, your development environment (operating system, language version, etc).
  • Attach screenshots, code snippets and any helpful resources.

πŸ’Ž Pull requests

This section helps you through the process of opening a pull request and contributing with code to BastionLab!

How to open a pull request?

  • Go to BastionLab GitHub repository.
  • Fork BastionLab project.
  • Setup your local development environment.
  • Do your magic ✨ and push your changes.
  • Open a pull request.
  • Fill the description with the required information.

How to submit a good pull request?

  • Make sure your pull request solves an open issue or fixes a bug. If no related issue exists, please consider opening an issue first so that we can discuss your suggestions.
  • Follow the style guidelines.
  • Make sure to use a clear and descriptive title.
  • Follow the instructions in the pull request template.
  • Provide as many relevant details as possible.
  • Make sure to link the related issues in the description.

Important!

While the prerequisites above must be satisfied prior to having your pull request reviewed, the reviewer(s) may ask you to complete additional work, tests, or other changes before your pull request can be accepted.

πŸ› οΈ Setting your local development environment

You can find detailed explanation of how to install BastionLab in your local machine in the official documentation.

If you encounter any difficulties with that, don't hesitate to reach out to us through Discord and ask your questions.

🏷️ Issue tracker tags


Issue type tags:

question Any questions about the project
bug Something isn't working
enhancement Improving performance, usability, consistency
docs Documentation, tutorials, and example projects
new feature Feature requests or pull request implementing a new feature
test Improving unit test coverage, e2e test, CI or build