Skip to content

Commit

Permalink
Update conda-store-server image + use public auth_schema module for A…
Browse files Browse the repository at this point in the history
…uthenticationToken (#2931)

Co-authored-by: Marcelo Villa <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Vinicius D. Cerutti <[email protected]>
  • Loading branch information
4 people authored Feb 6, 2025
1 parent 7e757c5 commit 5ea1874
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/_nebari/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
DEFAULT_NEBARI_IMAGE_TAG = CURRENT_RELEASE
DEFAULT_NEBARI_WORKFLOW_CONTROLLER_IMAGE_TAG = CURRENT_RELEASE

DEFAULT_CONDA_STORE_IMAGE_TAG = "2024.11.2"
DEFAULT_CONDA_STORE_IMAGE_TAG = "2025.2.1"

LATEST_SUPPORTED_PYTHON_VERSION = "3.10"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

import requests
from conda_store_server import api
from conda_store_server._internal import schema
from conda_store_server._internal.server.dependencies import get_conda_store
from conda_store_server.server import schema as auth_schema
from conda_store_server.server.auth import GenericOAuthAuthentication
from conda_store_server.storage import S3Storage

Expand Down Expand Up @@ -357,7 +357,7 @@ def _get_conda_store_client_roles_for_user(
return client_roles_rich

def _get_current_entity_bindings(self, username):
entity = schema.AuthenticationToken(
entity = auth_schema.AuthenticationToken(
primary_namespace=username, role_bindings={}
)
self.log.info(f"entity: {entity}")
Expand Down Expand Up @@ -387,7 +387,7 @@ async def authenticate(self, request):

# superadmin gets access to everything
if "conda_store_superadmin" in user_data.get("roles", []):
return schema.AuthenticationToken(
return auth_schema.AuthenticationToken(
primary_namespace=username,
role_bindings={"*/*": {"admin"}},
)
Expand Down Expand Up @@ -425,7 +425,7 @@ async def authenticate(self, request):
if _namespace is None:
api.ensure_namespace(db, name=namespace)

return schema.AuthenticationToken(
return auth_schema.AuthenticationToken(
primary_namespace=username,
role_bindings=role_bindings,
)
Expand Down

0 comments on commit 5ea1874

Please sign in to comment.