Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
f11ce84
Initial Draft version to load the CA trusted store code.
lokeshrangineni Dec 14, 2024
cc40246
Initial Draft version to load the CA trusted store code.
lokeshrangineni Dec 14, 2024
eda6900
Fixing the lint error.
lokeshrangineni Dec 14, 2024
abf4c7e
Trying to fix the online store test cases.
lokeshrangineni Dec 17, 2024
d497a9c
Merge branch 'master' into feature/adding-ca-store-support
lokeshrangineni Dec 17, 2024
767f241
Formatted the python to fix lint errors.
lokeshrangineni Dec 17, 2024
436f0db
Fixing the unit test cases.
lokeshrangineni Dec 17, 2024
1d64ebb
Fixing the unit test cases.
lokeshrangineni Dec 17, 2024
9540e7e
removing unnecessary cli args.
lokeshrangineni Dec 17, 2024
fff05f4
Now configuring the SSL ca store configurations on the feast client s…
lokeshrangineni Dec 17, 2024
36859bf
Renamed the remote registry is_tls_mode variable to is_tls.
lokeshrangineni Dec 17, 2024
9b6f8e5
Adding the existing trust store certificates to the newly created tru…
lokeshrangineni Dec 17, 2024
4a5de3b
Clearing the existing trust store configuration to see if it fixes th…
lokeshrangineni Dec 17, 2024
a6d3420
Clearing the existing trust store configuration to see if it fixes th…
lokeshrangineni Dec 17, 2024
706e9b4
Clearing the existing trust store configuration to see if it fixes th…
lokeshrangineni Dec 17, 2024
4970151
combining the default system ca store with the custom one to fix the …
lokeshrangineni Dec 18, 2024
f9aea9a
Final clean up and adding documentation.
lokeshrangineni Dec 18, 2024
6084fb9
Incorporating the code review comments from Francisco.
lokeshrangineni Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixing the unit test cases.
Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com>
  • Loading branch information
lokeshrangineni committed Dec 17, 2024
commit 1d64ebbe23120c9eddae518871a243ef653ee42a
3 changes: 1 addition & 2 deletions sdk/python/feast/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1112,14 +1112,13 @@ def serve_registry_command(
tls_ca_file_path: str,
):
"""Start a registry server locally on a given port."""
configure_ssl_ca(ca_file_path=tls_ca_file_path)
if (tls_key_path and not tls_cert_path) or (not tls_key_path and tls_cert_path):
raise click.BadParameter(
"Please pass --cert and --key args to start the registry server in TLS mode."
)
store = create_feature_store(ctx)

store.serve_registry(port, tls_key_path, tls_cert_path)
store.serve_registry(port, tls_key_path, tls_cert_path, tls_ca_file_path)


@cli.command("serve_offline")
Expand Down
12 changes: 10 additions & 2 deletions sdk/python/feast/feature_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -1949,13 +1949,21 @@ def serve_ui(
)

def serve_registry(
self, port: int, tls_key_path: str = "", tls_cert_path: str = ""
self,
port: int,
tls_key_path: str = "",
tls_cert_path: str = "",
tls_ca_file_path: str = "",
) -> None:
"""Start registry server locally on a given port."""
from feast import registry_server

registry_server.start_server(
self, port=port, tls_key_path=tls_key_path, tls_cert_path=tls_cert_path
self,
port=port,
tls_key_path=tls_key_path,
tls_cert_path=tls_cert_path,
tls_ca_file_path=tls_ca_file_path,
)

def serve_offline(
Expand Down
3 changes: 3 additions & 0 deletions sdk/python/feast/registry_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from feast.project import Project
from feast.protos.feast.registry import RegistryServer_pb2, RegistryServer_pb2_grpc
from feast.saved_dataset import SavedDataset, ValidationReference
from feast.ssl_ca_setup import configure_ssl_ca
from feast.stream_feature_view import StreamFeatureView

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -763,7 +764,9 @@ def start_server(
wait_for_termination: bool = True,
tls_key_path: str = "",
tls_cert_path: str = "",
tls_ca_file_path: str = "",
):
configure_ssl_ca(ca_file_path=tls_ca_file_path)
auth_manager_type = str_to_auth_manager_type(store.config.auth_config.type)
init_security_manager(auth_type=auth_manager_type, fs=store)
init_auth_manager(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def start_registry_server(
wait_for_termination=False,
tls_key_path=tls_key_path,
tls_cert_path=tls_cert_path,
tls_ca_file_path=tls_ca_file_path,
)
else:
print(f"Starting Registry in Non-TLS mode at {server_port}")
Expand Down