Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 400 trying to create key rotation policy: no "version" recognized #38375

Open
Tracked by #37712
heaths opened this issue Aug 25, 2023 · 4 comments
Open
Tracked by #37712

HTTP 400 trying to create key rotation policy: no "version" recognized #38375

heaths opened this issue Aug 25, 2023 · 4 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. KeyVault test-reliability Issue that causes tests to be unreliable
Milestone

Comments

@heaths
Copy link
Member

heaths commented Aug 25, 2023

Despite using the same key rotation policy - decoded below - Managed HSM only is responding with,

HTTP 400
Key Release Policy: missing 'version' property (Activity ID: 2bb45756-439e-11ee-9480-6045bd6e6f36)

The request payload is:

{
  "kty": "RSA-HSM",
  "key_size": 2048,
  "attributes": {
    "exportable": true
  },
  "release_policy": {
    "data": "ew0KICAgICJhbnlPZiI6IFsNCiAgICAgICAgew0KICAgICAgICAgICAgImFueU9mIjogWw0KICAgICAgICAgICAgICAgIHsNCiAgICAgICAgICAgICAgICAgICAgImNsYWltIjogInNkay10ZXN0IiwNCiAgICAgICAgICAgICAgICAgICAgImVxdWFscyI6ICJ0cnVlIg0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIF0sDQogICAgICAgICAgICAiYXV0aG9yaXR5IjogImh0dHBzOi8vdGNhYzdlOWM0MWVmNTJjZWNzaXRlLmF6dXJld2Vic2l0ZXMubmV0LyINCiAgICAgICAgfQ0KICAgIF0sDQogICAgInZlcnNpb24iOiAiMS4wLjAiDQp9",
    "immutable": false
  }
}

The decoded policy is:

{
    "anyOf": [
        {
            "anyOf": [
                {
                    "claim": "sdk-test",
                    "equals": "true"
                }
            ],
            "authority": "https://tcac7e9c41ef52cecsite.azurewebsites.net/"
        }
    ],
    "version": "1.0.0"
}
@heaths heaths added KeyVault Service Attention Workflow: This issue is responsible by Azure service team. Service This issue points to a problem in the service. test-reliability Issue that causes tests to be unreliable labels Aug 25, 2023
@heaths heaths self-assigned this Aug 25, 2023
@github-actions
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @RandalliLama @jlichwa.

@heaths
Copy link
Member Author

heaths commented Oct 4, 2023

According to Managed HSM, 7.5-preview.1 support should now be deployed. Testing again now...

@heaths heaths added Client This issue points to a problem in the data-plane of the library. and removed Service This issue points to a problem in the service. labels Oct 4, 2023
@heaths heaths moved this to In progress in Azure SDK for Key Vault Oct 4, 2023
@heaths heaths added this to the 2023-10 milestone Oct 4, 2023
@jsquire jsquire modified the milestones: 2023-10, Backlog Oct 19, 2023
heaths added a commit to heaths/azure-sdk-for-net that referenced this issue Nov 7, 2023
@pallavit
Copy link
Contributor

@heaths I think we can close this.

@heaths
Copy link
Member Author

heaths commented Jan 12, 2024

I'll test it when I re-record for 7.5 to make sure.

@heaths heaths modified the milestones: Backlog, 2024-02 Jan 12, 2024
@jsquire jsquire modified the milestones: 2024-02, Backlog Feb 26, 2024
@chlowell chlowell removed the Service Attention Workflow: This issue is responsible by Azure service team. label Feb 20, 2025
@chlowell chlowell assigned JonathanCrd and unassigned heaths Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. KeyVault test-reliability Issue that causes tests to be unreliable
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

5 participants