◐ Shell
clean mode source ↗

fix: Trino as an OfflineStore Access Denied when BasicAuthenticaion by Woo-Dong · Pull Request #3898 · feast-dev/feast

What this PR does / why we need it:

When Feast with OfflineStore as Trino with basic Authentication, password is converted with SecretStr in Pydantic type.
Then error occurred with 401('Access Denied: Invalid credentials').
It can be solved when I replace SecretStr into StrictStr where .feast.infra.offline_stores.contrib.trino_offline_store.trino.py line 43.

  • Before
    image

  • After
    image

And feature_store.yaml format is like below

project: deepfm_repo
# By default, the registry is a file (but can be turned into a more scalable SQL-backed registry)
registry: data/registry.db
# The provider primarily specifies default offline / online stores & storing the registry in a given cloud
provider: local

offline_store:
  type: trino
  host: localhost
  port: 443
  catalog: lakehouse
  connector:
    type: hive
    file_format: parquet
  user: aidt-devops
  source: feast-trino-offline-store
  http-scheme: https
  ssl-verify: true
  # enables authentication in Trino connections, pick the one you need
  # if you don't need authentication, you can safely remove the whole auth block
  auth:
    # Basic Auth
    type: basic
    config:
      username: aidt-devops
      password: devops123@
entity_key_serialization_version: 2