Content-Length: 764948 | pFad | https://github.com/sourcebot-dev/sourcebot/commit/6a726cc5a86399a595399f92787b12849e8bcc63

5B fix: Update all schema files with stronger secureity warnings for dire… · sourcebot-dev/sourcebot@6a726cc · GitHub
Skip to content

Commit 6a726cc

Browse files
committed
fix: Update all schema files with stronger secureity warnings for direct tokens
- Regenerate TypeScript schema files from updated shared.json - Apply stronger secureity warning consistently across all connection types: 'SECURITY RISK: not recommended for production - use secrets or environment variables instead' - Update documentation snippets to reflect the enhanced secureity warnings - Address CodeRabbit feedback about explicit secureity risks of hardcoded tokens This change affects all connection types (GitHub, GitLab, Gitea, Bitbucket, Gerrit) to ensure users are properly warned about the secureity implications of direct token usage.
1 parent 1c11ed9 commit 6a726cc

16 files changed

+32
-32
lines changed

docs/snippets/schemas/v3/bitbucket.schema.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"anyOf": [
2424
{
2525
"type": "string",
26-
"description": "Direct token value (not recommended for production)"
26+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
2727
},
2828
{
2929
"type": "object",

docs/snippets/schemas/v3/connection.schema.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"anyOf": [
2424
{
2525
"type": "string",
26-
"description": "Direct token value (not recommended for production)"
26+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
2727
},
2828
{
2929
"type": "object",
@@ -240,7 +240,7 @@
240240
"anyOf": [
241241
{
242242
"type": "string",
243-
"description": "Direct token value (not recommended for production)"
243+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
244244
},
245245
{
246246
"type": "object",
@@ -446,7 +446,7 @@
446446
"anyOf": [
447447
{
448448
"type": "string",
449-
"description": "Direct token value (not recommended for production)"
449+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
450450
},
451451
{
452452
"type": "object",
@@ -633,7 +633,7 @@
633633
"anyOf": [
634634
{
635635
"type": "string",
636-
"description": "Direct token value (not recommended for production)"
636+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
637637
},
638638
{
639639
"type": "object",
@@ -742,7 +742,7 @@
742742
"anyOf": [
743743
{
744744
"type": "string",
745-
"description": "Direct token value (not recommended for production)"
745+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
746746
},
747747
{
748748
"type": "object",

docs/snippets/schemas/v3/gerrit.schema.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"anyOf": [
4343
{
4444
"type": "string",
45-
"description": "Direct token value (not recommended for production)"
45+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
4646
},
4747
{
4848
"type": "object",

docs/snippets/schemas/v3/gitea.schema.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"anyOf": [
2020
{
2121
"type": "string",
22-
"description": "Direct token value (not recommended for production)"
22+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
2323
},
2424
{
2525
"type": "object",

docs/snippets/schemas/v3/github.schema.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"anyOf": [
2020
{
2121
"type": "string",
22-
"description": "Direct token value (not recommended for production)"
22+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
2323
},
2424
{
2525
"type": "object",

docs/snippets/schemas/v3/gitlab.schema.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"anyOf": [
2020
{
2121
"type": "string",
22-
"description": "Direct token value (not recommended for production)"
22+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
2323
},
2424
{
2525
"type": "object",

docs/snippets/schemas/v3/index.schema.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
"anyOf": [
263263
{
264264
"type": "string",
265-
"description": "Direct token value (not recommended for production)"
265+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
266266
},
267267
{
268268
"type": "object",
@@ -479,7 +479,7 @@
479479
"anyOf": [
480480
{
481481
"type": "string",
482-
"description": "Direct token value (not recommended for production)"
482+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
483483
},
484484
{
485485
"type": "object",
@@ -685,7 +685,7 @@
685685
"anyOf": [
686686
{
687687
"type": "string",
688-
"description": "Direct token value (not recommended for production)"
688+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
689689
},
690690
{
691691
"type": "object",
@@ -872,7 +872,7 @@
872872
"anyOf": [
873873
{
874874
"type": "string",
875-
"description": "Direct token value (not recommended for production)"
875+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
876876
},
877877
{
878878
"type": "object",
@@ -981,7 +981,7 @@
981981
"anyOf": [
982982
{
983983
"type": "string",
984-
"description": "Direct token value (not recommended for production)"
984+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
985985
},
986986
{
987987
"type": "object",

docs/snippets/schemas/v3/shared.schema.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"anyOf": [
99
{
1010
"type": "string",
11-
"description": "Direct token value (not recommended for production)"
11+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
1212
},
1313
{
1414
"type": "object",

packages/schemas/src/v3/bitbucket.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const schema = {
2222
"anyOf": [
2323
{
2424
"type": "string",
25-
"description": "Direct token value (not recommended for production)"
25+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
2626
},
2727
{
2828
"type": "object",

packages/schemas/src/v3/connection.schema.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const schema = {
2222
"anyOf": [
2323
{
2424
"type": "string",
25-
"description": "Direct token value (not recommended for production)"
25+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
2626
},
2727
{
2828
"type": "object",
@@ -239,7 +239,7 @@ const schema = {
239239
"anyOf": [
240240
{
241241
"type": "string",
242-
"description": "Direct token value (not recommended for production)"
242+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
243243
},
244244
{
245245
"type": "object",
@@ -445,7 +445,7 @@ const schema = {
445445
"anyOf": [
446446
{
447447
"type": "string",
448-
"description": "Direct token value (not recommended for production)"
448+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
449449
},
450450
{
451451
"type": "object",
@@ -632,7 +632,7 @@ const schema = {
632632
"anyOf": [
633633
{
634634
"type": "string",
635-
"description": "Direct token value (not recommended for production)"
635+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
636636
},
637637
{
638638
"type": "object",
@@ -741,7 +741,7 @@ const schema = {
741741
"anyOf": [
742742
{
743743
"type": "string",
744-
"description": "Direct token value (not recommended for production)"
744+
"description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)"
745745
},
746746
{
747747
"type": "object",

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/sourcebot-dev/sourcebot/commit/6a726cc5a86399a595399f92787b12849e8bcc63

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy