|
21 | 21 | } |
22 | 22 | ], |
23 | 23 | "anyOf": [ |
24 | | - { |
25 | | - "type": "string", |
26 | | - "description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)", |
27 | | - "minLength": 1 |
28 | | - }, |
29 | 24 | { |
30 | 25 | "type": "object", |
31 | 26 | "properties": { |
32 | 27 | "secret": { |
33 | 28 | "type": "string", |
| 29 | + "minLength": 1, |
34 | 30 | "description": "The name of the secret that contains the token." |
35 | 31 | } |
36 | 32 | }, |
|
44 | 40 | "properties": { |
45 | 41 | "env": { |
46 | 42 | "type": "string", |
| 43 | + "minLength": 1, |
47 | 44 | "description": "The name of the environment variable that contains the token. Only supported in declarative connection configs." |
48 | 45 | } |
49 | 46 | }, |
|
239 | 236 | } |
240 | 237 | ], |
241 | 238 | "anyOf": [ |
242 | | - { |
243 | | - "type": "string", |
244 | | - "description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)", |
245 | | - "minLength": 1 |
246 | | - }, |
247 | 239 | { |
248 | 240 | "type": "object", |
249 | 241 | "properties": { |
250 | 242 | "secret": { |
251 | 243 | "type": "string", |
| 244 | + "minLength": 1, |
252 | 245 | "description": "The name of the secret that contains the token." |
253 | 246 | } |
254 | 247 | }, |
|
262 | 255 | "properties": { |
263 | 256 | "env": { |
264 | 257 | "type": "string", |
| 258 | + "minLength": 1, |
265 | 259 | "description": "The name of the environment variable that contains the token. Only supported in declarative connection configs." |
266 | 260 | } |
267 | 261 | }, |
|
446 | 440 | } |
447 | 441 | ], |
448 | 442 | "anyOf": [ |
449 | | - { |
450 | | - "type": "string", |
451 | | - "description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)", |
452 | | - "minLength": 1 |
453 | | - }, |
454 | 443 | { |
455 | 444 | "type": "object", |
456 | 445 | "properties": { |
457 | 446 | "secret": { |
458 | 447 | "type": "string", |
| 448 | + "minLength": 1, |
459 | 449 | "description": "The name of the secret that contains the token." |
460 | 450 | } |
461 | 451 | }, |
|
469 | 459 | "properties": { |
470 | 460 | "env": { |
471 | 461 | "type": "string", |
| 462 | + "minLength": 1, |
472 | 463 | "description": "The name of the environment variable that contains the token. Only supported in declarative connection configs." |
473 | 464 | } |
474 | 465 | }, |
|
624 | 615 | ] |
625 | 616 | }, |
626 | 617 | "password": { |
627 | | - "description": "Gerrit HTTP password (not your account password). Generate this in Gerrit → Settings → HTTP Credentials → Generate Password.", |
| 618 | + "description": "Gerrit HTTP password (not your account password). Generate this in Gerrit → Settings → HTTP Credentials → Generate Password. Note: HTTP password authentication requires Gerrit's auth.gitBasicAuthPolicy to be set to HTTP or HTTP_LDAP.", |
628 | 619 | "examples": [ |
629 | 620 | { |
630 | 621 | "env": "GERRIT_HTTP_PASSWORD" |
|
634 | 625 | } |
635 | 626 | ], |
636 | 627 | "anyOf": [ |
637 | | - { |
638 | | - "type": "string", |
639 | | - "description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)", |
640 | | - "minLength": 1 |
641 | | - }, |
642 | 628 | { |
643 | 629 | "type": "object", |
644 | 630 | "properties": { |
645 | 631 | "secret": { |
646 | 632 | "type": "string", |
| 633 | + "minLength": 1, |
647 | 634 | "description": "The name of the secret that contains the token." |
648 | 635 | } |
649 | 636 | }, |
|
657 | 644 | "properties": { |
658 | 645 | "env": { |
659 | 646 | "type": "string", |
| 647 | + "minLength": 1, |
660 | 648 | "description": "The name of the environment variable that contains the token. Only supported in declarative connection configs." |
661 | 649 | } |
662 | 650 | }, |
|
744 | 732 | } |
745 | 733 | ], |
746 | 734 | "anyOf": [ |
747 | | - { |
748 | | - "type": "string", |
749 | | - "description": "Direct token value (SECURITY RISK: not recommended for production - use secrets or environment variables instead)", |
750 | | - "minLength": 1 |
751 | | - }, |
752 | 735 | { |
753 | 736 | "type": "object", |
754 | 737 | "properties": { |
755 | 738 | "secret": { |
756 | 739 | "type": "string", |
| 740 | + "minLength": 1, |
757 | 741 | "description": "The name of the secret that contains the token." |
758 | 742 | } |
759 | 743 | }, |
|
767 | 751 | "properties": { |
768 | 752 | "env": { |
769 | 753 | "type": "string", |
| 754 | + "minLength": 1, |
770 | 755 | "description": "The name of the environment variable that contains the token. Only supported in declarative connection configs." |
771 | 756 | } |
772 | 757 | }, |
|
0 commit comments