Skip to content

Conversation

@AlitzelMendez
Copy link
Member

@AlitzelMendez AlitzelMendez commented Dec 6, 2025

second part of: #12484

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@AlitzelMendez AlitzelMendez changed the title [DNM][WIP][APIView] Remove ApiKey usage [APIView] Remove ApiKey usage Dec 9, 2025
@AlitzelMendez AlitzelMendez marked this pull request as ready for review December 9, 2025 00:12
@AlitzelMendez AlitzelMendez requested a review from a team as a code owner December 9, 2025 00:12
Copilot AI review requested due to automatic review settings December 9, 2025 00:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes API Key-based authentication from APIView in favor of Azure AD Bearer token authentication. The changes migrate from using a static API key to dynamically acquiring Azure AD tokens via the Azure CLI.

Key Changes:

  • Replaced API Key authentication with Azure AD Bearer token authentication using az account get-access-token
  • Updated API endpoints to use new lowercase paths (/autoreview/upload and /autoreview/create)
  • Changed HTTP method from GET to POST for the create endpoint to follow RESTful conventions

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
eng/common/scripts/Create-APIReview.ps1 Removed $APIKey parameter, added Get-ApiViewBearerToken() function for Azure AD authentication, updated API endpoints and authentication headers in both upload functions
eng/common/pipelines/templates/steps/create-apireview.yml Changed from Powershell@2 to AzureCLI@2 task to enable Azure authentication context, added AzureServiceConnection parameter, removed API key argument

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please be sure to follow the eng/common sync workflow to ensure this syncs to all the language repos.

@AlitzelMendez
Copy link
Member Author

/check-enforcer evaluate

@weshaggard
Copy link
Member

/check-enforcer evaluate

@AlitzelMendez you need to follow the next set of steps https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow let's not override check-enforcer as it shouldn't be needed.

azure-sdk added a commit to Azure/azure-sdk-for-js that referenced this pull request Dec 11, 2025
azure-sdk added a commit to Azure/azure-sdk-for-rust that referenced this pull request Dec 11, 2025
@AlitzelMendez AlitzelMendez merged commit b8303b3 into main Dec 11, 2025
10 checks passed
@AlitzelMendez AlitzelMendez deleted the stop-using-apikey branch December 11, 2025 20:03
JiaqiZhang-Dev pushed a commit that referenced this pull request Dec 22, 2025
* [DNM][WIP][API View] Remove ApiKey usage

* Add -TestAuth flag to verify Bearer token authentication

* TEMP: Enable TestAuthOnly for pipeline testing

* [APIView] Remove testing logs

* Additional clean up

* Keep apikey fallback while migrating

* [APIView] Keep migration to new endpoint

* [APIView] Keep migration to new endpoint

* Feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants