|
305 | 305 | "format": "int64" |
306 | 306 | } |
307 | 307 | } |
| 308 | + }, |
| 309 | + { |
| 310 | + "title": "Application Default Configuration", |
| 311 | + "description": "This will infer its configuration based on its environment.\nWorks with the GOOGLE_APPLICATION_CREDENTIALS environment variable\nor by automatically calling GCP's metadata endpoint (if run as a GCE or GKE workload).", |
| 312 | + "type": "object", |
| 313 | + "required": [ |
| 314 | + "auth_mode" |
| 315 | + ], |
| 316 | + "properties": { |
| 317 | + "auth_mode": { |
| 318 | + "type": "string", |
| 319 | + "const": "default" |
| 320 | + } |
| 321 | + } |
308 | 322 | } |
309 | 323 | ] |
310 | 324 | }, |
|
1100 | 1114 | "format": "int64" |
1101 | 1115 | } |
1102 | 1116 | } |
| 1117 | + }, |
| 1118 | + { |
| 1119 | + "title": "Application Default Configuration", |
| 1120 | + "description": "This will infer its configuration based on its environment.\nWorks with the GOOGLE_APPLICATION_CREDENTIALS environment variable\nor by automatically calling GCP's metadata endpoint (if run as a GCE or GKE workload).", |
| 1121 | + "type": "object", |
| 1122 | + "required": [ |
| 1123 | + "auth_mode" |
| 1124 | + ], |
| 1125 | + "properties": { |
| 1126 | + "auth_mode": { |
| 1127 | + "type": "string", |
| 1128 | + "const": "default" |
| 1129 | + } |
| 1130 | + } |
1103 | 1131 | } |
1104 | 1132 | ], |
1105 | 1133 | "description": "Authentication method for GCP\nIf not specified, defaults to Application Default Credentials", |
|
1267 | 1295 | "title": "GitLab CI", |
1268 | 1296 | "description": "GitLab CI fetcher" |
1269 | 1297 | }, |
| 1298 | + { |
| 1299 | + "description": "GitLab Personal Access Token fetcher", |
| 1300 | + "type": "object", |
| 1301 | + "required": [ |
| 1302 | + "url", |
| 1303 | + "admin_token", |
| 1304 | + "type" |
| 1305 | + ], |
| 1306 | + "properties": { |
| 1307 | + "admin_token": { |
| 1308 | + "description": "Admin token needed for PAT API access (requires admin privileges)", |
| 1309 | + "type": "string" |
| 1310 | + }, |
| 1311 | + "env": { |
| 1312 | + "description": "Environment designation for this configuration", |
| 1313 | + "anyOf": [ |
| 1314 | + { |
| 1315 | + "$ref": "#/definitions/https%3A~1~1gitguardian.com~1inventory-config/$defs/Env" |
| 1316 | + }, |
| 1317 | + { |
| 1318 | + "const": null, |
| 1319 | + "nullable": true |
| 1320 | + } |
| 1321 | + ] |
| 1322 | + }, |
| 1323 | + "exclude": { |
| 1324 | + "type": "array", |
| 1325 | + "items": { |
| 1326 | + "$ref": "#/definitions/https%3A~1~1gitguardian.com~1inventory-config/$defs/FilteringRule" |
| 1327 | + }, |
| 1328 | + "nullable": true |
| 1329 | + }, |
| 1330 | + "include": { |
| 1331 | + "type": "array", |
| 1332 | + "items": { |
| 1333 | + "$ref": "#/definitions/https%3A~1~1gitguardian.com~1inventory-config/$defs/FilteringRule" |
| 1334 | + }, |
| 1335 | + "nullable": true |
| 1336 | + }, |
| 1337 | + "url": { |
| 1338 | + "description": "GitLab instance URL (e.g., \"https://gitlab.com\" or \"https://gitlab.example.com\")", |
| 1339 | + "type": "string", |
| 1340 | + "format": "uri" |
| 1341 | + }, |
| 1342 | + "type": { |
| 1343 | + "type": "string", |
| 1344 | + "const": "gitlabpat" |
| 1345 | + } |
| 1346 | + }, |
| 1347 | + "title": "GitLab Personal Access Tokens" |
| 1348 | + }, |
1270 | 1349 | { |
1271 | 1350 | "type": "object", |
1272 | 1351 | "required": [ |
|
1581 | 1660 | "format": "int64" |
1582 | 1661 | } |
1583 | 1662 | } |
| 1663 | + }, |
| 1664 | + { |
| 1665 | + "title": "Application Default Configuration", |
| 1666 | + "description": "This will infer its configuration based on its environment.\nWorks with the GOOGLE_APPLICATION_CREDENTIALS environment variable\nor by automatically calling GCP's metadata endpoint (if run as a GCE or GKE workload).", |
| 1667 | + "type": "object", |
| 1668 | + "required": [ |
| 1669 | + "auth_mode" |
| 1670 | + ], |
| 1671 | + "properties": { |
| 1672 | + "auth_mode": { |
| 1673 | + "type": "string", |
| 1674 | + "const": "default" |
| 1675 | + } |
| 1676 | + } |
1584 | 1677 | } |
1585 | 1678 | ], |
1586 | 1679 | "description": "Authentication method for GCP\nIf not specified, defaults to Application Default Credentials", |
|
1697 | 1790 | } |
1698 | 1791 | } |
1699 | 1792 | }, |
| 1793 | + "GitLabPATConfig": { |
| 1794 | + "description": "Configuration for the GitLab Personal Access Token fetcher.\n\nThis configuration defines how to connect to a GitLab instance and fetch\nPersonal Access Tokens (PATs) for inventory purposes. The fetcher requires\nadmin privileges to access the PAT API endpoint.\n\n# Authentication\n\nThe `admin_token` must be a GitLab Personal Access Token with admin privileges.\nWithout admin access, the GitLab API will return a 403 Forbidden error when\nattempting to list Personal Access Tokens.\n\n# Filtering\n\nThe configuration supports inventory-level filtering using standard include/exclude patterns.\n\n# Example\n\n```toml\n[[sources]]\ntype = \"gitlabpat\"\nurl = \"https://gitlab.example.com\"\nadmin_token = \"glpat-xxxxxxxxxxxxxxxxxxxx\"\n\n[sources.filters]\ninclude = [\"*\"]\nexclude = [\"test_*\"]\n```", |
| 1795 | + "type": "object", |
| 1796 | + "required": [ |
| 1797 | + "url", |
| 1798 | + "admin_token" |
| 1799 | + ], |
| 1800 | + "properties": { |
| 1801 | + "admin_token": { |
| 1802 | + "description": "Admin token needed for PAT API access (requires admin privileges)", |
| 1803 | + "type": "string" |
| 1804 | + }, |
| 1805 | + "env": { |
| 1806 | + "description": "Environment designation for this configuration", |
| 1807 | + "anyOf": [ |
| 1808 | + { |
| 1809 | + "$ref": "#/definitions/https%3A~1~1gitguardian.com~1inventory-config/$defs/Env" |
| 1810 | + }, |
| 1811 | + { |
| 1812 | + "const": null, |
| 1813 | + "nullable": true |
| 1814 | + } |
| 1815 | + ] |
| 1816 | + }, |
| 1817 | + "exclude": { |
| 1818 | + "type": "array", |
| 1819 | + "items": { |
| 1820 | + "$ref": "#/definitions/https%3A~1~1gitguardian.com~1inventory-config/$defs/FilteringRule" |
| 1821 | + }, |
| 1822 | + "nullable": true |
| 1823 | + }, |
| 1824 | + "include": { |
| 1825 | + "type": "array", |
| 1826 | + "items": { |
| 1827 | + "$ref": "#/definitions/https%3A~1~1gitguardian.com~1inventory-config/$defs/FilteringRule" |
| 1828 | + }, |
| 1829 | + "nullable": true |
| 1830 | + }, |
| 1831 | + "url": { |
| 1832 | + "description": "GitLab instance URL (e.g., \"https://gitlab.com\" or \"https://gitlab.example.com\")", |
| 1833 | + "type": "string", |
| 1834 | + "format": "uri" |
| 1835 | + } |
| 1836 | + } |
| 1837 | + }, |
1700 | 1838 | "HashiCorpVaultConfig": { |
1701 | 1839 | "type": "object", |
1702 | 1840 | "required": [ |
|
0 commit comments