GoogleCloudPlatform / functions-framework-python

FaaS (Function as a service) framework for writing portable Python functions
https://pypi.org/p/functions-framework/
Apache License 2.0
867 stars 119 forks source link

Running functions-framework for HTTP cloud functions with https locally #193

Open istrupin opened 2 years ago

istrupin commented 2 years ago

Is there a way to run functions-framework locally using HTTPS? If this is using Flask under the hood would there be a way to expose the flask run --cert=adhoc parameter in the functions-framework command?

jama22 commented 2 years ago

Hi @istrupin, you're correct, we are using Flask underneath the hood. Unfortunately, we currently don't have plans to add local HTTPS testing to functions-framework.

xSAVIKx commented 2 years ago

@jama22 is there any particular reason or just a lack of people to do that change? I guess someone from the community can jump in. It doesn't look like a heavy change at all.

jama22 commented 2 years ago

No particular reason @xSAVIKx ; it's definitely more the latter where our teams are currently focused on tasks that support the GCF 2nd Generation release, and also some efforts to improve the authoring of functions across all languages.

I think local development / local iteration of functions is a really important aspect of functions-framework. We'd definitely welcome a PR from the community. However, something we've been wary of is exposing features in a way that creates too much reliance on the Flask framework itself.