lenra-io / server

GNU Affero General Public License v3.0
6 stars 0 forks source link

feat: Add Env Secrets in Server API #533

Open jonas-martinez opened 5 months ago

jonas-martinez commented 5 months ago

About this PR

This PR enables the server to generate secrets on Kubernetes via the API, allowing OpenFaas to link these secrets when setting up an environment. This approach lets you utilize secrets in your application without embedding them directly into the Docker image.

Additionally, it introduces a new environment variable:

KUBERNETES_APPS_NAMESPACE:  A string representing the namespace in Kubernetes where the apps are located. The environment secrets will be created in this namespace.

Technical highlight/advice

How to test my changes

Checklist

I included unit tests that cover my changes

I added/updated the documentation about my changes

shiipou commented 4 months ago

I still have an issue with the update And the delete show an error but work and delete the key.

I have to find out why.

jonas-martinez commented 2 weeks ago

@shiipou I don't know why but when using this branch, the server won't open the websocket to the app.

I tried to find the origin of the problem but there is no error on the server.

shiipou commented 2 weeks ago

@shiipou I don't know why but when using this branch, the server won't open the websocket to the app.

I tried to find the origin of the problem but there is no error on the server.

@jonas-martinez I'll check this.