question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Create a lightweight "masking engine" FastAPI application

See original GitHub issue

Is your feature request related to a specific problem?

It adds complexity for, in my opinion, very little value that the fides webserver can be run without redis and a database. However I also assume I’m missing some background info here as to why those features were added in the first place.

Describe the solution you’d like

Remove enabled fields for redis and the database. Remove all checks for those components. Fides should have a database and redis as hard requirements to run. For context, currently fidesops is unable to process DSRs without redis.

Describe alternatives you’ve considered, if any

Leaving as-is, or setting up the masking-engine as its own service within the codebase that can be run individually.

Additional context

From a slack conversation with @adamsachs it sounds like this was added as a POC for a client to use the masking engine as a stand-alone service, but this isn’t actually currently being deployed or utilized. I guess an important question here is, how many users would use the masking engine in this way, without any other part of fidesops running?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ThomasLaPianacommented, Oct 11, 2022

@adamsachs Thanks for confirming! I think the solution would be a masking_engine.py module that defines its own FastAPI application (app = FastAPI(title="masking_engine")) and then only adds the routers/middleware that it needs to run

on the CLI side it looks like from fides.api.masking_engine import start_masking_engine and 'start_masking_engine()`

1reaction
adamsachscommented, Oct 10, 2022

@ThomasLaPiana i like the idea - the masking engine-only usage pattern is so different from the general fides webserver/app functionality that splitting it out into its own application does seem cleaner than trying to stuff it into the same app. i say this with the caveat that i don’t know exactly how this would be done, but i can imagine it 😃

looping in @pattisdr as well, who has picked up work on the next iteration of the masking engine

Read more comments on GitHub >

github_iconTop Results From Across the Web

FastAPI
FastAPI framework, high performance, easy to learn, fast to code, ... based on tests on an internal development team, building production applications.
Read more >
Deploying FastAPI application in Google App Engine in ...
FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints.
Read more >
Developing and Testing an Asynchronous API with FastAPI ...
Start by creating a folder to hold your project called "fastapi-crud". Then, add a docker-compose.yml file and a "src" folder to the project ......
Read more >
A curated list of awesome things related to FastAPI - GitHub
GINO - A lightweight asynchronous ORM built on top of SQLAlchemy core for Python ... FastAPI Code Generator - Create a FastAPI app...
Read more >
How to Build an Instant Machine Learning Web Application ...
In this tutorial, you will learn how to rapidly build your own machine learning web application using Streamlit for your frontend and FastAPI...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found