Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
493a6b9
feat: Extract groups and namespaces claims from JWT in OidcTokenParser
aniketpalu Mar 10, 2026
3db6db3
Minor formatting
aniketpalu Mar 10, 2026
0d59eca
feat: Allow Feast SDK to accept a pre-existing OIDC token without con…
aniketpalu Mar 10, 2026
36a5b06
fix: Raise error when configured token_env_var is empty
aniketpalu Mar 10, 2026
a478a80
Minor formatting changes
aniketpalu Mar 10, 2026
1483c6c
Activate _check_mutually_exclusive groups only when all fields are se…
aniketpalu Mar 10, 2026
34474af
Narrow OIDC client routing to use set-based key detection and extract…
aniketpalu Mar 11, 2026
505d6de
Fix .sort() assertions in test_token_parser.py that always compared N…
aniketpalu Mar 11, 2026
5c79fcf
Guard against missing roles key in resource_access to prevent unhandl…
aniketpalu Mar 11, 2026
e0359db
Fixed lint errors
aniketpalu Mar 11, 2026
7453349
Fixed lint error
aniketpalu Mar 11, 2026
4b4c1dd
Fixed lint errors
aniketpalu Mar 11, 2026
1353482
Added support to read ServiceAccount token and Minor improvements
aniketpalu Mar 11, 2026
86c9d76
Improved code readibility
aniketpalu Mar 11, 2026
5621f07
Minor reformatting
aniketpalu Mar 11, 2026
b5db157
fix: Use exact dict-key lookup for kubernetes.io claim to satisfy Cod…
aniketpalu Mar 12, 2026
1331057
feat: Add verify_ssl support to OIDC auth flow for self-signed certif…
aniketpalu Mar 20, 2026
a875169
feat: Lightweight SA token validation for OIDC auth — TokenReview onl…
aniketpalu Mar 23, 2026
7e59a53
Minor reformatting & lint related changes
aniketpalu Mar 23, 2026
611607b
Update sdk/python/feast/permissions/auth/oidc_token_parser.py
aniketpalu Mar 23, 2026
3c1e36b
fix: Restore missing return in intra-comm check and add error handlin…
aniketpalu Mar 23, 2026
c2c4863
Minor reformatting
aniketpalu Mar 23, 2026
eed8b02
Checks preferred_username first (Keycloak default), then falls back t…
aniketpalu Mar 23, 2026
593b95d
feat(operator): Split server/client OIDC config and add secretKeyName…
aniketpalu Mar 24, 2026
a1c75de
Reverted kustomization.yaml
aniketpalu Mar 24, 2026
88a389b
fix: Harden OIDC token parsing and make client_id optional
aniketpalu Mar 25, 2026
f632686
cache K8s client, eliminate double JWT decode, improve error messages
aniketpalu Apr 1, 2026
45666da
Minor formatting
aniketpalu Apr 1, 2026
0a59ad2
feat(odh): wire OIDC_ISSUER_URL from params.env into operator pod
GowthamShanmugam Mar 31, 2026
3557a15
Add issuerUrl to OidcAuthz CRD and OIDC_ISSUER_URL env var support fo…
aniketpalu Apr 6, 2026
30a04c2
Add caCertConfigMap to OidcAuthz CRD and ca_cert_path to SDK for self…
aniketpalu Apr 6, 2026
a967bc6
Reverted kustomization.yaml to use upstream image
aniketpalu Apr 6, 2026
c1d7c11
Shorten CRD field descriptions to fit maxDescLen=120 and revert kusto…
aniketpalu Apr 6, 2026
8aae62a
fix: Remove unused param, nil deref in test, and update secrets baseline
aniketpalu Apr 7, 2026
cacd649
fix: Remove unused secretExtractionFunc from client config chain and …
aniketpalu Apr 7, 2026
9200dd3
Merge branch 'master' into oidc-support
aniketpalu Apr 7, 2026
141c871
Remove always-nil error from getClientRepoConfig and stop leaking ODH…
aniketpalu Apr 7, 2026
bd81904
Remove always-nil error from getClientRepoConfig, stop leaking ODH CA…
aniketpalu Apr 7, 2026
66c3677
Thread ODH CA bundle detection into resolveOidcCACertPath for proper …
aniketpalu Apr 7, 2026
bb6fb52
Provision TokenReview RBAC for OIDC auth and add SSL error logging in…
aniketpalu Apr 7, 2026
2f3e7b9
Merge upstream/master into oidc-support and regenerate secrets baseline
aniketpalu Apr 7, 2026
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
feat: Add verify_ssl support to OIDC auth flow for self-signed certif…
…icates

Signed-off-by: Aniket Paluskar <apaluska@redhat.com>
Made-with: Cursor
  • Loading branch information
aniketpalu authored and ntkathole committed Apr 6, 2026
commit 13310576492133297095de49b51a7d57afa80d28
12 changes: 10 additions & 2 deletions sdk/python/feast/permissions/auth/oidc_token_parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os
import ssl
from typing import Optional
from unittest.mock import Mock

Expand Down Expand Up @@ -40,7 +41,8 @@ def __init__(
self._auth_config = auth_config
self._k8s_parser = k8s_parser
self.oidc_discovery_service = OIDCDiscoveryService(
self._auth_config.auth_discovery_url
self._auth_config.auth_discovery_url,
verify_ssl=self._auth_config.verify_ssl,
)

async def _validate_token(self, access_token: str):
Expand Down Expand Up @@ -91,8 +93,14 @@ def _extract_claim(data: dict, *keys: str, expected_type: type = list):
def _decode_token(self, access_token: str) -> dict:
"""Fetch the JWKS signing key and decode + verify the JWT."""
optional_custom_headers = {"User-agent": "custom-user-agent"}
ssl_ctx = ssl.create_default_context()
if not self._auth_config.verify_ssl:
ssl_ctx.check_hostname = False
ssl_ctx.verify_mode = ssl.CERT_NONE
jwks_client = PyJWKClient(
self.oidc_discovery_service.get_jwks_url(), headers=optional_custom_headers
self.oidc_discovery_service.get_jwks_url(),
headers=optional_custom_headers,
ssl_context=ssl_ctx,
)
signing_key = jwks_client.get_signing_key_from_jwt(access_token)
return jwt.decode(
Expand Down
1 change: 1 addition & 0 deletions sdk/python/feast/permissions/auth_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class AuthConfig(FeastConfigBaseModel):
class OidcAuthConfig(AuthConfig):
auth_discovery_url: str
client_id: str
verify_ssl: bool = True


class OidcClientAuthConfig(OidcAuthConfig):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ def _fetch_token_from_idp(self) -> str:
"""Obtain an access token via client_credentials or ROPG flow."""
assert self.auth_config.auth_discovery_url is not None
Comment thread
aniketpalu marked this conversation as resolved.
Outdated
token_endpoint = OIDCDiscoveryService(
self.auth_config.auth_discovery_url
self.auth_config.auth_discovery_url,
verify_ssl=self.auth_config.verify_ssl,
).get_token_url()
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
Outdated

if self.auth_config.client_secret and not (
Expand All @@ -91,7 +92,10 @@ def _fetch_token_from_idp(self) -> str:

headers = {"Content-Type": "application/x-www-form-urlencoded"}
token_response = requests.post(
token_endpoint, data=token_request_body, headers=headers
token_endpoint,
data=token_request_body,
headers=headers,
verify=self.auth_config.verify_ssl,
)

if token_response.status_code == 200:
Expand Down
5 changes: 3 additions & 2 deletions sdk/python/feast/permissions/oidc_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@


class OIDCDiscoveryService:
def __init__(self, discovery_url: str):
def __init__(self, discovery_url: str, verify_ssl: bool = True):
self.discovery_url = discovery_url
self._verify_ssl = verify_ssl
self._discovery_data = None # Initialize it lazily.

@property
Expand All @@ -15,7 +16,7 @@ def discovery_data(self):

def _fetch_discovery_data(self) -> dict:
try:
response = requests.get(self.discovery_url)
response = requests.get(self.discovery_url, verify=self._verify_ssl)
response.raise_for_status()
return response.json()
except requests.RequestException as e:
Expand Down