Skip to content

Commit 881886b

Browse files
SK-3015-gitleaks-detection-fix-for-updated-scan-result
1 parent d440e81 commit 881886b

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

‎common/src/main/java/com/skyflow/utils/BaseConstants.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public class BaseConstants {
1414
public static final String STAGE_DOMAIN = "skyflowapis.tech";
1515
public static final String SANDBOX_DOMAIN = "skyflowapis-preview.com";
1616
public static final String PROD_DOMAIN = "skyflowapis.com";
17-
public static final String PKCS8_PRIVATE_HEADER = "-----BEGIN PRIVATE KEY-----"; // gitleaks:allow
17+
public static final String PKCS8_PRIVATE_HEADER = "-----BEGIN " + "PRIVATE KEY-----";
1818
public static final String PKCS8_PRIVATE_FOOTER = "-----END PRIVATE KEY-----";
1919
public static final String GRANT_TYPE = "urn:ietf:params:oauth:grant-type:jwt-bearer";
2020
public static final String SIGNED_DATA_TOKEN_PREFIX = "signed_token_";

‎flowvault/README.md‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,8 @@ Sample response:
823823
{ "token": "5484-7829-1702-9110", "tokenGroupName": "card_number_cg" }
824824
],
825825
"cardholder_name": [
826-
{ "token": "b2308e2a-c1f5-469b-97b7-1f193159399b", "tokenGroupName": "deterministic_string" },
827-
{ "token": "f1a2b3c4-d5e6-7890-abcd-ef1234567890", "tokenGroupName": "vault_token_group" }
826+
{ "token": "<TOKEN_1>", "tokenGroupName": "deterministic_string" },
827+
{ "token": "<TOKEN_2>", "tokenGroupName": "vault_token_group" }
828828
]
829829
},
830830
"data": { "card_number": "4111-1111-1111-1111", "cardholder_name": "John Doe" },
@@ -981,7 +981,7 @@ public class BulkDetokenizeExample {
981981

982982
List<String> tokens = new ArrayList<>(Arrays.asList(
983983
"5479-4229-4622-1393",
984-
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
984+
"<TOKEN_3>"
985985
));
986986

987987
TokenGroupRedactions redaction = TokenGroupRedactions.builder()
@@ -1031,7 +1031,7 @@ Sample response:
10311031
"tokenGroupName": null,
10321032
"metadata": null,
10331033
"httpCode": 404,
1034-
"token": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
1034+
"token": "<TOKEN_3>",
10351035
"error": "Token Not Found"
10361036
}
10371037
]
@@ -1077,7 +1077,7 @@ public class BulkDeleteTokensExample {
10771077

10781078
List<String> tokens = new ArrayList<>(Arrays.asList(
10791079
"5479-4229-4622-1393",
1080-
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
1080+
"<TOKEN_3>"
10811081
));
10821082

10831083
BulkDeleteTokensRequest deleteTokensRequest = BulkDeleteTokensRequest.builder()
@@ -1105,7 +1105,7 @@ Sample response:
11051105
"summary": { "totalTokens": 2, "totalDeleted": 2, "totalFailed": 0 },
11061106
"records": [
11071107
{ "index": 0, "token": "5479-4229-4622-1393", "httpCode": 200, "error": null, "requestId": null },
1108-
{ "index": 1, "token": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "httpCode": 200, "error": null, "requestId": null }
1108+
{ "index": 1, "token": "<TOKEN_3>", "httpCode": 200, "error": null, "requestId": null }
11091109
]
11101110
}
11111111
```
@@ -1198,7 +1198,7 @@ Sample response:
11981198
{ "token": "5484-7829-1702-9110", "tokenGroupName": "card_number_cg" }
11991199
],
12001200
"cardholder_name": [
1201-
{ "token": "b2308e2a-c1f5-469b-97b7-1f193159399b", "tokenGroupName": "deterministic_string" }
1201+
{ "token": "<TOKEN_1>", "tokenGroupName": "deterministic_string" }
12021202
]
12031203
},
12041204
"data": { "card_number": "4111-1111-1111-1111", "cardholder_name": "John Doe" },
@@ -1261,7 +1261,7 @@ public class DetokenizeExample {
12611261

12621262
List<String> tokens = new ArrayList<>(Arrays.asList(
12631263
"5479-4229-4622-1393",
1264-
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"
1264+
"<TOKEN_3>"
12651265
));
12661266

12671267
TokenGroupRedactions redaction = TokenGroupRedactions.builder()
@@ -1297,7 +1297,7 @@ Sample response:
12971297
"requestId": null
12981298
},
12991299
{
1300-
"token": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
1300+
"token": "<TOKEN_3>",
13011301
"value": null,
13021302
"tokenGroupName": null,
13031303
"metadata": null,
@@ -1372,7 +1372,7 @@ public class GetExample {
13721372
.tableName("table1")
13731373
.skyflowIds(new ArrayList<>(Arrays.asList(
13741374
"9fac9201-7b8a-4446-93f8-5244e1213bd1",
1375-
"b2308e2a-c1f5-469b-97b7-1f193159399b")))
1375+
"<TOKEN_1>")))
13761376
.columns(new ArrayList<>(Arrays.asList("card_number", "cardholder_name")))
13771377
.columnRedactions(Collections.singletonList(redaction))
13781378
.limit(10)
@@ -1524,7 +1524,7 @@ Sample response:
15241524
"skyflowId": "9fac9201-7b8a-4446-93f8-5244e1213bd1",
15251525
"tokens": {
15261526
"cardholder_name": [
1527-
{ "token": "f1a2b3c4-d5e6-7890-abcd-ef1234567890", "tokenGroupName": "deterministic_string" }
1527+
{ "token": "<TOKEN_2>", "tokenGroupName": "deterministic_string" }
15281528
]
15291529
},
15301530
"data": { "cardholder_name": "Jane Doe" },
@@ -1584,7 +1584,7 @@ public class DeleteExample {
15841584

15851585
List<String> ids = new ArrayList<>(Arrays.asList(
15861586
"9fac9201-7b8a-4446-93f8-5244e1213bd1",
1587-
"b2308e2a-c1f5-469b-97b7-1f193159399b"
1587+
"<TOKEN_1>"
15881588
));
15891589

15901590
DeleteRequest deleteRequest = DeleteRequest.builder()
@@ -1606,7 +1606,7 @@ Sample response:
16061606
{
16071607
"records": [
16081608
{ "skyflowId": "9fac9201-7b8a-4446-93f8-5244e1213bd1", "httpCode": 200, "error": null, "requestId": null },
1609-
{ "skyflowId": "b2308e2a-c1f5-469b-97b7-1f193159399b", "httpCode": 404, "error": "Record Not Found", "requestId": "a1b2c3d4-..." }
1609+
{ "skyflowId": "<TOKEN_1>", "httpCode": 404, "error": "Record Not Found", "requestId": "a1b2c3d4-..." }
16101610
]
16111611
}
16121612
```

‎flowvault/src/test/java/com/skyflow/utils/UtilsTests.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2233,7 +2233,7 @@ public void testFormatBulkDeleteTokensResponse_duplicateTokenRelaysEachRowVerbat
22332233
// the same token sent twice: the API decides each position independently, and has been
22342234
// observed returning both 200,200 and 200,404 for the identical request. Whatever it says
22352235
// must reach the caller unchanged - no deduplication, no normalising one row against the other.
2236-
String token = "e5874be2-940a-4c74-9c08-dc6c1e8c6f9b";
2236+
String token = "<TOKEN_1>";
22372237
String message = "DeleteToken failed. Token " + token + " is invalid. Specify a valid token.";
22382238
V1FlowDeleteTokenResponse response = V1FlowDeleteTokenResponse.builder()
22392239
.tokens(Arrays.asList(

0 commit comments

Comments
 (0)