-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(profiles): improve UTC consistency, update file handling, and re…
…fine encryption Set timestamps to UTC: Updated CreatedAt and UpdatedAt timestamps in profileConfig.go to use UTC for consistent time storage. Default store type change: Changed the default store type in _index.md from keyring to file. File naming improvements: Modified hashNamespaceAndKey in storeFile.go to use a colon (:) separator for namespace and key, improving readability and consistency. File metadata handling: Enhanced handling of metadata file paths, using TrimSuffix to replace file extensions dynamically, ensuring metadata files use .nfo extension consistently across functions. Improved encryption process: Refactored encryptData to separate the nonce from the destination buffer, and prepend the nonce to ciphertext for better compatibility.
- Loading branch information
Showing
8 changed files
with
33 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,5 +45,5 @@ command: | |
- keyring | ||
- in-memory | ||
- file | ||
default: keyring | ||
default: file | ||
--- |
Binary file not shown.
This file contains 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
This file contains 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
1 change: 1 addition & 0 deletions
1
profiles/28856c51db8aa53701d8f4d56c6717d45db7589900cded46a03519223b5ae337.enc
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6��R6�Jh�ԴfNG�V+�䉄��Ong��X/��||��K�#���x�<�.����ɵ��n������C�έ-�}�P�rVX | ||
|
6 changes: 6 additions & 0 deletions
6
profiles/28856c51db8aa53701d8f4d56c6717d45db7589900cded46a03519223b5ae337.nfo
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"profile_name": "global", | ||
"created_at": "2024-11-10T13:43:20-05:00", | ||
"encryption_alg": "AES-256-GCM", | ||
"version": "urn:opentdf:otdfctl:profile:v1" | ||
} |
Binary file added
BIN
+2.88 KB
profiles/68a82505269f56ac68f350b94eb58d2e3150c18cf2684a8a00a7d8b65b203eef.enc
Binary file not shown.
6 changes: 6 additions & 0 deletions
6
profiles/68a82505269f56ac68f350b94eb58d2e3150c18cf2684a8a00a7d8b65b203eef.nfo
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"profile_name": "profile-test", | ||
"created_at": "2024-11-10T13:44:18-05:00", | ||
"encryption_alg": "AES-256-GCM", | ||
"version": "urn:opentdf:otdfctl:profile:v1" | ||
} |