You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Adding SSL support for online server (#4677)
* * Adding the SSL support for online_server.
* Adding the SSL support for remote online client.
* Adding the integration test to run the remote online server in SSL and non SSL mode.
* Incorporated code review comments
Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
incorporating code review comments.
Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
* Incorporating code review comment.
Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
incorporating code review comments.
Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
* Update docs/reference/feature-servers/python-feature-server.md
Co-authored-by: Francisco Arceo <farceo@redhat.com>
Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
* * Update docs/reference/feature-servers/python-feature-server.md
* fixing the integration test failure.
Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
---------
Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
Co-authored-by: Francisco Arceo <farceo@redhat.com>
Copy file name to clipboardexpand all lines: docs/reference/feature-servers/python-feature-server.md
+22
Original file line number
Diff line number
Diff line change
@@ -200,6 +200,28 @@ requests.post(
200
200
data=json.dumps(push_data))
201
201
```
202
202
203
+
## Starting the feature server in SSL mode
204
+
205
+
Enabling SSL mode ensures that data between the Feast client and server is transmitted securely. For an ideal production environment, it is recommended to start the feature server in SSL mode.
206
+
207
+
### Obtaining a self-signed SSL certificate and key
208
+
In development mode we can generate a self-signed certificate for testing. In an actual production environment it is always recommended to get it from a trusted SSL certificate provider.
To start the feature server in SSL mode, you need to provide the private and public keys using the `--ssl-key-path` and `--ssl-cert-path` arguments with the `feast serve` command.
Copy file name to clipboardexpand all lines: docs/reference/online-stores/remote.md
+3
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,15 @@ provider: local
16
16
online_store:
17
17
path: http://localhost:6566
18
18
type: remote
19
+
ssl_cert_path: /path/to/cert.pem
19
20
entity_key_serialization_version: 2
20
21
auth:
21
22
type: no_auth
22
23
```
23
24
{% endcode %}
24
25
26
+
`ssl_cert_path` is an optional configuration to the public certificate path when the online server starts in SSL mode. This may be needed if the online server is started with a self-signed certificate, typically this file ends with `*.crt`, `*.cer`, or `*.pem`.
27
+
25
28
## How to configure Authentication and Authorization
26
29
Please refer the [page](./../../../docs/getting-started/concepts/permission.md) for more details on how to configure authentication and authorization.
Copy file name to clipboardexpand all lines: sdk/python/feast/infra/online_stores/remote.py
+14-3
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,10 @@ class RemoteOnlineStoreConfig(FeastConfigBaseModel):
41
41
""" str: Path to metadata store.
42
42
If type is 'remote', then this is a URL for registry server """
43
43
44
+
ssl_cert_path: StrictStr=""
45
+
""" str: Path to the public certificate when the online server starts in SSL mode. This may be needed if the online server started with a self-signed certificate, typically this file ends with `*.crt`, `*.cer`, or `*.pem`.
46
+
If type is 'remote', then this configuration is needed to connect to remote online server in SSL mode. """
0 commit comments