@techdocs/cli 0.0.0-nightly-20250101023613 → 0.0.0-nightly-20250102023150

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -127,108 +127,6 @@
127
127
  },
128
128
  "packageName": "@backstage/plugin-permission-common"
129
129
  },
130
- {
131
- "path": "../core-components/config.d.ts",
132
- "value": {
133
- "type": "object",
134
- "properties": {
135
- "auth": {
136
- "type": "object",
137
- "properties": {
138
- "autologout": {
139
- "description": "Autologout feature configuration",
140
- "type": "object",
141
- "properties": {
142
- "enabled": {
143
- "description": "Enable or disable the autologout feature",
144
- "visibility": "frontend",
145
- "type": "boolean"
146
- },
147
- "idleTimeoutMinutes": {
148
- "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
149
- "visibility": "frontend",
150
- "type": "number"
151
- },
152
- "promptBeforeIdleSeconds": {
153
- "description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
154
- "visibility": "frontend",
155
- "type": "number"
156
- },
157
- "useWorkerTimers": {
158
- "description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
159
- "visibility": "frontend",
160
- "type": "boolean"
161
- },
162
- "logoutIfDisconnected": {
163
- "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
164
- "visibility": "frontend",
165
- "type": "boolean"
166
- }
167
- }
168
- }
169
- }
170
- }
171
- },
172
- "$schema": "http://json-schema.org/draft-07/schema#"
173
- },
174
- "packageName": "@backstage/core-components"
175
- },
176
- {
177
- "path": "../../plugins/techdocs/config.d.ts",
178
- "value": {
179
- "type": "object",
180
- "properties": {
181
- "techdocs": {
182
- "description": "Configuration options for the techdocs plugin",
183
- "type": "object",
184
- "properties": {
185
- "builder": {
186
- "description": "Documentation building process depends on the builder attr",
187
- "visibility": "frontend",
188
- "enum": [
189
- "external",
190
- "local"
191
- ],
192
- "type": "string"
193
- },
194
- "legacyUseCaseSensitiveTripletPaths": {
195
- "description": "Allows fallback to case-sensitive triplets in case of migration issues.",
196
- "visibility": "frontend",
197
- "type": "boolean"
198
- },
199
- "sanitizer": {
200
- "type": "object",
201
- "properties": {
202
- "allowedIframeHosts": {
203
- "description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
204
- "visibility": "frontend",
205
- "type": "array",
206
- "items": {
207
- "type": "string"
208
- }
209
- },
210
- "allowedCustomElementTagNameRegExp": {
211
- "description": "Allows listed custom element tag name regex\nExample:\n allowedCustomElementTagNameRegExp: '^backstage-'\n this will allow all custom elements with tag name matching `^backstage-` like <backstage-custom-element /> etc.",
212
- "visibility": "frontend",
213
- "type": "string"
214
- },
215
- "allowedCustomElementAttributeNameRegExp": {
216
- "description": "Allows listed custom element attribute name regex\nExample:\n allowedCustomElementAttributeNameRegExp: 'attribute1|attribute2'\n this will allow all custom element attributes matching `attribute1` or `attribute2` like <backstage-custom-element attribute1=\"yes\" attribute2/>",
217
- "visibility": "frontend",
218
- "type": "string"
219
- }
220
- }
221
- }
222
- }
223
- }
224
- },
225
- "required": [
226
- "techdocs"
227
- ],
228
- "$schema": "http://json-schema.org/draft-07/schema#"
229
- },
230
- "packageName": "@backstage/plugin-techdocs"
231
- },
232
130
  {
233
131
  "path": "../core-app-api/config.d.ts",
234
132
  "value": {
@@ -459,6 +357,108 @@
459
357
  },
460
358
  "packageName": "@backstage/core-app-api"
461
359
  },
360
+ {
361
+ "path": "../core-components/config.d.ts",
362
+ "value": {
363
+ "type": "object",
364
+ "properties": {
365
+ "auth": {
366
+ "type": "object",
367
+ "properties": {
368
+ "autologout": {
369
+ "description": "Autologout feature configuration",
370
+ "type": "object",
371
+ "properties": {
372
+ "enabled": {
373
+ "description": "Enable or disable the autologout feature",
374
+ "visibility": "frontend",
375
+ "type": "boolean"
376
+ },
377
+ "idleTimeoutMinutes": {
378
+ "description": "Number of minutes after which the inactive user is logged out automatically.\nDefault is 60 minutes (1 hour)",
379
+ "visibility": "frontend",
380
+ "type": "number"
381
+ },
382
+ "promptBeforeIdleSeconds": {
383
+ "description": "Number of seconds before the idle timeout where the user will be asked if it's still active.\nA dialog will be shown.\nDefault is 10 seconds.\nSet to 0 seconds to disable the prompt.",
384
+ "visibility": "frontend",
385
+ "type": "number"
386
+ },
387
+ "useWorkerTimers": {
388
+ "description": "Enable/disable the usage of worker thread timers instead of main thread timers.\nDefault is true.\nIf you experience some browser incompatibility, you may try to set this to false.",
389
+ "visibility": "frontend",
390
+ "type": "boolean"
391
+ },
392
+ "logoutIfDisconnected": {
393
+ "description": "Enable/disable the automatic logout also on users that are logged in but with no Backstage tabs open.\nDefault is true.",
394
+ "visibility": "frontend",
395
+ "type": "boolean"
396
+ }
397
+ }
398
+ }
399
+ }
400
+ }
401
+ },
402
+ "$schema": "http://json-schema.org/draft-07/schema#"
403
+ },
404
+ "packageName": "@backstage/core-components"
405
+ },
406
+ {
407
+ "path": "../../plugins/techdocs/config.d.ts",
408
+ "value": {
409
+ "type": "object",
410
+ "properties": {
411
+ "techdocs": {
412
+ "description": "Configuration options for the techdocs plugin",
413
+ "type": "object",
414
+ "properties": {
415
+ "builder": {
416
+ "description": "Documentation building process depends on the builder attr",
417
+ "visibility": "frontend",
418
+ "enum": [
419
+ "external",
420
+ "local"
421
+ ],
422
+ "type": "string"
423
+ },
424
+ "legacyUseCaseSensitiveTripletPaths": {
425
+ "description": "Allows fallback to case-sensitive triplets in case of migration issues.",
426
+ "visibility": "frontend",
427
+ "type": "boolean"
428
+ },
429
+ "sanitizer": {
430
+ "type": "object",
431
+ "properties": {
432
+ "allowedIframeHosts": {
433
+ "description": "Allows iframe tag only for listed hosts\nExample:\n allowedIframeHosts: [\"example.com\"]\n this will allow all iframes with the host `example.com` in the src attribute",
434
+ "visibility": "frontend",
435
+ "type": "array",
436
+ "items": {
437
+ "type": "string"
438
+ }
439
+ },
440
+ "allowedCustomElementTagNameRegExp": {
441
+ "description": "Allows listed custom element tag name regex\nExample:\n allowedCustomElementTagNameRegExp: '^backstage-'\n this will allow all custom elements with tag name matching `^backstage-` like <backstage-custom-element /> etc.",
442
+ "visibility": "frontend",
443
+ "type": "string"
444
+ },
445
+ "allowedCustomElementAttributeNameRegExp": {
446
+ "description": "Allows listed custom element attribute name regex\nExample:\n allowedCustomElementAttributeNameRegExp: 'attribute1|attribute2'\n this will allow all custom element attributes matching `attribute1` or `attribute2` like <backstage-custom-element attribute1=\"yes\" attribute2/>",
447
+ "visibility": "frontend",
448
+ "type": "string"
449
+ }
450
+ }
451
+ }
452
+ }
453
+ }
454
+ },
455
+ "required": [
456
+ "techdocs"
457
+ ],
458
+ "$schema": "http://json-schema.org/draft-07/schema#"
459
+ },
460
+ "packageName": "@backstage/plugin-techdocs"
461
+ },
462
462
  {
463
463
  "path": "../integration/config.d.ts",
464
464
  "value": {
@@ -1532,697 +1532,658 @@
1532
1532
  "packageName": "@backstage/core-components"
1533
1533
  },
1534
1534
  {
1535
- "path": "../../plugins/auth-backend-module-atlassian-provider/config.d.ts",
1535
+ "path": "../backend-app-api/config.d.ts",
1536
1536
  "value": {
1537
1537
  "type": "object",
1538
1538
  "properties": {
1539
- "auth": {
1539
+ "backend": {
1540
1540
  "type": "object",
1541
1541
  "properties": {
1542
- "providers": {
1543
- "type": "object",
1544
- "properties": {
1545
- "atlassian": {
1546
- "visibility": "frontend",
1542
+ "packages": {
1543
+ "description": "Used by the feature discovery service",
1544
+ "anyOf": [
1545
+ {
1547
1546
  "type": "object",
1548
- "additionalProperties": {
1549
- "type": "object",
1550
- "properties": {
1551
- "clientId": {
1552
- "type": "string"
1553
- },
1554
- "clientSecret": {
1555
- "visibility": "secret",
1556
- "type": "string"
1557
- },
1558
- "audience": {
1547
+ "properties": {
1548
+ "include": {
1549
+ "type": "array",
1550
+ "items": {
1559
1551
  "type": "string"
1560
- },
1561
- "callbackUrl": {
1552
+ }
1553
+ },
1554
+ "exclude": {
1555
+ "type": "array",
1556
+ "items": {
1562
1557
  "type": "string"
1563
- },
1564
- "additionalScopes": {
1565
- "anyOf": [
1566
- {
1567
- "type": "array",
1568
- "items": {
1569
- "type": "string"
1570
- }
1571
- },
1572
- {
1573
- "type": "string"
1574
- }
1575
- ]
1576
- },
1577
- "signIn": {
1578
- "type": "object",
1579
- "properties": {
1580
- "resolvers": {
1581
- "type": "array",
1582
- "items": {
1583
- "anyOf": [
1584
- {
1585
- "type": "object",
1586
- "properties": {
1587
- "resolver": {
1588
- "type": "string",
1589
- "const": "usernameMatchingUserEntityName"
1590
- }
1591
- },
1592
- "required": [
1593
- "resolver"
1594
- ]
1595
- },
1596
- {
1597
- "type": "object",
1598
- "properties": {
1599
- "resolver": {
1600
- "type": "string",
1601
- "const": "emailLocalPartMatchingUserEntityName"
1602
- },
1603
- "allowedDomains": {
1604
- "type": "array",
1605
- "items": {
1606
- "type": "string"
1607
- }
1608
- }
1609
- },
1610
- "required": [
1611
- "resolver"
1612
- ]
1613
- },
1614
- {
1615
- "type": "object",
1616
- "properties": {
1617
- "resolver": {
1618
- "type": "string",
1619
- "const": "emailMatchingUserEntityProfileEmail"
1620
- }
1621
- },
1622
- "required": [
1623
- "resolver"
1624
- ]
1625
- }
1626
- ]
1627
- }
1628
- }
1629
- },
1630
- "required": [
1631
- "resolvers"
1632
- ]
1633
1558
  }
1634
- },
1635
- "required": [
1636
- "clientId",
1637
- "clientSecret"
1638
- ]
1559
+ }
1639
1560
  }
1561
+ },
1562
+ {
1563
+ "const": "all",
1564
+ "type": "string"
1640
1565
  }
1641
- }
1566
+ ]
1642
1567
  }
1643
1568
  }
1644
1569
  }
1645
1570
  },
1646
1571
  "$schema": "http://json-schema.org/draft-07/schema#"
1647
1572
  },
1648
- "packageName": "@backstage/plugin-auth-backend-module-atlassian-provider"
1573
+ "packageName": "@backstage/backend-app-api"
1649
1574
  },
1650
1575
  {
1651
- "path": "../../plugins/auth-backend-module-auth0-provider/config.d.ts",
1576
+ "path": "../backend-defaults/config.d.ts",
1652
1577
  "value": {
1653
1578
  "type": "object",
1654
1579
  "properties": {
1655
- "auth": {
1580
+ "app": {
1656
1581
  "type": "object",
1657
1582
  "properties": {
1658
- "providers": {
1583
+ "baseUrl": {
1584
+ "type": "string"
1585
+ }
1586
+ },
1587
+ "required": [
1588
+ "baseUrl"
1589
+ ]
1590
+ },
1591
+ "backend": {
1592
+ "type": "object",
1593
+ "properties": {
1594
+ "baseUrl": {
1595
+ "description": "The full base URL of the backend, as seen from the browser's point of\nview as it makes calls to the backend.",
1596
+ "type": "string"
1597
+ },
1598
+ "lifecycle": {
1659
1599
  "type": "object",
1660
1600
  "properties": {
1661
- "auth0": {
1662
- "visibility": "frontend",
1601
+ "startupRequestPauseTimeout": {
1602
+ "description": "The maximum time that paused requests will wait for the service to start, before returning an error.\nDefaults to 5 seconds\nSupported formats:\n- A string in the format of '1d', '2 seconds' etc. as supported by the `ms`\n library.\n- A standard ISO formatted duration string, e.g. 'P2DT6H' or 'PT1M'.\n- An object with individual units (in plural) as keys, e.g. `{ days: 2, hours: 6 }`."
1603
+ },
1604
+ "serverShutdownDelay": {
1605
+ "description": "The minimum time that the HTTP server will delay the shutdown of the backend. During this delay health checks will be set to failing, allowing traffic to drain.\nDefaults to 0 seconds.\nSupported formats:\n- A string in the format of '1d', '2 seconds' etc. as supported by the `ms`\n library.\n- A standard ISO formatted duration string, e.g. 'P2DT6H' or 'PT1M'.\n- An object with individual units (in plural) as keys, e.g. `{ days: 2, hours: 6 }`."
1606
+ }
1607
+ }
1608
+ },
1609
+ "listen": {
1610
+ "description": "Address that the backend should listen to.",
1611
+ "anyOf": [
1612
+ {
1663
1613
  "type": "object",
1664
- "additionalProperties": {
1665
- "type": "object",
1666
- "properties": {
1667
- "clientId": {
1668
- "type": "string"
1669
- },
1670
- "clientSecret": {
1671
- "visibility": "secret",
1672
- "type": "string"
1673
- },
1674
- "domain": {
1675
- "type": "string"
1676
- },
1677
- "callbackUrl": {
1678
- "type": "string"
1679
- },
1680
- "audience": {
1681
- "type": "string"
1682
- },
1683
- "connection": {
1684
- "type": "string"
1685
- },
1686
- "connectionScope": {
1687
- "type": "string"
1688
- }
1614
+ "properties": {
1615
+ "host": {
1616
+ "description": "Address of the interface that the backend should bind to.",
1617
+ "type": "string"
1689
1618
  },
1690
- "required": [
1691
- "clientId",
1692
- "clientSecret",
1693
- "domain"
1694
- ]
1619
+ "port": {
1620
+ "description": "Port that the backend should listen to.",
1621
+ "type": [
1622
+ "string",
1623
+ "number"
1624
+ ]
1625
+ }
1695
1626
  }
1627
+ },
1628
+ {
1629
+ "type": "string"
1696
1630
  }
1697
- }
1698
- }
1699
- }
1700
- }
1701
- },
1702
- "$schema": "http://json-schema.org/draft-07/schema#"
1703
- },
1704
- "packageName": "@backstage/plugin-auth-backend-module-auth0-provider"
1705
- },
1706
- {
1707
- "path": "../../plugins/auth-backend-module-bitbucket-provider/config.d.ts",
1708
- "value": {
1709
- "type": "object",
1710
- "properties": {
1711
- "auth": {
1712
- "type": "object",
1713
- "properties": {
1714
- "providers": {
1631
+ ]
1632
+ },
1633
+ "https": {
1634
+ "description": "HTTPS configuration for the backend. If omitted the backend will serve HTTP.\n\nSetting this to `true` will cause self-signed certificates to be generated, which\ncan be useful for local development or other non-production scenarios.",
1635
+ "anyOf": [
1636
+ {
1637
+ "type": "object",
1638
+ "properties": {
1639
+ "certificate": {
1640
+ "description": "Certificate configuration",
1641
+ "type": "object",
1642
+ "properties": {
1643
+ "cert": {
1644
+ "description": "PEM encoded certificate. Use $file to load in a file",
1645
+ "type": "string"
1646
+ },
1647
+ "key": {
1648
+ "description": "PEM encoded certificate key. Use $file to load in a file.",
1649
+ "visibility": "secret",
1650
+ "type": "string"
1651
+ }
1652
+ },
1653
+ "required": [
1654
+ "cert",
1655
+ "key"
1656
+ ]
1657
+ }
1658
+ }
1659
+ },
1660
+ {
1661
+ "const": true,
1662
+ "type": "boolean"
1663
+ }
1664
+ ]
1665
+ },
1666
+ "auth": {
1667
+ "description": "Options used by the default auth, httpAuth and userInfo services.",
1715
1668
  "type": "object",
1716
1669
  "properties": {
1717
- "bitbucket": {
1718
- "visibility": "frontend",
1719
- "type": "object",
1720
- "additionalProperties": {
1670
+ "keys": {
1671
+ "description": "Keys shared by all backends for signing and validating backend tokens.",
1672
+ "deprecated": "this will be removed when the backwards compatibility is no longer needed with backend-common",
1673
+ "type": "array",
1674
+ "items": {
1721
1675
  "type": "object",
1722
1676
  "properties": {
1723
- "clientId": {
1724
- "type": "string"
1725
- },
1726
- "clientSecret": {
1677
+ "secret": {
1678
+ "description": "Secret for generating tokens. Should be a base64 string, recommended\nlength is 24 bytes.",
1727
1679
  "visibility": "secret",
1728
1680
  "type": "string"
1681
+ }
1682
+ },
1683
+ "required": [
1684
+ "secret"
1685
+ ]
1686
+ }
1687
+ },
1688
+ "dangerouslyDisableDefaultAuthPolicy": {
1689
+ "description": "This disables the otherwise default auth policy, which requires all\nrequests to be authenticated with either user or service credentials.\n\nDisabling this check means that the backend will no longer block\nunauthenticated requests, but instead allow them to pass through to\nplugins.\n\nIf permissions are enabled, unauthenticated requests will be treated\nexactly as such, leaving it to the permission policy to determine what\npermissions should be allowed for an unauthenticated identity. Note\nthat this will also apply to service-to-service calls between plugins\nunless you configure credentials for service calls.",
1690
+ "type": "boolean"
1691
+ },
1692
+ "pluginKeyStore": {
1693
+ "description": "Controls how to store keys for plugin-to-plugin auth",
1694
+ "anyOf": [
1695
+ {
1696
+ "type": "object",
1697
+ "properties": {
1698
+ "type": {
1699
+ "type": "string",
1700
+ "const": "database"
1701
+ }
1729
1702
  },
1730
- "additionalScopes": {
1731
- "anyOf": [
1732
- {
1733
- "type": "array",
1734
- "items": {
1735
- "type": "string"
1736
- }
1737
- },
1738
- {
1739
- "type": "string"
1740
- }
1741
- ]
1742
- },
1743
- "signIn": {
1744
- "type": "object",
1745
- "properties": {
1746
- "resolvers": {
1747
- "type": "array",
1748
- "items": {
1749
- "anyOf": [
1750
- {
1751
- "type": "object",
1752
- "properties": {
1753
- "resolver": {
1754
- "type": "string",
1755
- "const": "userIdMatchingUserEntityAnnotation"
1756
- }
1703
+ "required": [
1704
+ "type"
1705
+ ]
1706
+ },
1707
+ {
1708
+ "type": "object",
1709
+ "properties": {
1710
+ "type": {
1711
+ "type": "string",
1712
+ "const": "static"
1713
+ },
1714
+ "static": {
1715
+ "type": "object",
1716
+ "properties": {
1717
+ "keys": {
1718
+ "description": "Must be declared at least once and the first one will be used for signing.",
1719
+ "type": "array",
1720
+ "items": {
1721
+ "type": "object",
1722
+ "properties": {
1723
+ "publicKeyFile": {
1724
+ "description": "Path to the public key file in the SPKI format. Should be an absolute path.",
1725
+ "type": "string"
1757
1726
  },
1758
- "required": [
1759
- "resolver"
1760
- ]
1727
+ "privateKeyFile": {
1728
+ "description": "Path to the matching private key file in the PKCS#8 format. Should be an absolute path.\n\nThe first array entry must specify a private key file, the rest must not.",
1729
+ "type": "string"
1730
+ },
1731
+ "keyId": {
1732
+ "description": "ID to uniquely identify this key within the JWK set.",
1733
+ "type": "string"
1734
+ },
1735
+ "algorithm": {
1736
+ "description": "JWS \"alg\" (Algorithm) Header Parameter value. Defaults to ES256.\nMust match the algorithm used to generate the keys in the provided files",
1737
+ "type": "string"
1738
+ }
1761
1739
  },
1762
- {
1763
- "type": "object",
1764
- "properties": {
1765
- "resolver": {
1766
- "type": "string",
1767
- "const": "emailLocalPartMatchingUserEntityName"
1768
- },
1769
- "allowedDomains": {
1740
+ "required": [
1741
+ "keyId",
1742
+ "publicKeyFile"
1743
+ ]
1744
+ }
1745
+ }
1746
+ },
1747
+ "required": [
1748
+ "keys"
1749
+ ]
1750
+ }
1751
+ },
1752
+ "required": [
1753
+ "static",
1754
+ "type"
1755
+ ]
1756
+ }
1757
+ ]
1758
+ },
1759
+ "externalAccess": {
1760
+ "description": "Configures methods of external access, ie ways for callers outside of\nthe Backstage ecosystem to get authorized for access to APIs that do\nnot permit unauthorized access.",
1761
+ "type": "array",
1762
+ "items": {
1763
+ "anyOf": [
1764
+ {
1765
+ "type": "object",
1766
+ "properties": {
1767
+ "type": {
1768
+ "description": "This is the legacy service-to-service access method, where a set\nof static keys were shared among plugins and used for symmetric\nsigning and verification. These correspond to the old\n`backend.auth.keys` set and retain their behavior for backwards\ncompatibility. Please migrate to other access methods when\npossible.\n\nCallers generate JWT tokens with the following payload:\n\n```json\n{\n \"sub\": \"backstage-plugin\",\n \"exp\": <epoch seconds one hour in the future>\n}\n```\n\nAnd sign them with HS256, using the base64 decoded secret. The\ntokens are then passed along with requests in the Authorization\nheader:\n\n```\nAuthorization: Bearer eyJhbGciOiJIUzI...\n```",
1769
+ "type": "string",
1770
+ "const": "legacy"
1771
+ },
1772
+ "options": {
1773
+ "type": "object",
1774
+ "properties": {
1775
+ "secret": {
1776
+ "description": "Any set of base64 encoded random bytes to be used as both the\nsigning and verification key. Should be sufficiently long so as\nnot to be easy to guess by brute force.\n\nCan be generated eg using\n\n```sh\nnode -p 'require(\"crypto\").randomBytes(24).toString(\"base64\")'\n```",
1777
+ "visibility": "secret",
1778
+ "type": "string"
1779
+ },
1780
+ "subject": {
1781
+ "description": "Sets the subject of the principal, when matching this token.\nUseful for debugging and tracking purposes.",
1782
+ "type": "string"
1783
+ }
1784
+ },
1785
+ "required": [
1786
+ "secret",
1787
+ "subject"
1788
+ ]
1789
+ },
1790
+ "accessRestrictions": {
1791
+ "description": "Restricts what types of access that are permitted for this access\nmethod. If no access restrictions are given, it'll have unlimited\naccess. This access restriction applies for the framework level;\nindividual plugins may have their own access control mechanisms\non top of this.",
1792
+ "type": "array",
1793
+ "items": {
1794
+ "type": "object",
1795
+ "properties": {
1796
+ "plugin": {
1797
+ "description": "Permit access to make requests to this plugin.\n\nCan be further refined by setting additional fields below.",
1798
+ "type": "string"
1799
+ },
1800
+ "permission": {
1801
+ "description": "If given, this method is limited to only performing actions\nwith these named permissions in this plugin.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
1802
+ "anyOf": [
1803
+ {
1770
1804
  "type": "array",
1771
1805
  "items": {
1772
1806
  "type": "string"
1773
1807
  }
1808
+ },
1809
+ {
1810
+ "type": "string"
1774
1811
  }
1775
- },
1776
- "required": [
1777
- "resolver"
1778
1812
  ]
1779
1813
  },
1780
- {
1814
+ "permissionAttribute": {
1815
+ "description": "If given, this method is limited to only performing actions\nwhose permissions have these attributes.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
1781
1816
  "type": "object",
1782
1817
  "properties": {
1783
- "resolver": {
1784
- "type": "string",
1785
- "const": "emailMatchingUserEntityProfileEmail"
1818
+ "action": {
1819
+ "description": "One of more of 'create', 'read', 'update', or 'delete'.",
1820
+ "anyOf": [
1821
+ {
1822
+ "type": "array",
1823
+ "items": {
1824
+ "type": "string"
1825
+ }
1826
+ },
1827
+ {
1828
+ "type": "string"
1829
+ }
1830
+ ]
1786
1831
  }
1787
- },
1788
- "required": [
1789
- "resolver"
1790
- ]
1832
+ }
1791
1833
  }
1834
+ },
1835
+ "required": [
1836
+ "plugin"
1792
1837
  ]
1793
1838
  }
1794
1839
  }
1795
1840
  },
1796
1841
  "required": [
1797
- "resolvers"
1842
+ "options",
1843
+ "type"
1798
1844
  ]
1799
- }
1800
- },
1801
- "required": [
1802
- "clientId",
1803
- "clientSecret"
1804
- ]
1805
- }
1806
- }
1807
- }
1808
- }
1809
- }
1810
- }
1811
- },
1812
- "$schema": "http://json-schema.org/draft-07/schema#"
1813
- },
1814
- "packageName": "@backstage/plugin-auth-backend-module-bitbucket-provider"
1815
- },
1816
- {
1817
- "path": "../../plugins/auth-backend-module-bitbucket-server-provider/config.d.ts",
1818
- "value": {
1819
- "type": "object",
1820
- "properties": {
1821
- "auth": {
1822
- "type": "object",
1823
- "properties": {
1824
- "providers": {
1825
- "type": "object",
1826
- "properties": {
1827
- "bitbucketServer": {
1828
- "visibility": "frontend",
1829
- "type": "object",
1830
- "additionalProperties": {
1831
- "type": "object",
1832
- "properties": {
1833
- "clientId": {
1834
- "type": "string"
1835
- },
1836
- "clientSecret": {
1837
- "visibility": "secret",
1838
- "type": "string"
1839
- },
1840
- "host": {
1841
- "type": "string"
1842
1845
  },
1843
- "callbackUrl": {
1844
- "type": "string"
1845
- }
1846
- },
1847
- "required": [
1848
- "clientId",
1849
- "clientSecret",
1850
- "host"
1851
- ]
1852
- }
1853
- }
1854
- }
1855
- }
1856
- }
1857
- }
1858
- },
1859
- "$schema": "http://json-schema.org/draft-07/schema#"
1860
- },
1861
- "packageName": "@backstage/plugin-auth-backend-module-bitbucket-server-provider"
1862
- },
1863
- {
1864
- "path": "../../plugins/auth-backend-module-cloudflare-access-provider/config.d.ts",
1865
- "value": {
1866
- "type": "object",
1867
- "properties": {
1868
- "auth": {
1869
- "type": "object",
1870
- "properties": {
1871
- "providers": {
1872
- "type": "object",
1873
- "properties": {
1874
- "cfaccess": {
1875
- "visibility": "frontend",
1876
- "type": "object",
1877
- "properties": {
1878
- "teamName": {
1879
- "type": "string"
1880
- },
1881
- "serviceTokens": {
1882
- "deepVisibility": "secret",
1883
- "type": "array",
1884
- "items": {
1846
+ {
1885
1847
  "type": "object",
1886
1848
  "properties": {
1887
- "token": {
1888
- "type": "string"
1849
+ "type": {
1850
+ "description": "This access method consists of random static tokens that can be\nhanded out to callers.\n\nThe tokens are then passed along verbatim with requests in the\nAuthorization header:\n\n```\nAuthorization: Bearer eZv5o+fW3KnR3kVabMW4ZcDNLPl8nmMW\n```",
1851
+ "type": "string",
1852
+ "const": "static"
1889
1853
  },
1890
- "subject": {
1891
- "type": "string"
1892
- }
1893
- },
1894
- "required": [
1895
- "subject",
1896
- "token"
1897
- ]
1898
- }
1899
- },
1900
- "jwtHeaderName": {
1901
- "type": "string"
1902
- },
1903
- "authorizationCookieName": {
1904
- "type": "string"
1905
- },
1906
- "signIn": {
1907
- "type": "object",
1908
- "properties": {
1909
- "resolvers": {
1910
- "type": "array",
1911
- "items": {
1912
- "anyOf": [
1913
- {
1914
- "type": "object",
1915
- "properties": {
1916
- "resolver": {
1917
- "type": "string",
1918
- "const": "emailLocalPartMatchingUserEntityName"
1919
- },
1920
- "allowedDomains": {
1921
- "type": "array",
1922
- "items": {
1854
+ "options": {
1855
+ "type": "object",
1856
+ "properties": {
1857
+ "token": {
1858
+ "description": "A raw token that can be any string, but for security reasons\nshould be sufficiently long so as not to be easy to guess by\nbrute force.\n\nCan be generated eg using\n\n```sh\nnode -p 'require(\"crypto\").randomBytes(24).toString(\"base64\")'\n```\n\nSince the tokens can be any string, you are free to add\nadditional identifying data to them if you like. For example,\nadding a `freben-local-dev-` prefix for debugging purposes to a\ntoken that you know will be handed out for use as a personal\naccess token during development.",
1859
+ "visibility": "secret",
1860
+ "type": "string"
1861
+ },
1862
+ "subject": {
1863
+ "description": "Sets the subject of the principal, when matching this token.\nUseful for debugging and tracking purposes.",
1864
+ "type": "string"
1865
+ }
1866
+ },
1867
+ "required": [
1868
+ "subject",
1869
+ "token"
1870
+ ]
1871
+ },
1872
+ "accessRestrictions": {
1873
+ "description": "Restricts what types of access that are permitted for this access\nmethod. If no access restrictions are given, it'll have unlimited\naccess. This access restriction applies for the framework level;\nindividual plugins may have their own access control mechanisms\non top of this.",
1874
+ "type": "array",
1875
+ "items": {
1876
+ "type": "object",
1877
+ "properties": {
1878
+ "plugin": {
1879
+ "description": "Permit access to make requests to this plugin.\n\nCan be further refined by setting additional fields below.",
1880
+ "type": "string"
1881
+ },
1882
+ "permission": {
1883
+ "description": "If given, this method is limited to only performing actions\nwith these named permissions in this plugin.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
1884
+ "anyOf": [
1885
+ {
1886
+ "type": "array",
1887
+ "items": {
1888
+ "type": "string"
1889
+ }
1890
+ },
1891
+ {
1923
1892
  "type": "string"
1924
1893
  }
1925
- }
1894
+ ]
1926
1895
  },
1927
- "required": [
1928
- "resolver"
1929
- ]
1930
- },
1931
- {
1932
- "type": "object",
1933
- "properties": {
1934
- "resolver": {
1935
- "type": "string",
1936
- "const": "emailMatchingUserEntityProfileEmail"
1896
+ "permissionAttribute": {
1897
+ "description": "If given, this method is limited to only performing actions\nwhose permissions have these attributes.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
1898
+ "type": "object",
1899
+ "properties": {
1900
+ "action": {
1901
+ "description": "One of more of 'create', 'read', 'update', or 'delete'.",
1902
+ "anyOf": [
1903
+ {
1904
+ "type": "array",
1905
+ "items": {
1906
+ "type": "string"
1907
+ }
1908
+ },
1909
+ {
1910
+ "type": "string"
1911
+ }
1912
+ ]
1913
+ }
1937
1914
  }
1938
- },
1939
- "required": [
1940
- "resolver"
1941
- ]
1942
- }
1943
- ]
1915
+ }
1916
+ },
1917
+ "required": [
1918
+ "plugin"
1919
+ ]
1920
+ }
1944
1921
  }
1945
- }
1922
+ },
1923
+ "required": [
1924
+ "options",
1925
+ "type"
1926
+ ]
1946
1927
  },
1947
- "required": [
1948
- "resolvers"
1949
- ]
1950
- }
1951
- },
1952
- "required": [
1953
- "teamName"
1954
- ]
1955
- },
1956
- "backstageTokenExpiration": {
1957
- "description": "The backstage token expiration."
1958
- }
1959
- }
1960
- }
1961
- }
1962
- }
1963
- },
1964
- "$schema": "http://json-schema.org/draft-07/schema#"
1965
- },
1966
- "packageName": "@backstage/plugin-auth-backend-module-cloudflare-access-provider"
1967
- },
1968
- {
1969
- "path": "../../plugins/auth-backend-module-gcp-iap-provider/config.d.ts",
1970
- "value": {
1971
- "type": "object",
1972
- "properties": {
1973
- "auth": {
1974
- "type": "object",
1975
- "properties": {
1976
- "providers": {
1977
- "type": "object",
1978
- "properties": {
1979
- "gcpIap": {
1980
- "description": "Configuration for the Google Cloud Platform Identity-Aware Proxy (IAP) auth provider.",
1981
- "type": "object",
1982
- "properties": {
1983
- "audience": {
1984
- "description": "The audience to use when validating incoming JWT tokens.\nSee https://backstage.io/docs/auth/google/gcp-iap-auth",
1985
- "type": "string"
1986
- },
1987
- "jwtHeader": {
1988
- "description": "The name of the header to read the JWT token from, defaults to `'x-goog-iap-jwt-assertion'`.",
1989
- "type": "string"
1990
- },
1991
- "signIn": {
1992
- "type": "object",
1993
- "properties": {
1994
- "resolvers": {
1995
- "type": "array",
1996
- "items": {
1997
- "anyOf": [
1998
- {
1999
- "type": "object",
2000
- "properties": {
2001
- "resolver": {
2002
- "type": "string",
2003
- "const": "emailMatchingUserEntityAnnotation"
2004
- }
2005
- },
2006
- "required": [
2007
- "resolver"
2008
- ]
1928
+ {
1929
+ "type": "object",
1930
+ "properties": {
1931
+ "type": {
1932
+ "description": "This access method consists of a JWKS endpoint that can be used to\nverify JWT tokens.\n\nCallers generate JWT tokens via 3rd party tooling\nand pass them in the Authorization header:\n\n```\nAuthorization: Bearer eZv5o+fW3KnR3kVabMW4ZcDNLPl8nmMW\n```",
1933
+ "type": "string",
1934
+ "const": "jwks"
1935
+ },
1936
+ "options": {
1937
+ "type": "object",
1938
+ "properties": {
1939
+ "url": {
1940
+ "description": "The full URL of the JWKS endpoint.",
1941
+ "type": "string"
2009
1942
  },
2010
- {
2011
- "type": "object",
2012
- "properties": {
2013
- "resolver": {
2014
- "type": "string",
2015
- "const": "idMatchingUserEntityAnnotation"
1943
+ "algorithm": {
1944
+ "description": "Sets the algorithm(s) that should be used to verify the JWT tokens.\nThe passed JWTs must have been signed using one of the listed algorithms.",
1945
+ "anyOf": [
1946
+ {
1947
+ "type": "array",
1948
+ "items": {
1949
+ "type": "string"
1950
+ }
1951
+ },
1952
+ {
1953
+ "type": "string"
2016
1954
  }
2017
- },
2018
- "required": [
2019
- "resolver"
2020
1955
  ]
2021
1956
  },
2022
- {
2023
- "type": "object",
2024
- "properties": {
2025
- "resolver": {
2026
- "type": "string",
2027
- "const": "emailLocalPartMatchingUserEntityName"
2028
- },
2029
- "allowedDomains": {
1957
+ "issuer": {
1958
+ "description": "Sets the issuer(s) that should be used to verify the JWT tokens.\nPassed JWTs must have an `iss` claim which matches one of the specified issuers.",
1959
+ "anyOf": [
1960
+ {
2030
1961
  "type": "array",
2031
1962
  "items": {
2032
1963
  "type": "string"
2033
1964
  }
1965
+ },
1966
+ {
1967
+ "type": "string"
2034
1968
  }
2035
- },
2036
- "required": [
2037
- "resolver"
2038
1969
  ]
2039
1970
  },
2040
- {
2041
- "type": "object",
2042
- "properties": {
2043
- "resolver": {
2044
- "type": "string",
2045
- "const": "emailMatchingUserEntityProfileEmail"
1971
+ "audience": {
1972
+ "description": "Sets the audience(s) that should be used to verify the JWT tokens.\nThe passed JWTs must have an \"aud\" claim that matches one of the audiences specified,\nor have no audience specified.",
1973
+ "anyOf": [
1974
+ {
1975
+ "type": "array",
1976
+ "items": {
1977
+ "type": "string"
1978
+ }
1979
+ },
1980
+ {
1981
+ "type": "string"
2046
1982
  }
2047
- },
2048
- "required": [
2049
- "resolver"
2050
1983
  ]
1984
+ },
1985
+ "subjectPrefix": {
1986
+ "description": "Sets an optional subject prefix. Passes the subject to called plugins.\nUseful for debugging and tracking purposes.",
1987
+ "type": "string"
2051
1988
  }
1989
+ },
1990
+ "required": [
1991
+ "url"
2052
1992
  ]
2053
- }
2054
- }
2055
- },
2056
- "required": [
2057
- "resolvers"
2058
- ]
2059
- }
2060
- },
2061
- "required": [
2062
- "audience"
2063
- ]
2064
- }
2065
- }
2066
- }
2067
- }
2068
- }
2069
- },
2070
- "$schema": "http://json-schema.org/draft-07/schema#"
2071
- },
2072
- "packageName": "@backstage/plugin-auth-backend-module-gcp-iap-provider"
2073
- },
2074
- {
2075
- "path": "../../plugins/auth-backend-module-github-provider/config.d.ts",
2076
- "value": {
2077
- "type": "object",
2078
- "properties": {
2079
- "auth": {
2080
- "type": "object",
2081
- "properties": {
2082
- "providers": {
2083
- "type": "object",
2084
- "properties": {
2085
- "github": {
2086
- "visibility": "frontend",
2087
- "type": "object",
2088
- "additionalProperties": {
2089
- "type": "object",
2090
- "properties": {
2091
- "clientId": {
2092
- "type": "string"
2093
- },
2094
- "clientSecret": {
2095
- "visibility": "secret",
2096
- "type": "string"
2097
- },
2098
- "callbackUrl": {
2099
- "type": "string"
2100
- },
2101
- "enterpriseInstanceUrl": {
2102
- "type": "string"
2103
- },
2104
- "additionalScopes": {
2105
- "anyOf": [
2106
- {
2107
- "type": "array",
2108
- "items": {
2109
- "type": "string"
2110
- }
2111
1993
  },
2112
- {
2113
- "type": "string"
2114
- }
2115
- ]
2116
- },
2117
- "signIn": {
2118
- "type": "object",
2119
- "properties": {
2120
- "resolvers": {
1994
+ "accessRestrictions": {
1995
+ "description": "Restricts what types of access that are permitted for this access\nmethod. If no access restrictions are given, it'll have unlimited\naccess. This access restriction applies for the framework level;\nindividual plugins may have their own access control mechanisms\non top of this.",
2121
1996
  "type": "array",
2122
1997
  "items": {
2123
- "anyOf": [
2124
- {
2125
- "type": "object",
2126
- "properties": {
2127
- "resolver": {
2128
- "type": "string",
2129
- "const": "usernameMatchingUserEntityName"
2130
- }
2131
- },
2132
- "required": [
2133
- "resolver"
2134
- ]
1998
+ "type": "object",
1999
+ "properties": {
2000
+ "plugin": {
2001
+ "description": "Permit access to make requests to this plugin.\n\nCan be further refined by setting additional fields below.",
2002
+ "type": "string"
2135
2003
  },
2136
- {
2137
- "type": "object",
2138
- "properties": {
2139
- "resolver": {
2140
- "type": "string",
2141
- "const": "emailLocalPartMatchingUserEntityName"
2142
- },
2143
- "allowedDomains": {
2004
+ "permission": {
2005
+ "description": "If given, this method is limited to only performing actions\nwith these named permissions in this plugin.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
2006
+ "anyOf": [
2007
+ {
2144
2008
  "type": "array",
2145
2009
  "items": {
2146
2010
  "type": "string"
2147
2011
  }
2012
+ },
2013
+ {
2014
+ "type": "string"
2148
2015
  }
2149
- },
2150
- "required": [
2151
- "resolver"
2152
2016
  ]
2153
2017
  },
2154
- {
2018
+ "permissionAttribute": {
2019
+ "description": "If given, this method is limited to only performing actions\nwhose permissions have these attributes.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
2155
2020
  "type": "object",
2156
2021
  "properties": {
2157
- "resolver": {
2158
- "type": "string",
2159
- "const": "emailMatchingUserEntityProfileEmail"
2022
+ "action": {
2023
+ "description": "One of more of 'create', 'read', 'update', or 'delete'.",
2024
+ "anyOf": [
2025
+ {
2026
+ "type": "array",
2027
+ "items": {
2028
+ "type": "string"
2029
+ }
2030
+ },
2031
+ {
2032
+ "type": "string"
2033
+ }
2034
+ ]
2160
2035
  }
2161
- },
2162
- "required": [
2163
- "resolver"
2164
- ]
2036
+ }
2165
2037
  }
2038
+ },
2039
+ "required": [
2040
+ "plugin"
2166
2041
  ]
2167
2042
  }
2168
2043
  }
2169
2044
  },
2170
2045
  "required": [
2171
- "resolvers"
2046
+ "options",
2047
+ "type"
2172
2048
  ]
2173
2049
  }
2174
- },
2175
- "required": [
2176
- "clientId",
2177
- "clientSecret"
2178
2050
  ]
2179
2051
  }
2180
2052
  }
2181
2053
  }
2182
- }
2183
- }
2184
- }
2185
- },
2186
- "$schema": "http://json-schema.org/draft-07/schema#"
2187
- },
2188
- "packageName": "@backstage/plugin-auth-backend-module-github-provider"
2189
- },
2190
- {
2191
- "path": "../../plugins/auth-backend-module-gitlab-provider/config.d.ts",
2192
- "value": {
2193
- "type": "object",
2194
- "properties": {
2195
- "auth": {
2196
- "type": "object",
2197
- "properties": {
2198
- "providers": {
2054
+ },
2055
+ "database": {
2056
+ "description": "Database connection configuration, select base database type using the `client` field",
2199
2057
  "type": "object",
2200
2058
  "properties": {
2201
- "gitlab": {
2202
- "visibility": "frontend",
2059
+ "client": {
2060
+ "description": "Default database client to use",
2061
+ "enum": [
2062
+ "better-sqlite3",
2063
+ "pg",
2064
+ "sqlite3"
2065
+ ],
2066
+ "type": "string"
2067
+ },
2068
+ "connection": {
2069
+ "description": "Base database connection string, or object with individual connection properties",
2070
+ "visibility": "secret",
2071
+ "anyOf": [
2072
+ {
2073
+ "type": "object",
2074
+ "properties": {
2075
+ "type": {
2076
+ "description": "The specific config for cloudsql connections",
2077
+ "type": "string",
2078
+ "const": "cloudsql"
2079
+ },
2080
+ "instance": {
2081
+ "description": "The instance connection name for the cloudsql instance, e.g. `project:region:instance`",
2082
+ "type": "string"
2083
+ }
2084
+ },
2085
+ "required": [
2086
+ "instance",
2087
+ "type"
2088
+ ]
2089
+ },
2090
+ {
2091
+ "type": "object",
2092
+ "additionalProperties": {},
2093
+ "properties": {
2094
+ "password": {
2095
+ "description": "Password that belongs to the client User",
2096
+ "visibility": "secret",
2097
+ "type": "string"
2098
+ }
2099
+ }
2100
+ },
2101
+ {
2102
+ "type": "string"
2103
+ }
2104
+ ]
2105
+ },
2106
+ "prefix": {
2107
+ "description": "Database name prefix override",
2108
+ "type": "string"
2109
+ },
2110
+ "ensureExists": {
2111
+ "description": "Whether to ensure the given database exists by creating it if it does not.\nDefaults to true if unspecified.",
2112
+ "type": "boolean"
2113
+ },
2114
+ "ensureSchemaExists": {
2115
+ "description": "Whether to ensure the given database schema exists by creating it if it does not.\nDefaults to false if unspecified.\n\nNOTE: Currently only supported by the `pg` client when pluginDivisionMode: schema",
2116
+ "type": "boolean"
2117
+ },
2118
+ "pluginDivisionMode": {
2119
+ "description": "How plugins databases are managed/divided in the provided database instance.\n\n`database` -> Plugins are each given their own database to manage their schemas/tables.\n\n`schema` -> Plugins will be given their own schema (in the specified/default database)\n to manage their tables.\n\nNOTE: Currently only supported by the `pg` client.",
2120
+ "default": "database",
2121
+ "enum": [
2122
+ "database",
2123
+ "schema"
2124
+ ],
2125
+ "type": "string"
2126
+ },
2127
+ "role": {
2128
+ "description": "Configures the ownership of newly created schemas in pg databases.",
2129
+ "type": "string"
2130
+ },
2131
+ "knexConfig": {
2132
+ "description": "Arbitrary config object to pass to knex when initializing\n(https://knexjs.org/#Installation-client). Most notable is the debug\nand asyncStackTraces booleans",
2133
+ "type": "object",
2134
+ "properties": {},
2135
+ "additionalProperties": true
2136
+ },
2137
+ "skipMigrations": {
2138
+ "description": "Skip running database migrations.",
2139
+ "type": "boolean"
2140
+ },
2141
+ "plugin": {
2142
+ "description": "Plugin specific database configuration and client override",
2203
2143
  "type": "object",
2204
2144
  "additionalProperties": {
2205
2145
  "type": "object",
2206
2146
  "properties": {
2207
- "clientId": {
2147
+ "client": {
2148
+ "description": "Database client override",
2149
+ "enum": [
2150
+ "better-sqlite3",
2151
+ "pg",
2152
+ "sqlite3"
2153
+ ],
2208
2154
  "type": "string"
2209
2155
  },
2210
- "clientSecret": {
2156
+ "connection": {
2157
+ "description": "Database connection string or Knex object override",
2211
2158
  "visibility": "secret",
2212
- "type": "string"
2213
- },
2214
- "audience": {
2215
- "type": "string"
2216
- },
2217
- "callbackUrl": {
2218
- "type": "string"
2219
- },
2220
- "additionalScopes": {
2221
2159
  "anyOf": [
2222
2160
  {
2223
- "type": "array",
2224
- "items": {
2225
- "type": "string"
2161
+ "type": "object",
2162
+ "properties": {
2163
+ "type": {
2164
+ "description": "The specific config for cloudsql connections",
2165
+ "type": "string",
2166
+ "const": "cloudsql"
2167
+ },
2168
+ "instance": {
2169
+ "description": "The instance connection name for the cloudsql instance, e.g. `project:region:instance`",
2170
+ "type": "string"
2171
+ }
2172
+ },
2173
+ "required": [
2174
+ "instance",
2175
+ "type"
2176
+ ]
2177
+ },
2178
+ {
2179
+ "type": "object",
2180
+ "additionalProperties": {},
2181
+ "properties": {
2182
+ "password": {
2183
+ "description": "Password that belongs to the client User",
2184
+ "visibility": "secret",
2185
+ "type": "string"
2186
+ }
2226
2187
  }
2227
2188
  },
2228
2189
  {
@@ -2230,195 +2191,320 @@
2230
2191
  }
2231
2192
  ]
2232
2193
  },
2233
- "signIn": {
2194
+ "ensureExists": {
2195
+ "description": "Whether to ensure the given database exists by creating it if it does not.\nDefaults to base config if unspecified.",
2196
+ "type": "boolean"
2197
+ },
2198
+ "ensureSchemaExists": {
2199
+ "description": "Whether to ensure the given database schema exists by creating it if it does not.\nDefaults to false if unspecified.\n\nNOTE: Currently only supported by the `pg` client when pluginDivisionMode: schema",
2200
+ "type": "boolean"
2201
+ },
2202
+ "knexConfig": {
2203
+ "description": "Arbitrary config object to pass to knex when initializing\n(https://knexjs.org/#Installation-client). Most notable is the\ndebug and asyncStackTraces booleans.\n\nThis is merged recursively into the base knexConfig",
2234
2204
  "type": "object",
2235
- "properties": {
2236
- "resolvers": {
2237
- "type": "array",
2238
- "items": {
2239
- "anyOf": [
2240
- {
2241
- "type": "object",
2242
- "properties": {
2243
- "resolver": {
2244
- "type": "string",
2245
- "const": "usernameMatchingUserEntityName"
2246
- }
2247
- },
2248
- "required": [
2249
- "resolver"
2250
- ]
2251
- },
2252
- {
2253
- "type": "object",
2254
- "properties": {
2255
- "resolver": {
2256
- "type": "string",
2257
- "const": "emailLocalPartMatchingUserEntityName"
2258
- },
2259
- "allowedDomains": {
2260
- "type": "array",
2261
- "items": {
2262
- "type": "string"
2263
- }
2264
- }
2265
- },
2266
- "required": [
2267
- "resolver"
2268
- ]
2269
- },
2270
- {
2271
- "type": "object",
2272
- "properties": {
2273
- "resolver": {
2274
- "type": "string",
2275
- "const": "emailMatchingUserEntityProfileEmail"
2276
- }
2277
- },
2278
- "required": [
2279
- "resolver"
2280
- ]
2281
- }
2282
- ]
2283
- }
2284
- }
2285
- },
2286
- "required": [
2287
- "resolvers"
2288
- ]
2205
+ "properties": {},
2206
+ "additionalProperties": true
2207
+ },
2208
+ "role": {
2209
+ "description": "Configures the ownership of newly created schemas in pg databases.",
2210
+ "type": "string"
2211
+ },
2212
+ "skipMigrations": {
2213
+ "description": "Skip running database migrations.",
2214
+ "type": "boolean"
2289
2215
  }
2290
- },
2291
- "required": [
2292
- "clientId",
2293
- "clientSecret"
2294
- ]
2216
+ }
2295
2217
  }
2296
2218
  }
2297
- }
2298
- }
2299
- }
2300
- }
2301
- },
2302
- "$schema": "http://json-schema.org/draft-07/schema#"
2303
- },
2304
- "packageName": "@backstage/plugin-auth-backend-module-gitlab-provider"
2305
- },
2306
- {
2307
- "path": "../../plugins/auth-backend-module-google-provider/config.d.ts",
2308
- "value": {
2309
- "type": "object",
2310
- "properties": {
2311
- "auth": {
2312
- "description": "Configuration options for the auth plugin",
2313
- "type": "object",
2314
- "properties": {
2315
- "providers": {
2219
+ },
2220
+ "required": [
2221
+ "client",
2222
+ "connection"
2223
+ ]
2224
+ },
2225
+ "cache": {
2226
+ "description": "Cache connection configuration, select cache type using the `store` field",
2227
+ "anyOf": [
2228
+ {
2229
+ "type": "object",
2230
+ "properties": {
2231
+ "store": {
2232
+ "type": "string",
2233
+ "const": "memory"
2234
+ },
2235
+ "defaultTtl": {
2236
+ "description": "An optional default TTL (in milliseconds, if given as a number)."
2237
+ }
2238
+ },
2239
+ "required": [
2240
+ "store"
2241
+ ]
2242
+ },
2243
+ {
2244
+ "type": "object",
2245
+ "properties": {
2246
+ "store": {
2247
+ "type": "string",
2248
+ "const": "redis"
2249
+ },
2250
+ "connection": {
2251
+ "description": "A redis connection string in the form `redis://user:pass@host:port`.",
2252
+ "visibility": "secret",
2253
+ "type": "string"
2254
+ },
2255
+ "defaultTtl": {
2256
+ "description": "An optional default TTL (in milliseconds, if given as a number)."
2257
+ }
2258
+ },
2259
+ "required": [
2260
+ "connection",
2261
+ "store"
2262
+ ]
2263
+ },
2264
+ {
2265
+ "type": "object",
2266
+ "properties": {
2267
+ "store": {
2268
+ "type": "string",
2269
+ "const": "memcache"
2270
+ },
2271
+ "connection": {
2272
+ "description": "A memcache connection string in the form `user:pass@host:port`.",
2273
+ "visibility": "secret",
2274
+ "type": "string"
2275
+ },
2276
+ "defaultTtl": {
2277
+ "description": "An optional default TTL (in milliseconds)."
2278
+ }
2279
+ },
2280
+ "required": [
2281
+ "connection",
2282
+ "store"
2283
+ ]
2284
+ }
2285
+ ]
2286
+ },
2287
+ "cors": {
2316
2288
  "type": "object",
2317
2289
  "properties": {
2318
- "google": {
2319
- "visibility": "frontend",
2320
- "type": "object",
2321
- "additionalProperties": {
2322
- "type": "object",
2323
- "properties": {
2324
- "clientId": {
2290
+ "origin": {
2291
+ "anyOf": [
2292
+ {
2293
+ "type": "array",
2294
+ "items": {
2325
2295
  "type": "string"
2326
- },
2327
- "clientSecret": {
2328
- "visibility": "secret",
2296
+ }
2297
+ },
2298
+ {
2299
+ "type": "string"
2300
+ }
2301
+ ]
2302
+ },
2303
+ "methods": {
2304
+ "anyOf": [
2305
+ {
2306
+ "type": "array",
2307
+ "items": {
2329
2308
  "type": "string"
2330
- },
2331
- "callbackUrl": {
2309
+ }
2310
+ },
2311
+ {
2312
+ "type": "string"
2313
+ }
2314
+ ]
2315
+ },
2316
+ "allowedHeaders": {
2317
+ "anyOf": [
2318
+ {
2319
+ "type": "array",
2320
+ "items": {
2332
2321
  "type": "string"
2333
- },
2334
- "additionalScopes": {
2335
- "anyOf": [
2336
- {
2337
- "type": "array",
2338
- "items": {
2339
- "type": "string"
2340
- }
2341
- },
2342
- {
2343
- "type": "string"
2344
- }
2345
- ]
2346
- },
2347
- "signIn": {
2322
+ }
2323
+ },
2324
+ {
2325
+ "type": "string"
2326
+ }
2327
+ ]
2328
+ },
2329
+ "exposedHeaders": {
2330
+ "anyOf": [
2331
+ {
2332
+ "type": "array",
2333
+ "items": {
2334
+ "type": "string"
2335
+ }
2336
+ },
2337
+ {
2338
+ "type": "string"
2339
+ }
2340
+ ]
2341
+ },
2342
+ "credentials": {
2343
+ "type": "boolean"
2344
+ },
2345
+ "maxAge": {
2346
+ "type": "number"
2347
+ },
2348
+ "preflightContinue": {
2349
+ "type": "boolean"
2350
+ },
2351
+ "optionsSuccessStatus": {
2352
+ "type": "number"
2353
+ }
2354
+ }
2355
+ },
2356
+ "csp": {
2357
+ "description": "Content Security Policy options.\n\nThe keys are the plain policy ID, e.g. \"upgrade-insecure-requests\". The\nvalues are on the format that the helmet library expects them, as an\narray of strings. There is also the special value false, which means to\nremove the default value that Backstage puts in place for that policy.",
2358
+ "type": "object",
2359
+ "additionalProperties": {
2360
+ "anyOf": [
2361
+ {
2362
+ "type": "array",
2363
+ "items": {
2364
+ "type": "string"
2365
+ }
2366
+ },
2367
+ {
2368
+ "const": false,
2369
+ "type": "boolean"
2370
+ }
2371
+ ]
2372
+ }
2373
+ },
2374
+ "health": {
2375
+ "description": "Options for the health check service and endpoint.",
2376
+ "type": "object",
2377
+ "properties": {
2378
+ "headers": {
2379
+ "description": "Additional headers to always include in the health check response.\n\nIt can be a good idea to set a header that uniquely identifies your service\nin a multi-service environment. This ensures that the health check that is\nconfigured for your service is actually hitting your service and not another.\n\nFor example, if using Envoy you can use the `service_name_matcher` configuration\nand set the `x-envoy-upstream-healthchecked-cluster` header to a matching value.",
2380
+ "type": "object",
2381
+ "additionalProperties": {
2382
+ "type": "string"
2383
+ }
2384
+ }
2385
+ }
2386
+ },
2387
+ "reading": {
2388
+ "description": "Configuration related to URL reading, used for example for reading catalog info\nfiles, scaffolder templates, and techdocs content.",
2389
+ "type": "object",
2390
+ "properties": {
2391
+ "allow": {
2392
+ "description": "A list of targets to allow outgoing requests to. Users will be able to make\nrequests on behalf of the backend to the targets that are allowed by this list.",
2393
+ "type": "array",
2394
+ "items": {
2395
+ "type": "object",
2396
+ "properties": {
2397
+ "host": {
2398
+ "description": "A host to allow outgoing requests to, being either a full host or\na subdomain wildcard pattern with a leading `*`. For example `example.com`\nand `*.example.com` are valid values, `prod.*.example.com` is not.\nThe host may also contain a port, for example `example.com:8080`.",
2399
+ "type": "string"
2400
+ },
2401
+ "paths": {
2402
+ "description": "An optional list of paths. In case they are present only targets matching\nany of them will are allowed. You can use trailing slashes to make sure only\nsubdirectories are allowed, for example `/mydir/` will allow targets with\npaths like `/mydir/a` but will block paths like `/mydir2`.",
2403
+ "type": "array",
2404
+ "items": {
2405
+ "type": "string"
2406
+ }
2407
+ }
2408
+ },
2409
+ "required": [
2410
+ "host"
2411
+ ]
2412
+ }
2413
+ }
2414
+ }
2415
+ }
2416
+ },
2417
+ "required": [
2418
+ "baseUrl",
2419
+ "database"
2420
+ ]
2421
+ },
2422
+ "discovery": {
2423
+ "description": "Options used by the default discovery service.",
2424
+ "type": "object",
2425
+ "properties": {
2426
+ "endpoints": {
2427
+ "description": "A list of target baseUrls and the associated plugins.",
2428
+ "type": "array",
2429
+ "items": {
2430
+ "type": "object",
2431
+ "properties": {
2432
+ "target": {
2433
+ "description": "The target base URL to use for the plugin.\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the URL will be replaced with the plugin ID.",
2434
+ "anyOf": [
2435
+ {
2348
2436
  "type": "object",
2349
2437
  "properties": {
2350
- "resolvers": {
2351
- "type": "array",
2352
- "items": {
2353
- "anyOf": [
2354
- {
2355
- "type": "object",
2356
- "properties": {
2357
- "resolver": {
2358
- "type": "string",
2359
- "const": "emailMatchingUserEntityAnnotation"
2360
- }
2361
- },
2362
- "required": [
2363
- "resolver"
2364
- ]
2365
- },
2366
- {
2367
- "type": "object",
2368
- "properties": {
2369
- "resolver": {
2370
- "type": "string",
2371
- "const": "emailLocalPartMatchingUserEntityName"
2372
- },
2373
- "allowedDomains": {
2374
- "type": "array",
2375
- "items": {
2376
- "type": "string"
2377
- }
2378
- }
2379
- },
2380
- "required": [
2381
- "resolver"
2382
- ]
2383
- },
2384
- {
2385
- "type": "object",
2386
- "properties": {
2387
- "resolver": {
2388
- "type": "string",
2389
- "const": "emailMatchingUserEntityProfileEmail"
2390
- }
2391
- },
2392
- "required": [
2393
- "resolver"
2394
- ]
2395
- }
2396
- ]
2397
- }
2438
+ "internal": {
2439
+ "type": "string"
2440
+ },
2441
+ "external": {
2442
+ "type": "string"
2398
2443
  }
2399
2444
  },
2400
2445
  "required": [
2401
- "resolvers"
2446
+ "external",
2447
+ "internal"
2402
2448
  ]
2449
+ },
2450
+ {
2451
+ "type": "string"
2403
2452
  }
2404
- },
2405
- "required": [
2406
- "clientId",
2407
- "clientSecret"
2408
2453
  ]
2454
+ },
2455
+ "plugins": {
2456
+ "description": "Array of plugins which use the target base URL.",
2457
+ "type": "array",
2458
+ "items": {
2459
+ "type": "string"
2460
+ }
2409
2461
  }
2410
- }
2462
+ },
2463
+ "required": [
2464
+ "plugins",
2465
+ "target"
2466
+ ]
2411
2467
  }
2412
2468
  }
2469
+ },
2470
+ "required": [
2471
+ "endpoints"
2472
+ ]
2473
+ }
2474
+ },
2475
+ "required": [
2476
+ "app"
2477
+ ],
2478
+ "$schema": "http://json-schema.org/draft-07/schema#"
2479
+ },
2480
+ "packageName": "@backstage/backend-defaults"
2481
+ },
2482
+ {
2483
+ "path": "../../plugins/events-node/config.d.ts",
2484
+ "value": {
2485
+ "type": "object",
2486
+ "properties": {
2487
+ "events": {
2488
+ "type": "object",
2489
+ "properties": {
2490
+ "useEventBus": {
2491
+ "description": "Whether to use the event bus API in the events plugin backend to\ndistribute events across multiple instances when publishing and\nsubscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be\nused if it's available, but will be disabled if the events backend\nreturns a 404.\n\nIf set to 'never', the events service will only ever publish events\nlocally to the same instance, while if set to 'always', the event bus API\nwill never be disabled, even if the events backend returns a 404.",
2492
+ "enum": [
2493
+ "always",
2494
+ "auto",
2495
+ "never"
2496
+ ],
2497
+ "type": "string"
2498
+ }
2413
2499
  }
2414
2500
  }
2415
2501
  },
2416
2502
  "$schema": "http://json-schema.org/draft-07/schema#"
2417
2503
  },
2418
- "packageName": "@backstage/plugin-auth-backend-module-google-provider"
2504
+ "packageName": "@backstage/plugin-events-node"
2419
2505
  },
2420
2506
  {
2421
- "path": "../../plugins/auth-backend-module-microsoft-provider/config.d.ts",
2507
+ "path": "../../plugins/auth-backend-module-atlassian-provider/config.d.ts",
2422
2508
  "value": {
2423
2509
  "type": "object",
2424
2510
  "properties": {
@@ -2428,7 +2514,7 @@
2428
2514
  "providers": {
2429
2515
  "type": "object",
2430
2516
  "properties": {
2431
- "microsoft": {
2517
+ "atlassian": {
2432
2518
  "visibility": "frontend",
2433
2519
  "type": "object",
2434
2520
  "additionalProperties": {
@@ -2437,14 +2523,11 @@
2437
2523
  "clientId": {
2438
2524
  "type": "string"
2439
2525
  },
2440
- "tenantId": {
2441
- "type": "string"
2442
- },
2443
2526
  "clientSecret": {
2444
2527
  "visibility": "secret",
2445
2528
  "type": "string"
2446
2529
  },
2447
- "domainHint": {
2530
+ "audience": {
2448
2531
  "type": "string"
2449
2532
  },
2450
2533
  "callbackUrl": {
@@ -2463,9 +2546,6 @@
2463
2546
  }
2464
2547
  ]
2465
2548
  },
2466
- "skipUserProfile": {
2467
- "type": "boolean"
2468
- },
2469
2549
  "signIn": {
2470
2550
  "type": "object",
2471
2551
  "properties": {
@@ -2478,7 +2558,7 @@
2478
2558
  "properties": {
2479
2559
  "resolver": {
2480
2560
  "type": "string",
2481
- "const": "emailMatchingUserEntityAnnotation"
2561
+ "const": "usernameMatchingUserEntityName"
2482
2562
  }
2483
2563
  },
2484
2564
  "required": [
@@ -2526,8 +2606,7 @@
2526
2606
  },
2527
2607
  "required": [
2528
2608
  "clientId",
2529
- "clientSecret",
2530
- "tenantId"
2609
+ "clientSecret"
2531
2610
  ]
2532
2611
  }
2533
2612
  }
@@ -2538,10 +2617,10 @@
2538
2617
  },
2539
2618
  "$schema": "http://json-schema.org/draft-07/schema#"
2540
2619
  },
2541
- "packageName": "@backstage/plugin-auth-backend-module-microsoft-provider"
2620
+ "packageName": "@backstage/plugin-auth-backend-module-atlassian-provider"
2542
2621
  },
2543
2622
  {
2544
- "path": "../../plugins/auth-backend-module-oidc-provider/config.d.ts",
2623
+ "path": "../../plugins/auth-backend-module-auth0-provider/config.d.ts",
2545
2624
  "value": {
2546
2625
  "type": "object",
2547
2626
  "properties": {
@@ -2551,7 +2630,7 @@
2551
2630
  "providers": {
2552
2631
  "type": "object",
2553
2632
  "properties": {
2554
- "oidc": {
2633
+ "auth0": {
2555
2634
  "visibility": "frontend",
2556
2635
  "type": "object",
2557
2636
  "additionalProperties": {
@@ -2564,84 +2643,26 @@
2564
2643
  "visibility": "secret",
2565
2644
  "type": "string"
2566
2645
  },
2567
- "metadataUrl": {
2646
+ "domain": {
2568
2647
  "type": "string"
2569
2648
  },
2570
2649
  "callbackUrl": {
2571
2650
  "type": "string"
2572
2651
  },
2573
- "tokenEndpointAuthMethod": {
2652
+ "audience": {
2574
2653
  "type": "string"
2575
2654
  },
2576
- "tokenSignedResponseAlg": {
2655
+ "connection": {
2577
2656
  "type": "string"
2578
2657
  },
2579
- "additionalScopes": {
2580
- "anyOf": [
2581
- {
2582
- "type": "array",
2583
- "items": {
2584
- "type": "string"
2585
- }
2586
- },
2587
- {
2588
- "type": "string"
2589
- }
2590
- ]
2591
- },
2592
- "prompt": {
2658
+ "connectionScope": {
2593
2659
  "type": "string"
2594
- },
2595
- "signIn": {
2596
- "type": "object",
2597
- "properties": {
2598
- "resolvers": {
2599
- "type": "array",
2600
- "items": {
2601
- "anyOf": [
2602
- {
2603
- "type": "object",
2604
- "properties": {
2605
- "resolver": {
2606
- "type": "string",
2607
- "const": "emailLocalPartMatchingUserEntityName"
2608
- },
2609
- "allowedDomains": {
2610
- "type": "array",
2611
- "items": {
2612
- "type": "string"
2613
- }
2614
- }
2615
- },
2616
- "required": [
2617
- "resolver"
2618
- ]
2619
- },
2620
- {
2621
- "type": "object",
2622
- "properties": {
2623
- "resolver": {
2624
- "type": "string",
2625
- "const": "emailMatchingUserEntityProfileEmail"
2626
- }
2627
- },
2628
- "required": [
2629
- "resolver"
2630
- ]
2631
- }
2632
- ]
2633
- }
2634
- }
2635
- },
2636
- "required": [
2637
- "resolvers"
2638
- ]
2639
2660
  }
2640
2661
  },
2641
2662
  "required": [
2642
2663
  "clientId",
2643
2664
  "clientSecret",
2644
- "metadataUrl"
2665
+ "domain"
2645
2666
  ]
2646
2667
  }
2647
2668
  }
@@ -2652,10 +2673,10 @@
2652
2673
  },
2653
2674
  "$schema": "http://json-schema.org/draft-07/schema#"
2654
2675
  },
2655
- "packageName": "@backstage/plugin-auth-backend-module-oidc-provider"
2676
+ "packageName": "@backstage/plugin-auth-backend-module-auth0-provider"
2656
2677
  },
2657
2678
  {
2658
- "path": "../../plugins/auth-backend-module-okta-provider/config.d.ts",
2679
+ "path": "../../plugins/auth-backend-module-bitbucket-provider/config.d.ts",
2659
2680
  "value": {
2660
2681
  "type": "object",
2661
2682
  "properties": {
@@ -2665,7 +2686,7 @@
2665
2686
  "providers": {
2666
2687
  "type": "object",
2667
2688
  "properties": {
2668
- "okta": {
2689
+ "bitbucket": {
2669
2690
  "visibility": "frontend",
2670
2691
  "type": "object",
2671
2692
  "additionalProperties": {
@@ -2678,18 +2699,6 @@
2678
2699
  "visibility": "secret",
2679
2700
  "type": "string"
2680
2701
  },
2681
- "audience": {
2682
- "type": "string"
2683
- },
2684
- "authServerId": {
2685
- "type": "string"
2686
- },
2687
- "idp": {
2688
- "type": "string"
2689
- },
2690
- "callbackUrl": {
2691
- "type": "string"
2692
- },
2693
2702
  "additionalScopes": {
2694
2703
  "anyOf": [
2695
2704
  {
@@ -2715,7 +2724,7 @@
2715
2724
  "properties": {
2716
2725
  "resolver": {
2717
2726
  "type": "string",
2718
- "const": "emailMatchingUserEntityAnnotation"
2727
+ "const": "userIdMatchingUserEntityAnnotation"
2719
2728
  }
2720
2729
  },
2721
2730
  "required": [
@@ -2774,10 +2783,10 @@
2774
2783
  },
2775
2784
  "$schema": "http://json-schema.org/draft-07/schema#"
2776
2785
  },
2777
- "packageName": "@backstage/plugin-auth-backend-module-okta-provider"
2786
+ "packageName": "@backstage/plugin-auth-backend-module-bitbucket-provider"
2778
2787
  },
2779
2788
  {
2780
- "path": "../../plugins/auth-backend-module-onelogin-provider/config.d.ts",
2789
+ "path": "../../plugins/auth-backend-module-bitbucket-server-provider/config.d.ts",
2781
2790
  "value": {
2782
2791
  "type": "object",
2783
2792
  "properties": {
@@ -2787,7 +2796,7 @@
2787
2796
  "providers": {
2788
2797
  "type": "object",
2789
2798
  "properties": {
2790
- "onelogin": {
2799
+ "bitbucketServer": {
2791
2800
  "visibility": "frontend",
2792
2801
  "type": "object",
2793
2802
  "additionalProperties": {
@@ -2800,74 +2809,17 @@
2800
2809
  "visibility": "secret",
2801
2810
  "type": "string"
2802
2811
  },
2803
- "issuer": {
2812
+ "host": {
2804
2813
  "type": "string"
2805
2814
  },
2806
2815
  "callbackUrl": {
2807
2816
  "type": "string"
2808
- },
2809
- "signIn": {
2810
- "type": "object",
2811
- "properties": {
2812
- "resolvers": {
2813
- "type": "array",
2814
- "items": {
2815
- "anyOf": [
2816
- {
2817
- "type": "object",
2818
- "properties": {
2819
- "resolver": {
2820
- "type": "string",
2821
- "const": "usernameMatchingUserEntityName"
2822
- }
2823
- },
2824
- "required": [
2825
- "resolver"
2826
- ]
2827
- },
2828
- {
2829
- "type": "object",
2830
- "properties": {
2831
- "resolver": {
2832
- "type": "string",
2833
- "const": "emailLocalPartMatchingUserEntityName"
2834
- },
2835
- "allowedDomains": {
2836
- "type": "array",
2837
- "items": {
2838
- "type": "string"
2839
- }
2840
- }
2841
- },
2842
- "required": [
2843
- "resolver"
2844
- ]
2845
- },
2846
- {
2847
- "type": "object",
2848
- "properties": {
2849
- "resolver": {
2850
- "type": "string",
2851
- "const": "emailMatchingUserEntityProfileEmail"
2852
- }
2853
- },
2854
- "required": [
2855
- "resolver"
2856
- ]
2857
- }
2858
- ]
2859
- }
2860
- }
2861
- },
2862
- "required": [
2863
- "resolvers"
2864
- ]
2865
2817
  }
2866
2818
  },
2867
2819
  "required": [
2868
2820
  "clientId",
2869
2821
  "clientSecret",
2870
- "issuer"
2822
+ "host"
2871
2823
  ]
2872
2824
  }
2873
2825
  }
@@ -2878,10 +2830,10 @@
2878
2830
  },
2879
2831
  "$schema": "http://json-schema.org/draft-07/schema#"
2880
2832
  },
2881
- "packageName": "@backstage/plugin-auth-backend-module-onelogin-provider"
2833
+ "packageName": "@backstage/plugin-auth-backend-module-bitbucket-server-provider"
2882
2834
  },
2883
2835
  {
2884
- "path": "../../plugins/auth-backend-module-oauth2-provider/config.d.ts",
2836
+ "path": "../../plugins/auth-backend-module-cloudflare-access-provider/config.d.ts",
2885
2837
  "value": {
2886
2838
  "type": "object",
2887
2839
  "properties": {
@@ -2891,113 +2843,90 @@
2891
2843
  "providers": {
2892
2844
  "type": "object",
2893
2845
  "properties": {
2894
- "oauth2": {
2846
+ "cfaccess": {
2895
2847
  "visibility": "frontend",
2896
2848
  "type": "object",
2897
- "additionalProperties": {
2898
- "type": "object",
2899
- "properties": {
2900
- "clientId": {
2901
- "type": "string"
2902
- },
2903
- "clientSecret": {
2904
- "visibility": "secret",
2905
- "type": "string"
2906
- },
2907
- "authorizationUrl": {
2908
- "type": "string"
2909
- },
2910
- "tokenUrl": {
2911
- "type": "string"
2912
- },
2913
- "scope": {
2914
- "deprecated": "use `additionalScopes` instead",
2915
- "type": "string"
2916
- },
2917
- "additionalScopes": {
2918
- "anyOf": [
2919
- {
2920
- "type": "array",
2921
- "items": {
2922
- "type": "string"
2923
- }
2924
- },
2925
- {
2926
- "type": "string"
2927
- }
2928
- ]
2929
- },
2930
- "disableRefresh": {
2931
- "type": "boolean"
2932
- },
2933
- "includeBasicAuth": {
2934
- "type": "boolean"
2935
- },
2936
- "signIn": {
2849
+ "properties": {
2850
+ "teamName": {
2851
+ "type": "string"
2852
+ },
2853
+ "serviceTokens": {
2854
+ "deepVisibility": "secret",
2855
+ "type": "array",
2856
+ "items": {
2937
2857
  "type": "object",
2938
2858
  "properties": {
2939
- "resolvers": {
2940
- "type": "array",
2941
- "items": {
2942
- "anyOf": [
2943
- {
2944
- "type": "object",
2945
- "properties": {
2946
- "resolver": {
2947
- "type": "string",
2948
- "const": "usernameMatchingUserEntityName"
2949
- }
2950
- },
2951
- "required": [
2952
- "resolver"
2953
- ]
2954
- },
2955
- {
2956
- "type": "object",
2957
- "properties": {
2958
- "resolver": {
2959
- "type": "string",
2960
- "const": "emailLocalPartMatchingUserEntityName"
2961
- },
2962
- "allowedDomains": {
2963
- "type": "array",
2964
- "items": {
2965
- "type": "string"
2966
- }
2967
- }
2968
- },
2969
- "required": [
2970
- "resolver"
2971
- ]
2972
- },
2973
- {
2974
- "type": "object",
2975
- "properties": {
2976
- "resolver": {
2977
- "type": "string",
2978
- "const": "emailMatchingUserEntityProfileEmail"
2979
- }
2980
- },
2981
- "required": [
2982
- "resolver"
2983
- ]
2984
- }
2985
- ]
2986
- }
2859
+ "token": {
2860
+ "type": "string"
2861
+ },
2862
+ "subject": {
2863
+ "type": "string"
2987
2864
  }
2988
2865
  },
2989
2866
  "required": [
2990
- "resolvers"
2867
+ "subject",
2868
+ "token"
2991
2869
  ]
2992
2870
  }
2993
2871
  },
2994
- "required": [
2995
- "authorizationUrl",
2996
- "clientId",
2997
- "clientSecret",
2998
- "tokenUrl"
2999
- ]
3000
- }
2872
+ "jwtHeaderName": {
2873
+ "type": "string"
2874
+ },
2875
+ "authorizationCookieName": {
2876
+ "type": "string"
2877
+ },
2878
+ "signIn": {
2879
+ "type": "object",
2880
+ "properties": {
2881
+ "resolvers": {
2882
+ "type": "array",
2883
+ "items": {
2884
+ "anyOf": [
2885
+ {
2886
+ "type": "object",
2887
+ "properties": {
2888
+ "resolver": {
2889
+ "type": "string",
2890
+ "const": "emailLocalPartMatchingUserEntityName"
2891
+ },
2892
+ "allowedDomains": {
2893
+ "type": "array",
2894
+ "items": {
2895
+ "type": "string"
2896
+ }
2897
+ }
2898
+ },
2899
+ "required": [
2900
+ "resolver"
2901
+ ]
2902
+ },
2903
+ {
2904
+ "type": "object",
2905
+ "properties": {
2906
+ "resolver": {
2907
+ "type": "string",
2908
+ "const": "emailMatchingUserEntityProfileEmail"
2909
+ }
2910
+ },
2911
+ "required": [
2912
+ "resolver"
2913
+ ]
2914
+ }
2915
+ ]
2916
+ }
2917
+ }
2918
+ },
2919
+ "required": [
2920
+ "resolvers"
2921
+ ]
2922
+ }
2923
+ },
2924
+ "required": [
2925
+ "teamName"
2926
+ ]
2927
+ },
2928
+ "backstageTokenExpiration": {
2929
+ "description": "The backstage token expiration."
3001
2930
  }
3002
2931
  }
3003
2932
  }
@@ -3006,620 +2935,266 @@
3006
2935
  },
3007
2936
  "$schema": "http://json-schema.org/draft-07/schema#"
3008
2937
  },
3009
- "packageName": "@backstage/plugin-auth-backend-module-oauth2-provider"
2938
+ "packageName": "@backstage/plugin-auth-backend-module-cloudflare-access-provider"
3010
2939
  },
3011
2940
  {
3012
- "path": "../backend-defaults/config.d.ts",
2941
+ "path": "../../plugins/auth-backend-module-gcp-iap-provider/config.d.ts",
3013
2942
  "value": {
3014
2943
  "type": "object",
3015
2944
  "properties": {
3016
- "app": {
3017
- "type": "object",
3018
- "properties": {
3019
- "baseUrl": {
3020
- "type": "string"
3021
- }
3022
- },
3023
- "required": [
3024
- "baseUrl"
3025
- ]
3026
- },
3027
- "backend": {
2945
+ "auth": {
3028
2946
  "type": "object",
3029
2947
  "properties": {
3030
- "baseUrl": {
3031
- "description": "The full base URL of the backend, as seen from the browser's point of\nview as it makes calls to the backend.",
3032
- "type": "string"
3033
- },
3034
- "lifecycle": {
2948
+ "providers": {
3035
2949
  "type": "object",
3036
2950
  "properties": {
3037
- "startupRequestPauseTimeout": {
3038
- "description": "The maximum time that paused requests will wait for the service to start, before returning an error.\nDefaults to 5 seconds\nSupported formats:\n- A string in the format of '1d', '2 seconds' etc. as supported by the `ms`\n library.\n- A standard ISO formatted duration string, e.g. 'P2DT6H' or 'PT1M'.\n- An object with individual units (in plural) as keys, e.g. `{ days: 2, hours: 6 }`."
3039
- },
3040
- "serverShutdownDelay": {
3041
- "description": "The minimum time that the HTTP server will delay the shutdown of the backend. During this delay health checks will be set to failing, allowing traffic to drain.\nDefaults to 0 seconds.\nSupported formats:\n- A string in the format of '1d', '2 seconds' etc. as supported by the `ms`\n library.\n- A standard ISO formatted duration string, e.g. 'P2DT6H' or 'PT1M'.\n- An object with individual units (in plural) as keys, e.g. `{ days: 2, hours: 6 }`."
3042
- }
3043
- }
3044
- },
3045
- "listen": {
3046
- "description": "Address that the backend should listen to.",
3047
- "anyOf": [
3048
- {
2951
+ "gcpIap": {
2952
+ "description": "Configuration for the Google Cloud Platform Identity-Aware Proxy (IAP) auth provider.",
3049
2953
  "type": "object",
3050
2954
  "properties": {
3051
- "host": {
3052
- "description": "Address of the interface that the backend should bind to.",
2955
+ "audience": {
2956
+ "description": "The audience to use when validating incoming JWT tokens.\nSee https://backstage.io/docs/auth/google/gcp-iap-auth",
3053
2957
  "type": "string"
3054
2958
  },
3055
- "port": {
3056
- "description": "Port that the backend should listen to.",
3057
- "type": [
3058
- "string",
3059
- "number"
3060
- ]
3061
- }
3062
- }
3063
- },
3064
- {
3065
- "type": "string"
3066
- }
3067
- ]
3068
- },
3069
- "https": {
3070
- "description": "HTTPS configuration for the backend. If omitted the backend will serve HTTP.\n\nSetting this to `true` will cause self-signed certificates to be generated, which\ncan be useful for local development or other non-production scenarios.",
3071
- "anyOf": [
3072
- {
3073
- "type": "object",
3074
- "properties": {
3075
- "certificate": {
3076
- "description": "Certificate configuration",
2959
+ "jwtHeader": {
2960
+ "description": "The name of the header to read the JWT token from, defaults to `'x-goog-iap-jwt-assertion'`.",
2961
+ "type": "string"
2962
+ },
2963
+ "signIn": {
3077
2964
  "type": "object",
3078
2965
  "properties": {
3079
- "cert": {
3080
- "description": "PEM encoded certificate. Use $file to load in a file",
3081
- "type": "string"
3082
- },
3083
- "key": {
3084
- "description": "PEM encoded certificate key. Use $file to load in a file.",
3085
- "visibility": "secret",
3086
- "type": "string"
2966
+ "resolvers": {
2967
+ "type": "array",
2968
+ "items": {
2969
+ "anyOf": [
2970
+ {
2971
+ "type": "object",
2972
+ "properties": {
2973
+ "resolver": {
2974
+ "type": "string",
2975
+ "const": "emailMatchingUserEntityAnnotation"
2976
+ }
2977
+ },
2978
+ "required": [
2979
+ "resolver"
2980
+ ]
2981
+ },
2982
+ {
2983
+ "type": "object",
2984
+ "properties": {
2985
+ "resolver": {
2986
+ "type": "string",
2987
+ "const": "idMatchingUserEntityAnnotation"
2988
+ }
2989
+ },
2990
+ "required": [
2991
+ "resolver"
2992
+ ]
2993
+ },
2994
+ {
2995
+ "type": "object",
2996
+ "properties": {
2997
+ "resolver": {
2998
+ "type": "string",
2999
+ "const": "emailLocalPartMatchingUserEntityName"
3000
+ },
3001
+ "allowedDomains": {
3002
+ "type": "array",
3003
+ "items": {
3004
+ "type": "string"
3005
+ }
3006
+ }
3007
+ },
3008
+ "required": [
3009
+ "resolver"
3010
+ ]
3011
+ },
3012
+ {
3013
+ "type": "object",
3014
+ "properties": {
3015
+ "resolver": {
3016
+ "type": "string",
3017
+ "const": "emailMatchingUserEntityProfileEmail"
3018
+ }
3019
+ },
3020
+ "required": [
3021
+ "resolver"
3022
+ ]
3023
+ }
3024
+ ]
3025
+ }
3087
3026
  }
3088
3027
  },
3089
3028
  "required": [
3090
- "cert",
3091
- "key"
3029
+ "resolvers"
3092
3030
  ]
3093
3031
  }
3094
- }
3095
- },
3096
- {
3097
- "const": true,
3098
- "type": "boolean"
3032
+ },
3033
+ "required": [
3034
+ "audience"
3035
+ ]
3099
3036
  }
3100
- ]
3101
- },
3102
- "auth": {
3103
- "description": "Options used by the default auth, httpAuth and userInfo services.",
3037
+ }
3038
+ }
3039
+ }
3040
+ }
3041
+ },
3042
+ "$schema": "http://json-schema.org/draft-07/schema#"
3043
+ },
3044
+ "packageName": "@backstage/plugin-auth-backend-module-gcp-iap-provider"
3045
+ },
3046
+ {
3047
+ "path": "../../plugins/auth-backend-module-github-provider/config.d.ts",
3048
+ "value": {
3049
+ "type": "object",
3050
+ "properties": {
3051
+ "auth": {
3052
+ "type": "object",
3053
+ "properties": {
3054
+ "providers": {
3104
3055
  "type": "object",
3105
3056
  "properties": {
3106
- "keys": {
3107
- "description": "Keys shared by all backends for signing and validating backend tokens.",
3108
- "deprecated": "this will be removed when the backwards compatibility is no longer needed with backend-common",
3109
- "type": "array",
3110
- "items": {
3057
+ "github": {
3058
+ "visibility": "frontend",
3059
+ "type": "object",
3060
+ "additionalProperties": {
3111
3061
  "type": "object",
3112
3062
  "properties": {
3113
- "secret": {
3114
- "description": "Secret for generating tokens. Should be a base64 string, recommended\nlength is 24 bytes.",
3063
+ "clientId": {
3064
+ "type": "string"
3065
+ },
3066
+ "clientSecret": {
3115
3067
  "visibility": "secret",
3116
3068
  "type": "string"
3117
- }
3118
- },
3119
- "required": [
3120
- "secret"
3121
- ]
3122
- }
3123
- },
3124
- "dangerouslyDisableDefaultAuthPolicy": {
3125
- "description": "This disables the otherwise default auth policy, which requires all\nrequests to be authenticated with either user or service credentials.\n\nDisabling this check means that the backend will no longer block\nunauthenticated requests, but instead allow them to pass through to\nplugins.\n\nIf permissions are enabled, unauthenticated requests will be treated\nexactly as such, leaving it to the permission policy to determine what\npermissions should be allowed for an unauthenticated identity. Note\nthat this will also apply to service-to-service calls between plugins\nunless you configure credentials for service calls.",
3126
- "type": "boolean"
3127
- },
3128
- "pluginKeyStore": {
3129
- "description": "Controls how to store keys for plugin-to-plugin auth",
3130
- "anyOf": [
3131
- {
3132
- "type": "object",
3133
- "properties": {
3134
- "type": {
3135
- "type": "string",
3136
- "const": "database"
3137
- }
3138
3069
  },
3139
- "required": [
3140
- "type"
3141
- ]
3142
- },
3143
- {
3144
- "type": "object",
3145
- "properties": {
3146
- "type": {
3147
- "type": "string",
3148
- "const": "static"
3149
- },
3150
- "static": {
3151
- "type": "object",
3152
- "properties": {
3153
- "keys": {
3154
- "description": "Must be declared at least once and the first one will be used for signing.",
3155
- "type": "array",
3156
- "items": {
3157
- "type": "object",
3158
- "properties": {
3159
- "publicKeyFile": {
3160
- "description": "Path to the public key file in the SPKI format. Should be an absolute path.",
3161
- "type": "string"
3162
- },
3163
- "privateKeyFile": {
3164
- "description": "Path to the matching private key file in the PKCS#8 format. Should be an absolute path.\n\nThe first array entry must specify a private key file, the rest must not.",
3165
- "type": "string"
3166
- },
3167
- "keyId": {
3168
- "description": "ID to uniquely identify this key within the JWK set.",
3169
- "type": "string"
3170
- },
3171
- "algorithm": {
3172
- "description": "JWS \"alg\" (Algorithm) Header Parameter value. Defaults to ES256.\nMust match the algorithm used to generate the keys in the provided files",
3173
- "type": "string"
3174
- }
3175
- },
3176
- "required": [
3177
- "keyId",
3178
- "publicKeyFile"
3179
- ]
3180
- }
3181
- }
3182
- },
3183
- "required": [
3184
- "keys"
3185
- ]
3186
- }
3070
+ "callbackUrl": {
3071
+ "type": "string"
3187
3072
  },
3188
- "required": [
3189
- "static",
3190
- "type"
3191
- ]
3192
- }
3193
- ]
3194
- },
3195
- "externalAccess": {
3196
- "description": "Configures methods of external access, ie ways for callers outside of\nthe Backstage ecosystem to get authorized for access to APIs that do\nnot permit unauthorized access.",
3197
- "type": "array",
3198
- "items": {
3199
- "anyOf": [
3200
- {
3201
- "type": "object",
3202
- "properties": {
3203
- "type": {
3204
- "description": "This is the legacy service-to-service access method, where a set\nof static keys were shared among plugins and used for symmetric\nsigning and verification. These correspond to the old\n`backend.auth.keys` set and retain their behavior for backwards\ncompatibility. Please migrate to other access methods when\npossible.\n\nCallers generate JWT tokens with the following payload:\n\n```json\n{\n \"sub\": \"backstage-plugin\",\n \"exp\": <epoch seconds one hour in the future>\n}\n```\n\nAnd sign them with HS256, using the base64 decoded secret. The\ntokens are then passed along with requests in the Authorization\nheader:\n\n```\nAuthorization: Bearer eyJhbGciOiJIUzI...\n```",
3205
- "type": "string",
3206
- "const": "legacy"
3207
- },
3208
- "options": {
3209
- "type": "object",
3210
- "properties": {
3211
- "secret": {
3212
- "description": "Any set of base64 encoded random bytes to be used as both the\nsigning and verification key. Should be sufficiently long so as\nnot to be easy to guess by brute force.\n\nCan be generated eg using\n\n```sh\nnode -p 'require(\"crypto\").randomBytes(24).toString(\"base64\")'\n```",
3213
- "visibility": "secret",
3214
- "type": "string"
3215
- },
3216
- "subject": {
3217
- "description": "Sets the subject of the principal, when matching this token.\nUseful for debugging and tracking purposes.",
3218
- "type": "string"
3219
- }
3220
- },
3221
- "required": [
3222
- "secret",
3223
- "subject"
3224
- ]
3225
- },
3226
- "accessRestrictions": {
3227
- "description": "Restricts what types of access that are permitted for this access\nmethod. If no access restrictions are given, it'll have unlimited\naccess. This access restriction applies for the framework level;\nindividual plugins may have their own access control mechanisms\non top of this.",
3073
+ "enterpriseInstanceUrl": {
3074
+ "type": "string"
3075
+ },
3076
+ "additionalScopes": {
3077
+ "anyOf": [
3078
+ {
3228
3079
  "type": "array",
3229
3080
  "items": {
3230
- "type": "object",
3231
- "properties": {
3232
- "plugin": {
3233
- "description": "Permit access to make requests to this plugin.\n\nCan be further refined by setting additional fields below.",
3234
- "type": "string"
3235
- },
3236
- "permission": {
3237
- "description": "If given, this method is limited to only performing actions\nwith these named permissions in this plugin.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
3238
- "anyOf": [
3239
- {
3240
- "type": "array",
3241
- "items": {
3242
- "type": "string"
3243
- }
3244
- },
3245
- {
3246
- "type": "string"
3247
- }
3248
- ]
3249
- },
3250
- "permissionAttribute": {
3251
- "description": "If given, this method is limited to only performing actions\nwhose permissions have these attributes.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
3252
- "type": "object",
3253
- "properties": {
3254
- "action": {
3255
- "description": "One of more of 'create', 'read', 'update', or 'delete'.",
3256
- "anyOf": [
3257
- {
3258
- "type": "array",
3259
- "items": {
3260
- "type": "string"
3261
- }
3262
- },
3263
- {
3264
- "type": "string"
3265
- }
3266
- ]
3267
- }
3268
- }
3269
- }
3270
- },
3271
- "required": [
3272
- "plugin"
3273
- ]
3081
+ "type": "string"
3274
3082
  }
3083
+ },
3084
+ {
3085
+ "type": "string"
3275
3086
  }
3276
- },
3277
- "required": [
3278
- "options",
3279
- "type"
3280
3087
  ]
3281
3088
  },
3282
- {
3089
+ "signIn": {
3283
3090
  "type": "object",
3284
3091
  "properties": {
3285
- "type": {
3286
- "description": "This access method consists of random static tokens that can be\nhanded out to callers.\n\nThe tokens are then passed along verbatim with requests in the\nAuthorization header:\n\n```\nAuthorization: Bearer eZv5o+fW3KnR3kVabMW4ZcDNLPl8nmMW\n```",
3287
- "type": "string",
3288
- "const": "static"
3289
- },
3290
- "options": {
3291
- "type": "object",
3292
- "properties": {
3293
- "token": {
3294
- "description": "A raw token that can be any string, but for security reasons\nshould be sufficiently long so as not to be easy to guess by\nbrute force.\n\nCan be generated eg using\n\n```sh\nnode -p 'require(\"crypto\").randomBytes(24).toString(\"base64\")'\n```\n\nSince the tokens can be any string, you are free to add\nadditional identifying data to them if you like. For example,\nadding a `freben-local-dev-` prefix for debugging purposes to a\ntoken that you know will be handed out for use as a personal\naccess token during development.",
3295
- "visibility": "secret",
3296
- "type": "string"
3297
- },
3298
- "subject": {
3299
- "description": "Sets the subject of the principal, when matching this token.\nUseful for debugging and tracking purposes.",
3300
- "type": "string"
3301
- }
3302
- },
3303
- "required": [
3304
- "subject",
3305
- "token"
3306
- ]
3307
- },
3308
- "accessRestrictions": {
3309
- "description": "Restricts what types of access that are permitted for this access\nmethod. If no access restrictions are given, it'll have unlimited\naccess. This access restriction applies for the framework level;\nindividual plugins may have their own access control mechanisms\non top of this.",
3092
+ "resolvers": {
3310
3093
  "type": "array",
3311
3094
  "items": {
3312
- "type": "object",
3313
- "properties": {
3314
- "plugin": {
3315
- "description": "Permit access to make requests to this plugin.\n\nCan be further refined by setting additional fields below.",
3316
- "type": "string"
3095
+ "anyOf": [
3096
+ {
3097
+ "type": "object",
3098
+ "properties": {
3099
+ "resolver": {
3100
+ "type": "string",
3101
+ "const": "usernameMatchingUserEntityName"
3102
+ }
3103
+ },
3104
+ "required": [
3105
+ "resolver"
3106
+ ]
3317
3107
  },
3318
- "permission": {
3319
- "description": "If given, this method is limited to only performing actions\nwith these named permissions in this plugin.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
3320
- "anyOf": [
3321
- {
3108
+ {
3109
+ "type": "object",
3110
+ "properties": {
3111
+ "resolver": {
3112
+ "type": "string",
3113
+ "const": "emailLocalPartMatchingUserEntityName"
3114
+ },
3115
+ "allowedDomains": {
3322
3116
  "type": "array",
3323
3117
  "items": {
3324
3118
  "type": "string"
3325
3119
  }
3326
- },
3327
- {
3328
- "type": "string"
3329
3120
  }
3121
+ },
3122
+ "required": [
3123
+ "resolver"
3330
3124
  ]
3331
3125
  },
3332
- "permissionAttribute": {
3333
- "description": "If given, this method is limited to only performing actions\nwhose permissions have these attributes.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
3126
+ {
3334
3127
  "type": "object",
3335
3128
  "properties": {
3336
- "action": {
3337
- "description": "One of more of 'create', 'read', 'update', or 'delete'.",
3338
- "anyOf": [
3339
- {
3340
- "type": "array",
3341
- "items": {
3342
- "type": "string"
3343
- }
3344
- },
3345
- {
3346
- "type": "string"
3347
- }
3348
- ]
3129
+ "resolver": {
3130
+ "type": "string",
3131
+ "const": "emailMatchingUserEntityProfileEmail"
3349
3132
  }
3350
- }
3133
+ },
3134
+ "required": [
3135
+ "resolver"
3136
+ ]
3351
3137
  }
3352
- },
3353
- "required": [
3354
- "plugin"
3355
3138
  ]
3356
3139
  }
3357
3140
  }
3358
3141
  },
3359
3142
  "required": [
3360
- "options",
3361
- "type"
3362
- ]
3363
- },
3364
- {
3365
- "type": "object",
3366
- "properties": {
3367
- "type": {
3368
- "description": "This access method consists of a JWKS endpoint that can be used to\nverify JWT tokens.\n\nCallers generate JWT tokens via 3rd party tooling\nand pass them in the Authorization header:\n\n```\nAuthorization: Bearer eZv5o+fW3KnR3kVabMW4ZcDNLPl8nmMW\n```",
3369
- "type": "string",
3370
- "const": "jwks"
3371
- },
3372
- "options": {
3373
- "type": "object",
3374
- "properties": {
3375
- "url": {
3376
- "description": "The full URL of the JWKS endpoint.",
3377
- "type": "string"
3378
- },
3379
- "algorithm": {
3380
- "description": "Sets the algorithm(s) that should be used to verify the JWT tokens.\nThe passed JWTs must have been signed using one of the listed algorithms.",
3381
- "anyOf": [
3382
- {
3383
- "type": "array",
3384
- "items": {
3385
- "type": "string"
3386
- }
3387
- },
3388
- {
3389
- "type": "string"
3390
- }
3391
- ]
3392
- },
3393
- "issuer": {
3394
- "description": "Sets the issuer(s) that should be used to verify the JWT tokens.\nPassed JWTs must have an `iss` claim which matches one of the specified issuers.",
3395
- "anyOf": [
3396
- {
3397
- "type": "array",
3398
- "items": {
3399
- "type": "string"
3400
- }
3401
- },
3402
- {
3403
- "type": "string"
3404
- }
3405
- ]
3406
- },
3407
- "audience": {
3408
- "description": "Sets the audience(s) that should be used to verify the JWT tokens.\nThe passed JWTs must have an \"aud\" claim that matches one of the audiences specified,\nor have no audience specified.",
3409
- "anyOf": [
3410
- {
3411
- "type": "array",
3412
- "items": {
3413
- "type": "string"
3414
- }
3415
- },
3416
- {
3417
- "type": "string"
3418
- }
3419
- ]
3420
- },
3421
- "subjectPrefix": {
3422
- "description": "Sets an optional subject prefix. Passes the subject to called plugins.\nUseful for debugging and tracking purposes.",
3423
- "type": "string"
3424
- }
3425
- },
3426
- "required": [
3427
- "url"
3428
- ]
3429
- },
3430
- "accessRestrictions": {
3431
- "description": "Restricts what types of access that are permitted for this access\nmethod. If no access restrictions are given, it'll have unlimited\naccess. This access restriction applies for the framework level;\nindividual plugins may have their own access control mechanisms\non top of this.",
3432
- "type": "array",
3433
- "items": {
3434
- "type": "object",
3435
- "properties": {
3436
- "plugin": {
3437
- "description": "Permit access to make requests to this plugin.\n\nCan be further refined by setting additional fields below.",
3438
- "type": "string"
3439
- },
3440
- "permission": {
3441
- "description": "If given, this method is limited to only performing actions\nwith these named permissions in this plugin.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
3442
- "anyOf": [
3443
- {
3444
- "type": "array",
3445
- "items": {
3446
- "type": "string"
3447
- }
3448
- },
3449
- {
3450
- "type": "string"
3451
- }
3452
- ]
3453
- },
3454
- "permissionAttribute": {
3455
- "description": "If given, this method is limited to only performing actions\nwhose permissions have these attributes.\n\nNote that this only applies where permissions checks are\nenabled in the first place. Endpoints that are not protected by\nthe permissions system at all, are not affected by this\nsetting.",
3456
- "type": "object",
3457
- "properties": {
3458
- "action": {
3459
- "description": "One of more of 'create', 'read', 'update', or 'delete'.",
3460
- "anyOf": [
3461
- {
3462
- "type": "array",
3463
- "items": {
3464
- "type": "string"
3465
- }
3466
- },
3467
- {
3468
- "type": "string"
3469
- }
3470
- ]
3471
- }
3472
- }
3473
- }
3474
- },
3475
- "required": [
3476
- "plugin"
3477
- ]
3478
- }
3479
- }
3480
- },
3481
- "required": [
3482
- "options",
3483
- "type"
3143
+ "resolvers"
3484
3144
  ]
3485
3145
  }
3146
+ },
3147
+ "required": [
3148
+ "clientId",
3149
+ "clientSecret"
3486
3150
  ]
3487
3151
  }
3488
3152
  }
3489
3153
  }
3490
- },
3491
- "database": {
3492
- "description": "Database connection configuration, select base database type using the `client` field",
3154
+ }
3155
+ }
3156
+ }
3157
+ },
3158
+ "$schema": "http://json-schema.org/draft-07/schema#"
3159
+ },
3160
+ "packageName": "@backstage/plugin-auth-backend-module-github-provider"
3161
+ },
3162
+ {
3163
+ "path": "../../plugins/auth-backend-module-gitlab-provider/config.d.ts",
3164
+ "value": {
3165
+ "type": "object",
3166
+ "properties": {
3167
+ "auth": {
3168
+ "type": "object",
3169
+ "properties": {
3170
+ "providers": {
3493
3171
  "type": "object",
3494
3172
  "properties": {
3495
- "client": {
3496
- "description": "Default database client to use",
3497
- "enum": [
3498
- "better-sqlite3",
3499
- "pg",
3500
- "sqlite3"
3501
- ],
3502
- "type": "string"
3503
- },
3504
- "connection": {
3505
- "description": "Base database connection string, or object with individual connection properties",
3506
- "visibility": "secret",
3507
- "anyOf": [
3508
- {
3509
- "type": "object",
3510
- "properties": {
3511
- "type": {
3512
- "description": "The specific config for cloudsql connections",
3513
- "type": "string",
3514
- "const": "cloudsql"
3515
- },
3516
- "instance": {
3517
- "description": "The instance connection name for the cloudsql instance, e.g. `project:region:instance`",
3518
- "type": "string"
3519
- }
3520
- },
3521
- "required": [
3522
- "instance",
3523
- "type"
3524
- ]
3525
- },
3526
- {
3527
- "type": "object",
3528
- "additionalProperties": {},
3529
- "properties": {
3530
- "password": {
3531
- "description": "Password that belongs to the client User",
3532
- "visibility": "secret",
3533
- "type": "string"
3534
- }
3535
- }
3536
- },
3537
- {
3538
- "type": "string"
3539
- }
3540
- ]
3541
- },
3542
- "prefix": {
3543
- "description": "Database name prefix override",
3544
- "type": "string"
3545
- },
3546
- "ensureExists": {
3547
- "description": "Whether to ensure the given database exists by creating it if it does not.\nDefaults to true if unspecified.",
3548
- "type": "boolean"
3549
- },
3550
- "ensureSchemaExists": {
3551
- "description": "Whether to ensure the given database schema exists by creating it if it does not.\nDefaults to false if unspecified.\n\nNOTE: Currently only supported by the `pg` client when pluginDivisionMode: schema",
3552
- "type": "boolean"
3553
- },
3554
- "pluginDivisionMode": {
3555
- "description": "How plugins databases are managed/divided in the provided database instance.\n\n`database` -> Plugins are each given their own database to manage their schemas/tables.\n\n`schema` -> Plugins will be given their own schema (in the specified/default database)\n to manage their tables.\n\nNOTE: Currently only supported by the `pg` client.",
3556
- "default": "database",
3557
- "enum": [
3558
- "database",
3559
- "schema"
3560
- ],
3561
- "type": "string"
3562
- },
3563
- "role": {
3564
- "description": "Configures the ownership of newly created schemas in pg databases.",
3565
- "type": "string"
3566
- },
3567
- "knexConfig": {
3568
- "description": "Arbitrary config object to pass to knex when initializing\n(https://knexjs.org/#Installation-client). Most notable is the debug\nand asyncStackTraces booleans",
3569
- "type": "object",
3570
- "properties": {},
3571
- "additionalProperties": true
3572
- },
3573
- "skipMigrations": {
3574
- "description": "Skip running database migrations.",
3575
- "type": "boolean"
3576
- },
3577
- "plugin": {
3578
- "description": "Plugin specific database configuration and client override",
3173
+ "gitlab": {
3174
+ "visibility": "frontend",
3579
3175
  "type": "object",
3580
3176
  "additionalProperties": {
3581
3177
  "type": "object",
3582
3178
  "properties": {
3583
- "client": {
3584
- "description": "Database client override",
3585
- "enum": [
3586
- "better-sqlite3",
3587
- "pg",
3588
- "sqlite3"
3589
- ],
3179
+ "clientId": {
3590
3180
  "type": "string"
3591
3181
  },
3592
- "connection": {
3593
- "description": "Database connection string or Knex object override",
3182
+ "clientSecret": {
3594
3183
  "visibility": "secret",
3184
+ "type": "string"
3185
+ },
3186
+ "audience": {
3187
+ "type": "string"
3188
+ },
3189
+ "callbackUrl": {
3190
+ "type": "string"
3191
+ },
3192
+ "additionalScopes": {
3595
3193
  "anyOf": [
3596
3194
  {
3597
- "type": "object",
3598
- "properties": {
3599
- "type": {
3600
- "description": "The specific config for cloudsql connections",
3601
- "type": "string",
3602
- "const": "cloudsql"
3603
- },
3604
- "instance": {
3605
- "description": "The instance connection name for the cloudsql instance, e.g. `project:region:instance`",
3606
- "type": "string"
3607
- }
3608
- },
3609
- "required": [
3610
- "instance",
3611
- "type"
3612
- ]
3613
- },
3614
- {
3615
- "type": "object",
3616
- "additionalProperties": {},
3617
- "properties": {
3618
- "password": {
3619
- "description": "Password that belongs to the client User",
3620
- "visibility": "secret",
3621
- "type": "string"
3622
- }
3195
+ "type": "array",
3196
+ "items": {
3197
+ "type": "string"
3623
3198
  }
3624
3199
  },
3625
3200
  {
@@ -3627,377 +3202,783 @@
3627
3202
  }
3628
3203
  ]
3629
3204
  },
3630
- "ensureExists": {
3631
- "description": "Whether to ensure the given database exists by creating it if it does not.\nDefaults to base config if unspecified.",
3632
- "type": "boolean"
3633
- },
3634
- "ensureSchemaExists": {
3635
- "description": "Whether to ensure the given database schema exists by creating it if it does not.\nDefaults to false if unspecified.\n\nNOTE: Currently only supported by the `pg` client when pluginDivisionMode: schema",
3636
- "type": "boolean"
3637
- },
3638
- "knexConfig": {
3639
- "description": "Arbitrary config object to pass to knex when initializing\n(https://knexjs.org/#Installation-client). Most notable is the\ndebug and asyncStackTraces booleans.\n\nThis is merged recursively into the base knexConfig",
3205
+ "signIn": {
3640
3206
  "type": "object",
3641
- "properties": {},
3642
- "additionalProperties": true
3643
- },
3644
- "role": {
3645
- "description": "Configures the ownership of newly created schemas in pg databases.",
3646
- "type": "string"
3647
- },
3648
- "skipMigrations": {
3649
- "description": "Skip running database migrations.",
3650
- "type": "boolean"
3651
- }
3652
- }
3653
- }
3654
- }
3655
- },
3656
- "required": [
3657
- "client",
3658
- "connection"
3659
- ]
3660
- },
3661
- "cache": {
3662
- "description": "Cache connection configuration, select cache type using the `store` field",
3663
- "anyOf": [
3664
- {
3665
- "type": "object",
3666
- "properties": {
3667
- "store": {
3668
- "type": "string",
3669
- "const": "memory"
3670
- },
3671
- "defaultTtl": {
3672
- "description": "An optional default TTL (in milliseconds, if given as a number)."
3673
- }
3674
- },
3675
- "required": [
3676
- "store"
3677
- ]
3678
- },
3679
- {
3680
- "type": "object",
3681
- "properties": {
3682
- "store": {
3683
- "type": "string",
3684
- "const": "redis"
3685
- },
3686
- "connection": {
3687
- "description": "A redis connection string in the form `redis://user:pass@host:port`.",
3688
- "visibility": "secret",
3689
- "type": "string"
3690
- },
3691
- "defaultTtl": {
3692
- "description": "An optional default TTL (in milliseconds, if given as a number)."
3693
- }
3694
- },
3695
- "required": [
3696
- "connection",
3697
- "store"
3698
- ]
3699
- },
3700
- {
3701
- "type": "object",
3702
- "properties": {
3703
- "store": {
3704
- "type": "string",
3705
- "const": "memcache"
3706
- },
3707
- "connection": {
3708
- "description": "A memcache connection string in the form `user:pass@host:port`.",
3709
- "visibility": "secret",
3710
- "type": "string"
3711
- },
3712
- "defaultTtl": {
3713
- "description": "An optional default TTL (in milliseconds)."
3714
- }
3715
- },
3716
- "required": [
3717
- "connection",
3718
- "store"
3719
- ]
3720
- }
3721
- ]
3722
- },
3723
- "cors": {
3724
- "type": "object",
3725
- "properties": {
3726
- "origin": {
3727
- "anyOf": [
3728
- {
3729
- "type": "array",
3730
- "items": {
3731
- "type": "string"
3732
- }
3733
- },
3734
- {
3735
- "type": "string"
3736
- }
3737
- ]
3738
- },
3739
- "methods": {
3740
- "anyOf": [
3741
- {
3742
- "type": "array",
3743
- "items": {
3744
- "type": "string"
3745
- }
3746
- },
3747
- {
3748
- "type": "string"
3749
- }
3750
- ]
3751
- },
3752
- "allowedHeaders": {
3753
- "anyOf": [
3754
- {
3755
- "type": "array",
3756
- "items": {
3757
- "type": "string"
3758
- }
3759
- },
3760
- {
3761
- "type": "string"
3762
- }
3763
- ]
3764
- },
3765
- "exposedHeaders": {
3766
- "anyOf": [
3767
- {
3768
- "type": "array",
3769
- "items": {
3770
- "type": "string"
3207
+ "properties": {
3208
+ "resolvers": {
3209
+ "type": "array",
3210
+ "items": {
3211
+ "anyOf": [
3212
+ {
3213
+ "type": "object",
3214
+ "properties": {
3215
+ "resolver": {
3216
+ "type": "string",
3217
+ "const": "usernameMatchingUserEntityName"
3218
+ }
3219
+ },
3220
+ "required": [
3221
+ "resolver"
3222
+ ]
3223
+ },
3224
+ {
3225
+ "type": "object",
3226
+ "properties": {
3227
+ "resolver": {
3228
+ "type": "string",
3229
+ "const": "emailLocalPartMatchingUserEntityName"
3230
+ },
3231
+ "allowedDomains": {
3232
+ "type": "array",
3233
+ "items": {
3234
+ "type": "string"
3235
+ }
3236
+ }
3237
+ },
3238
+ "required": [
3239
+ "resolver"
3240
+ ]
3241
+ },
3242
+ {
3243
+ "type": "object",
3244
+ "properties": {
3245
+ "resolver": {
3246
+ "type": "string",
3247
+ "const": "emailMatchingUserEntityProfileEmail"
3248
+ }
3249
+ },
3250
+ "required": [
3251
+ "resolver"
3252
+ ]
3253
+ }
3254
+ ]
3255
+ }
3256
+ }
3257
+ },
3258
+ "required": [
3259
+ "resolvers"
3260
+ ]
3771
3261
  }
3772
- },
3773
- {
3774
- "type": "string"
3775
- }
3776
- ]
3777
- },
3778
- "credentials": {
3779
- "type": "boolean"
3780
- },
3781
- "maxAge": {
3782
- "type": "number"
3783
- },
3784
- "preflightContinue": {
3785
- "type": "boolean"
3786
- },
3787
- "optionsSuccessStatus": {
3788
- "type": "number"
3789
- }
3790
- }
3791
- },
3792
- "csp": {
3793
- "description": "Content Security Policy options.\n\nThe keys are the plain policy ID, e.g. \"upgrade-insecure-requests\". The\nvalues are on the format that the helmet library expects them, as an\narray of strings. There is also the special value false, which means to\nremove the default value that Backstage puts in place for that policy.",
3794
- "type": "object",
3795
- "additionalProperties": {
3796
- "anyOf": [
3797
- {
3798
- "type": "array",
3799
- "items": {
3800
- "type": "string"
3801
- }
3802
- },
3803
- {
3804
- "const": false,
3805
- "type": "boolean"
3262
+ },
3263
+ "required": [
3264
+ "clientId",
3265
+ "clientSecret"
3266
+ ]
3806
3267
  }
3807
- ]
3268
+ }
3808
3269
  }
3809
- },
3810
- "health": {
3811
- "description": "Options for the health check service and endpoint.",
3270
+ }
3271
+ }
3272
+ }
3273
+ },
3274
+ "$schema": "http://json-schema.org/draft-07/schema#"
3275
+ },
3276
+ "packageName": "@backstage/plugin-auth-backend-module-gitlab-provider"
3277
+ },
3278
+ {
3279
+ "path": "../../plugins/auth-backend-module-google-provider/config.d.ts",
3280
+ "value": {
3281
+ "type": "object",
3282
+ "properties": {
3283
+ "auth": {
3284
+ "description": "Configuration options for the auth plugin",
3285
+ "type": "object",
3286
+ "properties": {
3287
+ "providers": {
3812
3288
  "type": "object",
3813
3289
  "properties": {
3814
- "headers": {
3815
- "description": "Additional headers to always include in the health check response.\n\nIt can be a good idea to set a header that uniquely identifies your service\nin a multi-service environment. This ensures that the health check that is\nconfigured for your service is actually hitting your service and not another.\n\nFor example, if using Envoy you can use the `service_name_matcher` configuration\nand set the `x-envoy-upstream-healthchecked-cluster` header to a matching value.",
3290
+ "google": {
3291
+ "visibility": "frontend",
3816
3292
  "type": "object",
3817
3293
  "additionalProperties": {
3818
- "type": "string"
3294
+ "type": "object",
3295
+ "properties": {
3296
+ "clientId": {
3297
+ "type": "string"
3298
+ },
3299
+ "clientSecret": {
3300
+ "visibility": "secret",
3301
+ "type": "string"
3302
+ },
3303
+ "callbackUrl": {
3304
+ "type": "string"
3305
+ },
3306
+ "additionalScopes": {
3307
+ "anyOf": [
3308
+ {
3309
+ "type": "array",
3310
+ "items": {
3311
+ "type": "string"
3312
+ }
3313
+ },
3314
+ {
3315
+ "type": "string"
3316
+ }
3317
+ ]
3318
+ },
3319
+ "signIn": {
3320
+ "type": "object",
3321
+ "properties": {
3322
+ "resolvers": {
3323
+ "type": "array",
3324
+ "items": {
3325
+ "anyOf": [
3326
+ {
3327
+ "type": "object",
3328
+ "properties": {
3329
+ "resolver": {
3330
+ "type": "string",
3331
+ "const": "emailMatchingUserEntityAnnotation"
3332
+ }
3333
+ },
3334
+ "required": [
3335
+ "resolver"
3336
+ ]
3337
+ },
3338
+ {
3339
+ "type": "object",
3340
+ "properties": {
3341
+ "resolver": {
3342
+ "type": "string",
3343
+ "const": "emailLocalPartMatchingUserEntityName"
3344
+ },
3345
+ "allowedDomains": {
3346
+ "type": "array",
3347
+ "items": {
3348
+ "type": "string"
3349
+ }
3350
+ }
3351
+ },
3352
+ "required": [
3353
+ "resolver"
3354
+ ]
3355
+ },
3356
+ {
3357
+ "type": "object",
3358
+ "properties": {
3359
+ "resolver": {
3360
+ "type": "string",
3361
+ "const": "emailMatchingUserEntityProfileEmail"
3362
+ }
3363
+ },
3364
+ "required": [
3365
+ "resolver"
3366
+ ]
3367
+ }
3368
+ ]
3369
+ }
3370
+ }
3371
+ },
3372
+ "required": [
3373
+ "resolvers"
3374
+ ]
3375
+ }
3376
+ },
3377
+ "required": [
3378
+ "clientId",
3379
+ "clientSecret"
3380
+ ]
3819
3381
  }
3820
3382
  }
3821
3383
  }
3822
- },
3823
- "reading": {
3824
- "description": "Configuration related to URL reading, used for example for reading catalog info\nfiles, scaffolder templates, and techdocs content.",
3384
+ }
3385
+ }
3386
+ }
3387
+ },
3388
+ "$schema": "http://json-schema.org/draft-07/schema#"
3389
+ },
3390
+ "packageName": "@backstage/plugin-auth-backend-module-google-provider"
3391
+ },
3392
+ {
3393
+ "path": "../../plugins/auth-backend-module-microsoft-provider/config.d.ts",
3394
+ "value": {
3395
+ "type": "object",
3396
+ "properties": {
3397
+ "auth": {
3398
+ "type": "object",
3399
+ "properties": {
3400
+ "providers": {
3825
3401
  "type": "object",
3826
3402
  "properties": {
3827
- "allow": {
3828
- "description": "A list of targets to allow outgoing requests to. Users will be able to make\nrequests on behalf of the backend to the targets that are allowed by this list.",
3829
- "type": "array",
3830
- "items": {
3403
+ "microsoft": {
3404
+ "visibility": "frontend",
3405
+ "type": "object",
3406
+ "additionalProperties": {
3831
3407
  "type": "object",
3832
3408
  "properties": {
3833
- "host": {
3834
- "description": "A host to allow outgoing requests to, being either a full host or\na subdomain wildcard pattern with a leading `*`. For example `example.com`\nand `*.example.com` are valid values, `prod.*.example.com` is not.\nThe host may also contain a port, for example `example.com:8080`.",
3409
+ "clientId": {
3835
3410
  "type": "string"
3836
3411
  },
3837
- "paths": {
3838
- "description": "An optional list of paths. In case they are present only targets matching\nany of them will are allowed. You can use trailing slashes to make sure only\nsubdirectories are allowed, for example `/mydir/` will allow targets with\npaths like `/mydir/a` but will block paths like `/mydir2`.",
3839
- "type": "array",
3840
- "items": {
3841
- "type": "string"
3842
- }
3412
+ "tenantId": {
3413
+ "type": "string"
3414
+ },
3415
+ "clientSecret": {
3416
+ "visibility": "secret",
3417
+ "type": "string"
3418
+ },
3419
+ "domainHint": {
3420
+ "type": "string"
3421
+ },
3422
+ "callbackUrl": {
3423
+ "type": "string"
3424
+ },
3425
+ "additionalScopes": {
3426
+ "anyOf": [
3427
+ {
3428
+ "type": "array",
3429
+ "items": {
3430
+ "type": "string"
3431
+ }
3432
+ },
3433
+ {
3434
+ "type": "string"
3435
+ }
3436
+ ]
3437
+ },
3438
+ "skipUserProfile": {
3439
+ "type": "boolean"
3440
+ },
3441
+ "signIn": {
3442
+ "type": "object",
3443
+ "properties": {
3444
+ "resolvers": {
3445
+ "type": "array",
3446
+ "items": {
3447
+ "anyOf": [
3448
+ {
3449
+ "type": "object",
3450
+ "properties": {
3451
+ "resolver": {
3452
+ "type": "string",
3453
+ "const": "emailMatchingUserEntityAnnotation"
3454
+ }
3455
+ },
3456
+ "required": [
3457
+ "resolver"
3458
+ ]
3459
+ },
3460
+ {
3461
+ "type": "object",
3462
+ "properties": {
3463
+ "resolver": {
3464
+ "type": "string",
3465
+ "const": "emailLocalPartMatchingUserEntityName"
3466
+ },
3467
+ "allowedDomains": {
3468
+ "type": "array",
3469
+ "items": {
3470
+ "type": "string"
3471
+ }
3472
+ }
3473
+ },
3474
+ "required": [
3475
+ "resolver"
3476
+ ]
3477
+ },
3478
+ {
3479
+ "type": "object",
3480
+ "properties": {
3481
+ "resolver": {
3482
+ "type": "string",
3483
+ "const": "emailMatchingUserEntityProfileEmail"
3484
+ }
3485
+ },
3486
+ "required": [
3487
+ "resolver"
3488
+ ]
3489
+ }
3490
+ ]
3491
+ }
3492
+ }
3493
+ },
3494
+ "required": [
3495
+ "resolvers"
3496
+ ]
3843
3497
  }
3844
3498
  },
3845
3499
  "required": [
3846
- "host"
3500
+ "clientId",
3501
+ "clientSecret",
3502
+ "tenantId"
3847
3503
  ]
3848
3504
  }
3849
3505
  }
3850
- }
3851
- }
3852
- },
3853
- "required": [
3854
- "baseUrl",
3855
- "database"
3856
- ]
3857
- },
3858
- "discovery": {
3859
- "description": "Options used by the default discovery service.",
3506
+ }
3507
+ }
3508
+ }
3509
+ }
3510
+ },
3511
+ "$schema": "http://json-schema.org/draft-07/schema#"
3512
+ },
3513
+ "packageName": "@backstage/plugin-auth-backend-module-microsoft-provider"
3514
+ },
3515
+ {
3516
+ "path": "../../plugins/auth-backend-module-oauth2-provider/config.d.ts",
3517
+ "value": {
3518
+ "type": "object",
3519
+ "properties": {
3520
+ "auth": {
3860
3521
  "type": "object",
3861
3522
  "properties": {
3862
- "endpoints": {
3863
- "description": "A list of target baseUrls and the associated plugins.",
3864
- "type": "array",
3865
- "items": {
3866
- "type": "object",
3867
- "properties": {
3868
- "target": {
3869
- "description": "The target base URL to use for the plugin.\n\nCan be either a string or an object with internal and external keys.\nTargets with `{{pluginId}}` or `{{ pluginId }} in the URL will be replaced with the plugin ID.",
3870
- "anyOf": [
3871
- {
3872
- "type": "object",
3873
- "properties": {
3874
- "internal": {
3875
- "type": "string"
3523
+ "providers": {
3524
+ "type": "object",
3525
+ "properties": {
3526
+ "oauth2": {
3527
+ "visibility": "frontend",
3528
+ "type": "object",
3529
+ "additionalProperties": {
3530
+ "type": "object",
3531
+ "properties": {
3532
+ "clientId": {
3533
+ "type": "string"
3534
+ },
3535
+ "clientSecret": {
3536
+ "visibility": "secret",
3537
+ "type": "string"
3538
+ },
3539
+ "authorizationUrl": {
3540
+ "type": "string"
3541
+ },
3542
+ "tokenUrl": {
3543
+ "type": "string"
3544
+ },
3545
+ "scope": {
3546
+ "deprecated": "use `additionalScopes` instead",
3547
+ "type": "string"
3548
+ },
3549
+ "additionalScopes": {
3550
+ "anyOf": [
3551
+ {
3552
+ "type": "array",
3553
+ "items": {
3554
+ "type": "string"
3555
+ }
3876
3556
  },
3877
- "external": {
3557
+ {
3878
3558
  "type": "string"
3879
3559
  }
3560
+ ]
3561
+ },
3562
+ "disableRefresh": {
3563
+ "type": "boolean"
3564
+ },
3565
+ "includeBasicAuth": {
3566
+ "type": "boolean"
3567
+ },
3568
+ "signIn": {
3569
+ "type": "object",
3570
+ "properties": {
3571
+ "resolvers": {
3572
+ "type": "array",
3573
+ "items": {
3574
+ "anyOf": [
3575
+ {
3576
+ "type": "object",
3577
+ "properties": {
3578
+ "resolver": {
3579
+ "type": "string",
3580
+ "const": "usernameMatchingUserEntityName"
3581
+ }
3582
+ },
3583
+ "required": [
3584
+ "resolver"
3585
+ ]
3586
+ },
3587
+ {
3588
+ "type": "object",
3589
+ "properties": {
3590
+ "resolver": {
3591
+ "type": "string",
3592
+ "const": "emailLocalPartMatchingUserEntityName"
3593
+ },
3594
+ "allowedDomains": {
3595
+ "type": "array",
3596
+ "items": {
3597
+ "type": "string"
3598
+ }
3599
+ }
3600
+ },
3601
+ "required": [
3602
+ "resolver"
3603
+ ]
3604
+ },
3605
+ {
3606
+ "type": "object",
3607
+ "properties": {
3608
+ "resolver": {
3609
+ "type": "string",
3610
+ "const": "emailMatchingUserEntityProfileEmail"
3611
+ }
3612
+ },
3613
+ "required": [
3614
+ "resolver"
3615
+ ]
3616
+ }
3617
+ ]
3618
+ }
3619
+ }
3880
3620
  },
3881
3621
  "required": [
3882
- "external",
3883
- "internal"
3622
+ "resolvers"
3884
3623
  ]
3885
- },
3886
- {
3887
- "type": "string"
3888
3624
  }
3625
+ },
3626
+ "required": [
3627
+ "authorizationUrl",
3628
+ "clientId",
3629
+ "clientSecret",
3630
+ "tokenUrl"
3889
3631
  ]
3890
- },
3891
- "plugins": {
3892
- "description": "Array of plugins which use the target base URL.",
3893
- "type": "array",
3894
- "items": {
3895
- "type": "string"
3896
- }
3897
3632
  }
3898
- },
3899
- "required": [
3900
- "plugins",
3901
- "target"
3902
- ]
3633
+ }
3903
3634
  }
3904
3635
  }
3905
- },
3906
- "required": [
3907
- "endpoints"
3908
- ]
3636
+ }
3909
3637
  }
3910
3638
  },
3911
- "required": [
3912
- "app"
3913
- ],
3914
3639
  "$schema": "http://json-schema.org/draft-07/schema#"
3915
3640
  },
3916
- "packageName": "@backstage/backend-defaults"
3641
+ "packageName": "@backstage/plugin-auth-backend-module-oauth2-provider"
3917
3642
  },
3918
3643
  {
3919
- "path": "../backend-app-api/config.d.ts",
3644
+ "path": "../../plugins/auth-backend-module-oidc-provider/config.d.ts",
3920
3645
  "value": {
3921
3646
  "type": "object",
3922
3647
  "properties": {
3923
- "backend": {
3648
+ "auth": {
3924
3649
  "type": "object",
3925
3650
  "properties": {
3926
- "packages": {
3927
- "description": "Used by the feature discovery service",
3928
- "anyOf": [
3929
- {
3651
+ "providers": {
3652
+ "type": "object",
3653
+ "properties": {
3654
+ "oidc": {
3655
+ "visibility": "frontend",
3930
3656
  "type": "object",
3931
- "properties": {
3932
- "include": {
3933
- "type": "array",
3934
- "items": {
3657
+ "additionalProperties": {
3658
+ "type": "object",
3659
+ "properties": {
3660
+ "clientId": {
3661
+ "type": "string"
3662
+ },
3663
+ "clientSecret": {
3664
+ "visibility": "secret",
3665
+ "type": "string"
3666
+ },
3667
+ "metadataUrl": {
3668
+ "type": "string"
3669
+ },
3670
+ "callbackUrl": {
3671
+ "type": "string"
3672
+ },
3673
+ "tokenEndpointAuthMethod": {
3674
+ "type": "string"
3675
+ },
3676
+ "tokenSignedResponseAlg": {
3677
+ "type": "string"
3678
+ },
3679
+ "additionalScopes": {
3680
+ "anyOf": [
3681
+ {
3682
+ "type": "array",
3683
+ "items": {
3684
+ "type": "string"
3685
+ }
3686
+ },
3687
+ {
3688
+ "type": "string"
3689
+ }
3690
+ ]
3691
+ },
3692
+ "prompt": {
3935
3693
  "type": "string"
3694
+ },
3695
+ "signIn": {
3696
+ "type": "object",
3697
+ "properties": {
3698
+ "resolvers": {
3699
+ "type": "array",
3700
+ "items": {
3701
+ "anyOf": [
3702
+ {
3703
+ "type": "object",
3704
+ "properties": {
3705
+ "resolver": {
3706
+ "type": "string",
3707
+ "const": "emailLocalPartMatchingUserEntityName"
3708
+ },
3709
+ "allowedDomains": {
3710
+ "type": "array",
3711
+ "items": {
3712
+ "type": "string"
3713
+ }
3714
+ }
3715
+ },
3716
+ "required": [
3717
+ "resolver"
3718
+ ]
3719
+ },
3720
+ {
3721
+ "type": "object",
3722
+ "properties": {
3723
+ "resolver": {
3724
+ "type": "string",
3725
+ "const": "emailMatchingUserEntityProfileEmail"
3726
+ }
3727
+ },
3728
+ "required": [
3729
+ "resolver"
3730
+ ]
3731
+ }
3732
+ ]
3733
+ }
3734
+ }
3735
+ },
3736
+ "required": [
3737
+ "resolvers"
3738
+ ]
3936
3739
  }
3937
3740
  },
3938
- "exclude": {
3939
- "type": "array",
3940
- "items": {
3941
- "type": "string"
3942
- }
3943
- }
3741
+ "required": [
3742
+ "clientId",
3743
+ "clientSecret",
3744
+ "metadataUrl"
3745
+ ]
3944
3746
  }
3945
- },
3946
- {
3947
- "const": "all",
3948
- "type": "string"
3949
3747
  }
3950
- ]
3748
+ }
3951
3749
  }
3952
3750
  }
3953
3751
  }
3954
3752
  },
3955
3753
  "$schema": "http://json-schema.org/draft-07/schema#"
3956
3754
  },
3957
- "packageName": "@backstage/backend-app-api"
3755
+ "packageName": "@backstage/plugin-auth-backend-module-oidc-provider"
3958
3756
  },
3959
3757
  {
3960
- "path": "../../plugins/events-node/config.d.ts",
3758
+ "path": "../../plugins/auth-backend-module-okta-provider/config.d.ts",
3961
3759
  "value": {
3962
3760
  "type": "object",
3963
3761
  "properties": {
3964
- "events": {
3762
+ "auth": {
3965
3763
  "type": "object",
3966
3764
  "properties": {
3967
- "useEventBus": {
3968
- "description": "Whether to use the event bus API in the events plugin backend to\ndistribute events across multiple instances when publishing and\nsubscribing to events.\n\nThe default is 'auto', which means means that the event bus API will be\nused if it's available, but will be disabled if the events backend\nreturns a 404.\n\nIf set to 'never', the events service will only ever publish events\nlocally to the same instance, while if set to 'always', the event bus API\nwill never be disabled, even if the events backend returns a 404.",
3969
- "enum": [
3970
- "always",
3971
- "auto",
3972
- "never"
3973
- ],
3974
- "type": "string"
3765
+ "providers": {
3766
+ "type": "object",
3767
+ "properties": {
3768
+ "okta": {
3769
+ "visibility": "frontend",
3770
+ "type": "object",
3771
+ "additionalProperties": {
3772
+ "type": "object",
3773
+ "properties": {
3774
+ "clientId": {
3775
+ "type": "string"
3776
+ },
3777
+ "clientSecret": {
3778
+ "visibility": "secret",
3779
+ "type": "string"
3780
+ },
3781
+ "audience": {
3782
+ "type": "string"
3783
+ },
3784
+ "authServerId": {
3785
+ "type": "string"
3786
+ },
3787
+ "idp": {
3788
+ "type": "string"
3789
+ },
3790
+ "callbackUrl": {
3791
+ "type": "string"
3792
+ },
3793
+ "additionalScopes": {
3794
+ "anyOf": [
3795
+ {
3796
+ "type": "array",
3797
+ "items": {
3798
+ "type": "string"
3799
+ }
3800
+ },
3801
+ {
3802
+ "type": "string"
3803
+ }
3804
+ ]
3805
+ },
3806
+ "signIn": {
3807
+ "type": "object",
3808
+ "properties": {
3809
+ "resolvers": {
3810
+ "type": "array",
3811
+ "items": {
3812
+ "anyOf": [
3813
+ {
3814
+ "type": "object",
3815
+ "properties": {
3816
+ "resolver": {
3817
+ "type": "string",
3818
+ "const": "emailMatchingUserEntityAnnotation"
3819
+ }
3820
+ },
3821
+ "required": [
3822
+ "resolver"
3823
+ ]
3824
+ },
3825
+ {
3826
+ "type": "object",
3827
+ "properties": {
3828
+ "resolver": {
3829
+ "type": "string",
3830
+ "const": "emailLocalPartMatchingUserEntityName"
3831
+ },
3832
+ "allowedDomains": {
3833
+ "type": "array",
3834
+ "items": {
3835
+ "type": "string"
3836
+ }
3837
+ }
3838
+ },
3839
+ "required": [
3840
+ "resolver"
3841
+ ]
3842
+ },
3843
+ {
3844
+ "type": "object",
3845
+ "properties": {
3846
+ "resolver": {
3847
+ "type": "string",
3848
+ "const": "emailMatchingUserEntityProfileEmail"
3849
+ }
3850
+ },
3851
+ "required": [
3852
+ "resolver"
3853
+ ]
3854
+ }
3855
+ ]
3856
+ }
3857
+ }
3858
+ },
3859
+ "required": [
3860
+ "resolvers"
3861
+ ]
3862
+ }
3863
+ },
3864
+ "required": [
3865
+ "clientId",
3866
+ "clientSecret"
3867
+ ]
3868
+ }
3869
+ }
3870
+ }
3975
3871
  }
3976
3872
  }
3977
3873
  }
3978
3874
  },
3979
3875
  "$schema": "http://json-schema.org/draft-07/schema#"
3980
3876
  },
3981
- "packageName": "@backstage/plugin-events-node"
3877
+ "packageName": "@backstage/plugin-auth-backend-module-okta-provider"
3982
3878
  },
3983
3879
  {
3984
- "path": "../../node_modules/@backstage/backend-common/node_modules/@backstage/backend-plugin-api/config.d.ts",
3880
+ "path": "../../plugins/auth-backend-module-onelogin-provider/config.d.ts",
3985
3881
  "value": {
3986
3882
  "type": "object",
3987
3883
  "properties": {
3988
- "backend": {
3884
+ "auth": {
3989
3885
  "type": "object",
3990
3886
  "properties": {
3991
- "workingDirectory": {
3992
- "description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
3993
- "type": "string"
3887
+ "providers": {
3888
+ "type": "object",
3889
+ "properties": {
3890
+ "onelogin": {
3891
+ "visibility": "frontend",
3892
+ "type": "object",
3893
+ "additionalProperties": {
3894
+ "type": "object",
3895
+ "properties": {
3896
+ "clientId": {
3897
+ "type": "string"
3898
+ },
3899
+ "clientSecret": {
3900
+ "visibility": "secret",
3901
+ "type": "string"
3902
+ },
3903
+ "issuer": {
3904
+ "type": "string"
3905
+ },
3906
+ "callbackUrl": {
3907
+ "type": "string"
3908
+ },
3909
+ "signIn": {
3910
+ "type": "object",
3911
+ "properties": {
3912
+ "resolvers": {
3913
+ "type": "array",
3914
+ "items": {
3915
+ "anyOf": [
3916
+ {
3917
+ "type": "object",
3918
+ "properties": {
3919
+ "resolver": {
3920
+ "type": "string",
3921
+ "const": "usernameMatchingUserEntityName"
3922
+ }
3923
+ },
3924
+ "required": [
3925
+ "resolver"
3926
+ ]
3927
+ },
3928
+ {
3929
+ "type": "object",
3930
+ "properties": {
3931
+ "resolver": {
3932
+ "type": "string",
3933
+ "const": "emailLocalPartMatchingUserEntityName"
3934
+ },
3935
+ "allowedDomains": {
3936
+ "type": "array",
3937
+ "items": {
3938
+ "type": "string"
3939
+ }
3940
+ }
3941
+ },
3942
+ "required": [
3943
+ "resolver"
3944
+ ]
3945
+ },
3946
+ {
3947
+ "type": "object",
3948
+ "properties": {
3949
+ "resolver": {
3950
+ "type": "string",
3951
+ "const": "emailMatchingUserEntityProfileEmail"
3952
+ }
3953
+ },
3954
+ "required": [
3955
+ "resolver"
3956
+ ]
3957
+ }
3958
+ ]
3959
+ }
3960
+ }
3961
+ },
3962
+ "required": [
3963
+ "resolvers"
3964
+ ]
3965
+ }
3966
+ },
3967
+ "required": [
3968
+ "clientId",
3969
+ "clientSecret",
3970
+ "issuer"
3971
+ ]
3972
+ }
3973
+ }
3974
+ }
3994
3975
  }
3995
3976
  }
3996
3977
  }
3997
3978
  },
3998
3979
  "$schema": "http://json-schema.org/draft-07/schema#"
3999
3980
  },
4000
- "packageName": "@backstage/backend-plugin-api"
3981
+ "packageName": "@backstage/plugin-auth-backend-module-onelogin-provider"
4001
3982
  },
4002
3983
  {
4003
3984
  "path": "../integration-aws-node/config.d.ts",
@@ -4108,6 +4089,25 @@
4108
4089
  "$schema": "http://json-schema.org/draft-07/schema#"
4109
4090
  },
4110
4091
  "packageName": "@backstage/integration-aws-node"
4092
+ },
4093
+ {
4094
+ "path": "../../node_modules/@backstage/backend-common/node_modules/@backstage/backend-plugin-api/config.d.ts",
4095
+ "value": {
4096
+ "type": "object",
4097
+ "properties": {
4098
+ "backend": {
4099
+ "type": "object",
4100
+ "properties": {
4101
+ "workingDirectory": {
4102
+ "description": "An absolute path to a directory that can be used as a working dir, for\nexample as scratch space for large operations.",
4103
+ "type": "string"
4104
+ }
4105
+ }
4106
+ }
4107
+ },
4108
+ "$schema": "http://json-schema.org/draft-07/schema#"
4109
+ },
4110
+ "packageName": "@backstage/backend-plugin-api"
4111
4111
  }
4112
4112
  ],
4113
4113
  "backstageConfigSchemaVersion": 1