Skip to content

Commit 0a47c81

Browse files
authored
Merge branch 'release-1.0' into fix/vault-http-json-serialization
2 parents 2bf9ca9 + 371b78e commit 0a47c81

24 files changed

Lines changed: 250 additions & 110 deletions

.github/workflows/keyfactor-bootstrap-workflow-v3.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/keyfactor-bootstrap-workflow.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,17 @@ on:
1111

1212
jobs:
1313
call-starter-workflow:
14-
uses: keyfactor/actions/.github/workflows/starter.yml@v2
14+
uses: keyfactor/actions/.github/workflows/starter.yml@v4
15+
with:
16+
command_token_url: ${{ vars.COMMAND_TOKEN_URL }}
17+
command_hostname: ${{ vars.COMMAND_HOSTNAME }}
18+
command_base_api_path: ${{ vars.COMMAND_API_PATH }}
1519
secrets:
1620
token: ${{ secrets.V2BUILDTOKEN}}
17-
APPROVE_README_PUSH: ${{ secrets.APPROVE_README_PUSH}}
1821
gpg_key: ${{ secrets.KF_GPG_PRIVATE_KEY }}
1922
gpg_pass: ${{ secrets.KF_GPG_PASSPHRASE }}
23+
scan_token: ${{ secrets.SAST_TOKEN }}
24+
entra_username: ${{ secrets.DOCTOOL_ENTRA_USERNAME }}
25+
entra_password: ${{ secrets.DOCTOOL_ENTRA_PASSWD }}
26+
command_client_id: ${{ secrets.COMMAND_CLIENT_ID }}
27+
command_client_secret: ${{ secrets.COMMAND_CLIENT_SECRET }}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,11 @@
2727
### Changed
2828

2929
- Dropped .NET 6.0 target (EOL). The project now targets `net8.0` and `net10.0`.
30+
## 1.0.2
31+
* bug fix: _certDataReader is now initialized in the Initialize method
32+
33+
## 1.0.1
34+
* added retrieval of roles associated with enrolled certificates via metadata for Vault Enterprise users
35+
36+
## 1.0.0
37+
* initial release

hashicorp-vault-cagateway/APIProxy/CertResponse.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Keyfactor
1+
// Copyright 2025 Keyfactor
22
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
33
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
44
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
@@ -16,7 +16,10 @@ public class CertResponse
1616
public string Certificate { get; set; }
1717

1818
[JsonPropertyName("revocation_time_rfc3339")]
19-
public DateTime? RevocationTime { get; set; }
19+
public string RevocationTime { get; set; }
20+
21+
[JsonPropertyName("revocation_time")]
22+
public int? RevocationTimestamp { get; set; }
2023

2124
[JsonPropertyName("issuer_id")]
2225
public string IssuerId { get; set; }

hashicorp-vault-cagateway/APIProxy/ErrorResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Keyfactor
1+
// Copyright 2025 Keyfactor
22
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
33
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
44
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,

hashicorp-vault-cagateway/APIProxy/KeyedList.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Keyfactor
1+
// Copyright 2025 Keyfactor
22
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
33
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
44
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright 2025 Keyfactor
2+
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
3+
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
4+
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
5+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
6+
// and limitations under the License.
7+
8+
using System;
9+
using System.Text.Json.Serialization;
10+
11+
namespace Keyfactor.Extensions.CAPlugin.HashicorpVault.APIProxy
12+
{
13+
public class MetadataResponse
14+
{
15+
[JsonPropertyName("issuer_id")]
16+
public string IssuerId { get; set; }
17+
18+
[JsonPropertyName("expiration")]
19+
public DateTime? Expiration { get; set; }
20+
21+
[JsonPropertyName("cert_metadata")]
22+
public string CertMetadata { get; set; }
23+
24+
[JsonPropertyName("role")]
25+
public string Role { get; set; }
26+
27+
[JsonPropertyName("serial_number")]
28+
public string SerialNumber { get; set; }
29+
}
30+
}

hashicorp-vault-cagateway/APIProxy/RevokeRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Keyfactor
1+
// Copyright 2025 Keyfactor
22
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
33
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
44
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,

hashicorp-vault-cagateway/APIProxy/RevokeResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Keyfactor
1+
// Copyright 2025 Keyfactor
22
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
33
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
44
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,

hashicorp-vault-cagateway/APIProxy/SealStatusResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Keyfactor
1+
// Copyright 2025 Keyfactor
22
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
33
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
44
// Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,

0 commit comments

Comments
 (0)