Skip to content

Commit 459a5b6

Browse files
Updating the documentation related to feature to start server in SSL mode.
Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com> Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
1 parent 5f99a8d commit 459a5b6

File tree

4 files changed

+24
-15
lines changed

4 files changed

+24
-15
lines changed

docs/how-to-guides/tls/adding-tls-support-online-server.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/reference/feature-servers/python-feature-server.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,26 @@ requests.post(
200200
data=json.dumps(push_data))
201201
```
202202

203+
## Starting feature server in SSL mode
204+
205+
### Obtaining a self-signed SSL certificate and key
206+
In development mode we can generate self-signed certificate for testing purpose. In actual production environment it is always recommended to get it from the popular SSL certificate providers.
207+
208+
```shell
209+
openssl req -x509 -newkey rsa:2048 -keyout key.pem -out cert.pem -days 365 -nodes
210+
```
211+
212+
The above command will generate two files
213+
* `key.pem` : certificate private key
214+
* `cert.pem`: certificate public key
215+
216+
### Starting Online Server in SSL Mode
217+
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.
218+
219+
```shell
220+
feast serve --ssl-key-path key.pem --ssl-cert-path cert.pem
221+
```
222+
203223
# Online Feature Server Permissions and Access Control
204224

205225
## API Endpoints and Permissions

docs/reference/online-stores/remote.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ provider: local
1616
online_store:
1717
path: http://localhost:6566
1818
type: remote
19+
ssl_cert_path: /path/to/cert.pem
1920
entity_key_serialization_version: 2
2021
auth:
2122
type: no_auth
2223
```
2324
{% endcode %}
2425
26+
`ssl_cert_path` is optional configuration. Path to the public certificate path in case if the online server starts in SSL mode. This may be needed especially if online server started with a self-signed certificate, typically this file ends with .crt, .cer, or .pem.
27+
2528
## How to configure Authentication and Authorization
2629
Please refer the [page](./../../../docs/getting-started/concepts/permission.md) for more details on how to configure authentication and authorization.
2730

sdk/python/feast/infra/online_stores/remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class RemoteOnlineStoreConfig(FeastConfigBaseModel):
4242
If type is 'remote', then this is a URL for registry server """
4343

4444
ssl_cert_path: StrictStr = ""
45-
""" str: Path to the public certificate path in case if the online server starts in SSL mode. This may be needed especially if it is a self signed certificate, typically this file ends with .crt, .cer, or .pem.
45+
""" str: Path to the public certificate in case if the online server starts in SSL mode. This may be needed especially if online server started with a self-signed certificate, typically this file ends with .crt, .cer, or .pem.
4646
If type is 'remote', then this configuration is needed to connect to remote online server in SSL mode. """
4747

4848

0 commit comments

Comments
 (0)