You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/checks.yaml
+25-1Lines changed: 25 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -167,7 +167,7 @@ jobs:
167
167
--client-secret=secret \
168
168
--platform-endpoint=http://localhost:8080 \
169
169
-h\
170
-
encryptnano --kas-url=http://localhost:8080 --attr https://example.com/attr/attr1/value/value1 -f data -m 'here is some metadata' > nano.ntdf
170
+
encryptnano --kas-url=http://localhost:8080 --attr https://example.com/attr/attr1/value/value1 --policy-type encrypted -f data -m 'here is some metadata' > nano.ntdf
171
171
172
172
java -jar target/cmdline.jar \
173
173
--client-id=opentdf-sdk \
@@ -182,6 +182,30 @@ jobs:
182
182
fi
183
183
working-directory: cmdline
184
184
185
+
- name: Encrypt/Decrypt NanoTDF with plain text policy type
186
+
run: |
187
+
echo 'here is some data to encrypt' > data
188
+
189
+
java -jar target/cmdline.jar \
190
+
--client-id=opentdf-sdk \
191
+
--client-secret=secret \
192
+
--platform-endpoint=http://localhost:8080 \
193
+
-h\
194
+
encryptnano --kas-url=http://localhost:8080 --attr https://example.com/attr/attr1/value/value1 --policy-type plaintext -f data -m 'here is some metadata' > nanopt.ntdf
195
+
196
+
java -jar target/cmdline.jar \
197
+
--client-id=opentdf-sdk \
198
+
--client-secret=secret \
199
+
--platform-endpoint=http://localhost:8080 \
200
+
-h\
201
+
decryptnano -f nanopt.ntdf > decrypted
202
+
203
+
if ! diff -q data decrypted; then
204
+
printf 'decrypted data is incorrect [%s]' "$(< decrypted)"
0 commit comments