Skip to content

[AutoPR azure-security-keyvault-certificates]-generated-from-SDK Generation - Java-5984840#48346

Open
azure-sdk wants to merge 17 commits intoAzure:mainfrom
azure-sdk:sdkauto/azure-security-keyvault-certificates-5984840
Open

[AutoPR azure-security-keyvault-certificates]-generated-from-SDK Generation - Java-5984840#48346
azure-sdk wants to merge 17 commits intoAzure:mainfrom
azure-sdk:sdkauto/azure-security-keyvault-certificates-5984840

Conversation

@azure-sdk
Copy link
Collaborator

Configurations: 'specification/keyvault/Security.KeyVault.Certificates/tspconfig.yaml', API Version: 2025-07-01, SDK Release Type: stable, and CommitSHA: '35275d315efee7fa79b6661c29cb3f1c05e86b76' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5984840 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

…s/tspconfig.yaml', API Version: 2025-07-01, SDK Release Type: stable, and CommitSHA: '35275d315efee7fa79b6661c29cb3f1c05e86b76' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5984840 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
@rohitsinghal4u rohitsinghal4u marked this pull request as ready for review March 10, 2026 06:10
@rohitsinghal4u rohitsinghal4u requested a review from a team as a code owner March 10, 2026 06:10
Copilot AI review requested due to automatic review settings March 10, 2026 06:10
@rohitsinghal4u rohitsinghal4u requested a review from a team as a code owner March 10, 2026 06:10
@rohitsinghal4u
Copy link
Contributor

Hi @azure-java-sdk /@azure-sdk-write-keyvault

This PR was auto-generated from spec PR Azure/azure-rest-api-specs#41061 which added uris (URI SAN) and ipAddresses (IP address SAN) fields to the SubjectAlternativeNames model.

These fields were added in API version 2025-06-01-preview and are available in 2025-07-01 (stable).

The code generation succeeded, but tests are failing because the test recordings don't include these API versions. Could you help re-record the tests against a live Key Vault instance?

Thanks!

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 is an auto-generated SDK update for azure-security-keyvault-certificates, regenerated from the Key Vault API spec at commit 35275d315efee7fa79b6661c29cb3f1c05e86b76 (API version 2025-07-01 stable). The primary functional addition is support for two new SAN (Subject Alternative Names) fields: uniformResourceIdentifiers (URIs) and ipAddresses.

Changes:

  • Added uniformResourceIdentifiers and ipAddresses fields (with getters, setters, and JSON serialization/deserialization) to SubjectAlternativeNames
  • Updated Javadoc across CertificateClientImpl to document the new SAN fields; also removed the unnecessary Accept header from the purgeDeletedCertificate operation (which returns 204 No Content)
  • Updated tsp-location.yaml to the new commit SHA and CHANGELOG.md to reflect the new features

Reviewed changes

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

File Description
tsp-location.yaml Updated commit SHA; removed cleanup: true and trailing slash from additionalDirectories — inconsistent with other Key Vault packages
SubjectAlternativeNames.java Added uniformResourceIdentifiers and ipAddresses fields with getters, setters, and JSON serialization/deserialization
CertificateClientImpl.java Updated Javadoc for new SAN fields; removed Accept header from the 204 purgeDeletedCertificate operation
CHANGELOG.md Added 4.9.0-beta.1 release date and new feature entries; removed existing bug fix entry for issue #47801

* `setIpAddresses(java.util.List)` was added
* `getUniformResourceIdentifiers()` was added
* `getIpAddresses()` was added

Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The original 4.9.0-beta.1 unreleased section contained a "Bugs Fixed" entry for HttpResponseException.getResponse() calls potentially causing a NullPointerException (referenced as issue #47801). This entry has been removed from the CHANGELOG in this PR, and there is no indication that the fix was moved to a different release entry or that it was determined to be incorrect/duplicate. If the bug fix was previously included in 4.9.0-beta.1, it should remain in the changelog for that version to properly track changes for users upgrading.

Suggested change
### Bugs Fixed
- Fixed a potential `NullPointerException` when calling `HttpResponseException.getResponse()` in certain failure scenarios. (#47801)

Copilot uses AI. Check for mistakes.
directory: specification/keyvault/Security.KeyVault.Certificates
commit: 396ab529763b7195ab089f58e2eefb011e1b290d
commit: 35275d315efee7fa79b6661c29cb3f1c05e86b76
repo: Azure/azure-rest-api-specs
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The cleanup: true field has been removed from this file. All other Key Vault packages (azure-security-keyvault-keys, azure-security-keyvault-secrets, and azure-security-keyvault-administration) include cleanup: true in their tsp-location.yaml. Removing this flag may affect the codegen behavior for this package inconsistently with its sibling packages.

For example, sdk/keyvault/azure-security-keyvault-keys/tsp-location.yaml line 4 has cleanup: true, and so does sdk/keyvault/azure-security-keyvault-secrets/tsp-location.yaml line 4.

If this removal is intentional due to a change in the new API version's codegen requirements, it should be explicitly documented.

Suggested change
repo: Azure/azure-rest-api-specs
repo: Azure/azure-rest-api-specs
cleanup: true

Copilot uses AI. Check for mistakes.
additionalDirectories:
- specification/keyvault/Security.KeyVault.Common/
additionalDirectories:
- specification/keyvault/Security.KeyVault.Common
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The path for Security.KeyVault.Common is missing the trailing slash. All other Key Vault packages use specification/keyvault/Security.KeyVault.Common/ (with trailing slash) in their additionalDirectories. For example, sdk/keyvault/azure-security-keyvault-keys/tsp-location.yaml uses - specification/keyvault/Security.KeyVault.Common/. This inconsistency may affect how the TypeSpec emitter resolves the directory during code generation.

Suggested change
- specification/keyvault/Security.KeyVault.Common
- specification/keyvault/Security.KeyVault.Common/

Copilot uses AI. Check for mistakes.
rohitsinghal4u and others added 14 commits March 11, 2026 13:58
…ed dep failures

When generate_from_source_pom.py walks up the parent POM chain in
add_source_projects, it was adding all parent POMs to the from-source
reactor including stable ones (dep_version == current_version) such as
azure-cosmos-spark_3 and azure-cosmos-spark_3-5.

Stable parent POMs are already published to the artifact feed. When Maven
includes them as reactor modules (packaging=pom), it validates their
declared test-scope dependencies. azure-cosmos-spark_3 has a direct
test-scope dependency on azure-cosmos-test:1.0.0-beta.18 (unreleased),
causing keyvault from-source builds to fail with:
  'Could not find artifact com.azure:azure-cosmos-test:jar:1.0.0-beta.18'

Maven does not need these parent POMs in the reactor -- it resolves them
via relativePath from the local filesystem for configuration inheritance.
Only parent POMs that are not yet released (dep != current) OR are in
parent_pom_identifiers need to be in the from-source reactor.

This fixes the ubuntu2404_125_FromSource_SkipRebuild_Verify CI failure
introduced by the spark 4.45.0 release (Azure#48413) which bumped
azure-cosmos-test to current version 1.0.0-beta.18 (unreleased).
The previous fix removed stable parent POMs (azure-cosmos-spark_3,
azure-cosmos-spark_3-5) from the from-source reactor. However, modules
that remain in the reactor (azure-cosmos-spark_3-5_2-12) still inherit
test dependencies from those stable parent POMs via the relativePath
parent chain. Specifically:
  azure-cosmos-spark_3-5_2-12 -> azure-cosmos-spark_3-5 -> azure-cosmos-spark_3
  azure-cosmos-spark_3 declares azure-cosmos-test:1.0.0-beta.18 (unreleased)
  azure-cosmos-spark_3-5_2-12 inherits this as a test-scope dependency

Without azure-cosmos-test in the reactor, Maven fails trying to download
the unreleased artifact from the feed.

Fix resolve_project_dependencies to walk the FULL parent POM chain (not
just one level deep) when collecting dependencies. This ensures that
azure-cosmos-test:1.0.0-beta.18 is discovered as an inherited dependency
of azure-cosmos-spark_3-5_2-12 and added to the from-source reactor,
where it can be built from source instead of downloaded from the feed.
…NGELOG

Per Azure SDK conventions, the top CHANGELOG entry should use (Unreleased)
until a release is cut. Also restores the Breaking Changes and Other Changes
section headers that were missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

4 participants