Package: bastionlab-server
Mithril Security – BastionLabWebsite|Documentation|Discord|Blog|LinkedIn|Twitter👋 Welcome to BastionLab!Where data owners and data scientists can securely collaborate without exposing data - opening the way to projects that were too risky to consider.⚙️ What is BastionLab?BastionLab is a simple privacy framework for data science collaboration.It acts like anaccess controlsolution, 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 letexternal or internal data scientists explore and extract values from their datasets, according to a strict privacy policy they'll define in BastionLab.Data scientists canremotely run queries on data frames without seeing the original data or intermediary results.BastionLab is an open-source project.Our solution is coded in Rust 🦀 and uses Polars 🐻, a pandas-like library for data exploration.👌 Built to be easy and safe to useCollaborating remotely and safely when it came to data science wasn’t possible until now for highly regulated fields like health, finance, or advertising. When they wanted to put their assets to good use, data owners had to open unrestricted access to their dataset, often through a Jupyter notebook. This was dangerous because too many operations were allowed and the data scientist had numerous ways to extract information from the remote infrastructure (print the whole database, save the dataset in the weights, etc).That is why we built BastionLab with the aim to ensure privacy while fitting easily in the whole data science workflow of both data owners and data scientists.🚀 Quick tourYou can go try out ourQuick tourin the documentation to discover BastionLab with a hands-on example using the famous Titanic dataset.But here’s a taste of what using BastionLab could look like 🍒Data Owner's sidefrombastionlabimportConnectionimportpolarsaspldf=pl.read_csv("titanic.csv")withConnection("bastionlab.example.com")asclient:client.polars.send_df(df)Data Scientist's sidefrombastionlabimportConnectionwithConnection("bastionlab.example.com")asclient:all_remote_dfs=client.polars.list_dfs()remote_df=all_remote_dfs[0]remote_df.head(5).collect().fetch()👀 What is this wheelThis wheel was made to deploy very easily BastionLab's server on a Google Colab/Jupyter Notebook environments.Please remember that while you will have most of the functionality of BastionLab, this wheel was not made to be used in production environments. If you want to personalize more the server and get the security features, it is recommanded to deploy the server yourself. Please refer to the documentation for more information.🗝️ Key FeaturesAccess control: data owners can define an interactive privacy policy that will filter the data scientist queries. They do not have to open unrestricted access to their datasets anymore.Limited expressivity: BastionLab limits the type of operations that can be executed by the data scientists to avoid arbitrary code execution.Transparent remote access: the data scientists never access the dataset directly. They only manipulate a local object that contains metadata to interact with a remotely hosted dataset. Calls can always be seen by data owners.🙋 Getting HelpGo to ourDiscord#support channelReport bugs byopening an issue on our BastionLab GithubBook a meetingwith us🚨 DisclaimerBastionLab is still in development.Do not use it yet in a production workload.We will audit our solution in the future to attest that it enforces the security standards of the market.📝 LicenseBastionLab is licensed under the Apache License, Version 2.0.Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the Licensefor the specific language governing permissions and limitations under the License.