-
Notifications
You must be signed in to change notification settings - Fork 24
feat(kas): Add nano policy binding to rewrap audit. [backport to release/service/v0.11] #2878
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
Closed
opentdf-automation
wants to merge
4
commits into
release/service/v0.11
from
backport-2870-to-release/service/v0.11
Closed
feat(kas): Add nano policy binding to rewrap audit. [backport to release/service/v0.11] #2878
opentdf-automation
wants to merge
4
commits into
release/service/v0.11
from
backport-2870-to-release/service/v0.11
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 tasks
### Proposed Changes
1.) Add nano policy binding to audit rewrap logs
2.) Bump sdk to version 0.10.1
### Examples
#### Nano - Encrypted Policy - Gmac
```json
{
"time": "2025-11-03T12:53:39.67596-06:00",
"level": "AUDIT",
"msg": "rewrap",
"namespace": "kas",
"audit": {
"object": {
"type": "key_object",
"id": "ff1a2fe2-a942-11f0-9751-a6a754e79d24",
"name": "",
"attributes": {
"assertions": [],
"attrs": [
"https://test.obligations/attr/test_attr_for_triggers/value/test_valu_for_trigger"
],
"permissions": []
}
},
"action": {
"type": "rewrap",
"result": "error"
},
"actor": {
"id": "260a3342-65d8-4056-8d17-b362c932b9dc",
"attributes": []
},
"eventMetaData": {
"algorithm": "ec:secp256r1",
"keyID": "e1",
"policyBinding": "69750779a948846a",
"tdfFormat": "Nano"
},
"clientInfo": {
"userAgent": "connect-go/1.18.1 (go1.24.6)",
"platform": "kas",
"requestIP": "None"
},
"original": null,
"updated": null,
"requestID": "1eb13e08-963e-4abd-acfc-5a30fb3cb876",
"timestamp": "2025-11-03T12:53:39-06:00"
}
}
```
#### Nano - Encrypted policy - ECDSA
```json
{
"time": "2025-11-03T13:06:52.920043-06:00",
"level": "AUDIT",
"msg": "rewrap",
"namespace": "kas",
"audit": {
"object": {
"type": "key_object",
"id": "3c370940-b8e8-11f0-b395-a6a754e79d24",
"name": "",
"attributes": {
"assertions": [],
"attrs": [
"https://test.obligations/attr/test_attr_for_triggers/value/test_valu_for_trigger"
],
"permissions": []
}
},
"action": {
"type": "rewrap",
"result": "success"
},
"actor": {
"id": "260a3342-65d8-4056-8d17-b362c932b9dc",
"attributes": []
},
"eventMetaData": {
"algorithm": "ec:secp256r1",
"keyID": "e1",
"policyBinding": "07eb1084ee0e3f982d9374c184e88840abe5caa272cde5dd14798224db13107a",
"tdfFormat": "Nano"
},
"clientInfo": {
"userAgent": "connect-go/1.18.1 (go1.24.6)",
"platform": "kas",
"requestIP": "None"
},
"original": null,
"updated": null,
"requestID": "c27a751d-44a9-4866-beef-451b2fbef5ae",
"timestamp": "2025-11-03T13:06:52-06:00"
}
}
```
#### Nano - Plaintext policy - GMAC
```json
{
"time": "2025-11-03T13:01:27.938945-06:00",
"level": "AUDIT",
"msg": "rewrap",
"namespace": "kas",
"audit": {
"object": {
"type": "key_object",
"id": "7857a624-b8e7-11f0-aa9c-a6a754e79d24",
"name": "",
"attributes": {
"assertions": [],
"attrs": [
"https://test.obligations/attr/test_attr_for_triggers/value/test_valu_for_trigger"
],
"permissions": []
}
},
"action": {
"type": "rewrap",
"result": "success"
},
"actor": {
"id": "260a3342-65d8-4056-8d17-b362c932b9dc",
"attributes": []
},
"eventMetaData": {
"algorithm": "ec:secp256r1",
"keyID": "e1",
"policyBinding": "342b5951d82676fa",
"tdfFormat": "Nano"
},
"clientInfo": {
"userAgent": "connect-go/1.18.1 (go1.24.6)",
"platform": "kas",
"requestIP": "None"
},
"original": null,
"updated": null,
"requestID": "652cc0d2-fec8-49a4-8e0d-e5f01794bdaa",
"timestamp": "2025-11-03T13:01:27-06:00"
}
}
```
#### Nano - Plaintext policy - ECDSA
```json
{
"time": "2025-11-03T13:03:17.645969-06:00",
"level": "AUDIT",
"msg": "rewrap",
"namespace": "kas",
"audit": {
"object": {
"type": "key_object",
"id": "bb58d92a-b8e7-11f0-8556-a6a754e79d24",
"name": "",
"attributes": {
"assertions": [],
"attrs": [
"https://test.obligations/attr/test_attr_for_triggers/value/test_valu_for_trigger"
],
"permissions": []
}
},
"action": {
"type": "rewrap",
"result": "success"
},
"actor": {
"id": "260a3342-65d8-4056-8d17-b362c932b9dc",
"attributes": []
},
"eventMetaData": {
"algorithm": "ec:secp256r1",
"keyID": "e1",
"policyBinding": "7f50b172ceae7cb4eff9cff1849fed1022bb0f1abeb924060f50fdd5876bb09b",
"tdfFormat": "Nano"
},
"clientInfo": {
"userAgent": "connect-go/1.18.1 (go1.24.6)",
"platform": "kas",
"requestIP": "None"
},
"original": null,
"updated": null,
"requestID": "5a038826-43e8-42b6-9239-bd0cf3066cfd",
"timestamp": "2025-11-03T13:03:17-06:00"
}
}
```
### Checklist
- [ ] I have added or updated unit tests
- [ ] I have added or updated integration tests (if appropriate)
- [ ] I have added or updated documentation
### Testing Instructions
(cherry picked from commit a12d1d4)
63dc91d to
befe7b9
Compare
Contributor
X-Test Failure Reportopentdf |
Contributor
X-Test Failure Reportopentdf |
Contributor
X-Test Failure Reportopentdf |
### Proposed Changes
1.) Add nano policy binding to audit rewrap logs
2.) Bump sdk to version 0.10.1
### Examples
#### Nano - Encrypted Policy - Gmac
```json
{
"time": "2025-11-03T12:53:39.67596-06:00",
"level": "AUDIT",
"msg": "rewrap",
"namespace": "kas",
"audit": {
"object": {
"type": "key_object",
"id": "ff1a2fe2-a942-11f0-9751-a6a754e79d24",
"name": "",
"attributes": {
"assertions": [],
"attrs": [
"https://test.obligations/attr/test_attr_for_triggers/value/test_valu_for_trigger"
],
"permissions": []
}
},
"action": {
"type": "rewrap",
"result": "error"
},
"actor": {
"id": "260a3342-65d8-4056-8d17-b362c932b9dc",
"attributes": []
},
"eventMetaData": {
"algorithm": "ec:secp256r1",
"keyID": "e1",
"policyBinding": "69750779a948846a",
"tdfFormat": "Nano"
},
"clientInfo": {
"userAgent": "connect-go/1.18.1 (go1.24.6)",
"platform": "kas",
"requestIP": "None"
},
"original": null,
"updated": null,
"requestID": "1eb13e08-963e-4abd-acfc-5a30fb3cb876",
"timestamp": "2025-11-03T12:53:39-06:00"
}
}
```
#### Nano - Encrypted policy - ECDSA
```json
{
"time": "2025-11-03T13:06:52.920043-06:00",
"level": "AUDIT",
"msg": "rewrap",
"namespace": "kas",
"audit": {
"object": {
"type": "key_object",
"id": "3c370940-b8e8-11f0-b395-a6a754e79d24",
"name": "",
"attributes": {
"assertions": [],
"attrs": [
"https://test.obligations/attr/test_attr_for_triggers/value/test_valu_for_trigger"
],
"permissions": []
}
},
"action": {
"type": "rewrap",
"result": "success"
},
"actor": {
"id": "260a3342-65d8-4056-8d17-b362c932b9dc",
"attributes": []
},
"eventMetaData": {
"algorithm": "ec:secp256r1",
"keyID": "e1",
"policyBinding": "07eb1084ee0e3f982d9374c184e88840abe5caa272cde5dd14798224db13107a",
"tdfFormat": "Nano"
},
"clientInfo": {
"userAgent": "connect-go/1.18.1 (go1.24.6)",
"platform": "kas",
"requestIP": "None"
},
"original": null,
"updated": null,
"requestID": "c27a751d-44a9-4866-beef-451b2fbef5ae",
"timestamp": "2025-11-03T13:06:52-06:00"
}
}
```
#### Nano - Plaintext policy - GMAC
```json
{
"time": "2025-11-03T13:01:27.938945-06:00",
"level": "AUDIT",
"msg": "rewrap",
"namespace": "kas",
"audit": {
"object": {
"type": "key_object",
"id": "7857a624-b8e7-11f0-aa9c-a6a754e79d24",
"name": "",
"attributes": {
"assertions": [],
"attrs": [
"https://test.obligations/attr/test_attr_for_triggers/value/test_valu_for_trigger"
],
"permissions": []
}
},
"action": {
"type": "rewrap",
"result": "success"
},
"actor": {
"id": "260a3342-65d8-4056-8d17-b362c932b9dc",
"attributes": []
},
"eventMetaData": {
"algorithm": "ec:secp256r1",
"keyID": "e1",
"policyBinding": "342b5951d82676fa",
"tdfFormat": "Nano"
},
"clientInfo": {
"userAgent": "connect-go/1.18.1 (go1.24.6)",
"platform": "kas",
"requestIP": "None"
},
"original": null,
"updated": null,
"requestID": "652cc0d2-fec8-49a4-8e0d-e5f01794bdaa",
"timestamp": "2025-11-03T13:01:27-06:00"
}
}
```
#### Nano - Plaintext policy - ECDSA
```json
{
"time": "2025-11-03T13:03:17.645969-06:00",
"level": "AUDIT",
"msg": "rewrap",
"namespace": "kas",
"audit": {
"object": {
"type": "key_object",
"id": "bb58d92a-b8e7-11f0-8556-a6a754e79d24",
"name": "",
"attributes": {
"assertions": [],
"attrs": [
"https://test.obligations/attr/test_attr_for_triggers/value/test_valu_for_trigger"
],
"permissions": []
}
},
"action": {
"type": "rewrap",
"result": "success"
},
"actor": {
"id": "260a3342-65d8-4056-8d17-b362c932b9dc",
"attributes": []
},
"eventMetaData": {
"algorithm": "ec:secp256r1",
"keyID": "e1",
"policyBinding": "7f50b172ceae7cb4eff9cff1849fed1022bb0f1abeb924060f50fdd5876bb09b",
"tdfFormat": "Nano"
},
"clientInfo": {
"userAgent": "connect-go/1.18.1 (go1.24.6)",
"platform": "kas",
"requestIP": "None"
},
"original": null,
"updated": null,
"requestID": "5a038826-43e8-42b6-9239-bd0cf3066cfd",
"timestamp": "2025-11-03T13:03:17-06:00"
}
}
```
### Checklist
- [ ] I have added or updated unit tests
- [ ] I have added or updated integration tests (if appropriate)
- [ ] I have added or updated documentation
### Testing Instructions
(cherry picked from commit a12d1d4)
…pentdf/platform into backport-2870-to-release/service/v0.11
Contributor
X-Test Failure Reportopentdf |
Contributor
Benchmark results, click to expandBenchmark authorization.GetDecisions Results:
Benchmark authorization.v2.GetMultiResourceDecision Results:
Standard Benchmark Metrics Skipped or FailedBulk Benchmark Results
TDF3 Benchmark Results:
NANOTDF Benchmark Results:
|
Contributor
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Backport of #2870 to
release/service/v0.11.