Commit a12d1d4
authored
feat(kas): Add nano policy binding to rewrap audit. (#2870)
### 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 Instructions1 parent 5221cf4 commit a12d1d4
3 files changed
+24
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
261 | | - | |
| 260 | + | |
| 261 | + | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| |||
901 | 902 | | |
902 | 903 | | |
903 | 904 | | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
909 | 911 | | |
910 | 912 | | |
911 | 913 | | |
| |||
986 | 988 | | |
987 | 989 | | |
988 | 990 | | |
989 | | - | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
990 | 998 | | |
991 | | - | |
| 999 | + | |
992 | 1000 | | |
993 | 1001 | | |
994 | 1002 | | |
| |||
997 | 1005 | | |
998 | 1006 | | |
999 | 1007 | | |
1000 | | - | |
1001 | | - | |
1002 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
1003 | 1012 | | |
1004 | 1013 | | |
1005 | 1014 | | |
| |||
0 commit comments