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/
π Useful resources
We highly encourage you to take a look at this resources for further information about BastionLab βοΈπ.
It is also recommeneded to see the examples that demonstrate how BastionLab works before submitting your first contribution.
- Documentation - BastionLab official documentation
- Blog - Mithril Security blog
- Article - Mithril Security roadmap
- Notebooks and Python code - BastionLab examples
π» 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.
- Go to
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 |