From 3dcecef873b7a05dbe3da941e21a84e21e8f630c Mon Sep 17 00:00:00 2001 From: Liam Morrison Date: Tue, 6 Jan 2026 11:21:14 -0800 Subject: [PATCH] remove default azure credential --- datasets/stac-geoparquet/pc_stac_geoparquet.py | 8 ++++---- datasets/stac-geoparquet/workflow.yaml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/datasets/stac-geoparquet/pc_stac_geoparquet.py b/datasets/stac-geoparquet/pc_stac_geoparquet.py index 39991cb0..be235a60 100644 --- a/datasets/stac-geoparquet/pc_stac_geoparquet.py +++ b/datasets/stac-geoparquet/pc_stac_geoparquet.py @@ -734,7 +734,7 @@ def run( "STAC_GEOPARQUET_CONNECTION_INFO must be set if not explicitly provided" ) from e table_credential = table_credential or os.environ.get( - "STAC_GEOPARQUET_TABLE_CREDENTIAL", azure.identity.DefaultAzureCredential() + "STAC_GEOPARQUET_TABLE_CREDENTIAL", azure.identity.ManagedIdentityCredential() ) assert table_credential is not None storage_options_account_name = ( @@ -743,7 +743,7 @@ def run( ) storage_options_credential = storage_options_credential or os.environ.get( "STAC_GEOPARQUET_STORAGE_OPTIONS_CREDENTIAL", - azure.identity.DefaultAzureCredential(), + azure.identity.ManagedIdentityCredential(), ) storage_options = { @@ -803,11 +803,11 @@ def run( args = parser.parse_args() configs = list_planetary_computer_collection_configs( connection_info=os.environ["STAC_GEOPARQUET_CONNECTION_INFO"], - table_credential=azure.identity.DefaultAzureCredential(), + table_credential=azure.identity.ManagedIdentityCredential(), table_name=os.environ["STAC_GEOPARQUET_TABLE_NAME"], table_account_url=os.environ["STAC_GEOPARQUET_TABLE_ACCOUNT_URL"], storage_options_account_name=os.environ["STAC_GEOPARQUET_STORAGE_OPTIONS_ACCOUNT_NAME"], - storage_options_credential=azure.identity.DefaultAzureCredential(), + storage_options_credential=azure.identity.ManagedIdentityCredential(), extra_skip=SKIP, collections=args.collection, ) diff --git a/datasets/stac-geoparquet/workflow.yaml b/datasets/stac-geoparquet/workflow.yaml index d5344b0e..21bee30f 100644 --- a/datasets/stac-geoparquet/workflow.yaml +++ b/datasets/stac-geoparquet/workflow.yaml @@ -6,7 +6,7 @@ jobs: geoparquet: tasks: - id: update - image: pccomponents.azurecr.io/pctasks-stac-geoparquet:2025.10.28.5 + image: pccomponents.azurecr.io/pctasks-stac-geoparquet:2026.01.05.1 code: src: ${{ local.path(pc_stac_geoparquet.py) }} requirements: ${{ local.path(./requirements.txt) }} @@ -19,7 +19,7 @@ jobs: table_account_url: "https://pcapi.table.core.windows.net" table_name: "greencollectionconfig" storage_options_account_name: "pcstacitems" - # collections: "sentinel-2-l2a" # Set if you want to generate only one geoparquet file + # collections: "chesapeake-lu" # Set if you want to generate only one geoparquet file extra_skip: - "chesapeake-lc-13" - "chesapeake-lc-7"