Skip to content

Commit e7d4975

Browse files
chore(deps): update dependency stacklok/toolhive to v0.26.1 (#2154)
* chore(deps): update dependency stacklok/toolhive to v0.26.1 * chore: regenerate artifacts after dependency update --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent e5552ff commit e7d4975

4 files changed

Lines changed: 85 additions & 2 deletions

File tree

common/api/generated/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ export type {
233233
GithubComStacklokToolhivePkgAuthAwsstsConfig,
234234
GithubComStacklokToolhivePkgAuthAwsstsRoleMapping,
235235
GithubComStacklokToolhivePkgAuthRemoteConfig,
236+
GithubComStacklokToolhivePkgAuthserverDcrUpstreamConfig,
236237
GithubComStacklokToolhivePkgAuthserverOAuth2UpstreamRunConfig,
237238
GithubComStacklokToolhivePkgAuthserverOidcUpstreamRunConfig,
238239
GithubComStacklokToolhivePkgAuthserverRunConfig,

common/api/generated/types.gen.ts

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,52 @@ export type GithubComStacklokToolhivePkgAuthUpstreamswapConfig = {
398398
provider_name?: string
399399
}
400400

401+
/**
402+
* DCRConfig enables RFC 7591 Dynamic Client Registration against the
403+
* upstream authorization server. When set, the client credentials are
404+
* obtained at runtime rather than being pre-provisioned via ClientID /
405+
* ClientSecretFile / ClientSecretEnvVar, and ClientID must be left empty.
406+
* Mutually exclusive with ClientID.
407+
*/
408+
export type GithubComStacklokToolhivePkgAuthserverDcrUpstreamConfig = {
409+
/**
410+
* DiscoveryURL is the RFC 8414 / OIDC Discovery URL from which the
411+
* registration_endpoint is resolved at runtime. Mutually exclusive with
412+
* RegistrationEndpoint.
413+
*/
414+
discovery_url?: string
415+
/**
416+
* InitialAccessTokenEnvVar is the name of an environment variable
417+
* containing the RFC 7591 initial access token. Mutually exclusive with
418+
* InitialAccessTokenFile.
419+
*/
420+
initial_access_token_env_var?: string
421+
/**
422+
* InitialAccessTokenFile is the path to a file containing the RFC 7591
423+
* initial access token presented to the registration endpoint. Mutually
424+
* exclusive with InitialAccessTokenEnvVar. Both may be omitted for open
425+
* registration endpoints.
426+
*/
427+
initial_access_token_file?: string
428+
/**
429+
* RegistrationEndpoint is the RFC 7591 registration endpoint URL used
430+
* directly, bypassing discovery. Mutually exclusive with DiscoveryURL.
431+
*/
432+
registration_endpoint?: string
433+
/**
434+
* SoftwareID is the RFC 7591 "software_id" registration metadata value,
435+
* identifying the client software independent of any particular
436+
* registration instance.
437+
*/
438+
software_id?: string
439+
/**
440+
* SoftwareStatement is the RFC 7591 "software_statement" JWT asserting
441+
* metadata about the client software, signed by a party the authorization
442+
* server trusts.
443+
*/
444+
software_statement?: string
445+
}
446+
401447
/**
402448
* OAuth2Config contains OAuth 2.0-specific configuration.
403449
* Required when Type is "oauth2", must be nil when Type is "oidc".
@@ -417,6 +463,8 @@ export type GithubComStacklokToolhivePkgAuthserverOAuth2UpstreamRunConfig = {
417463
authorization_endpoint?: string
418464
/**
419465
* ClientID is the OAuth 2.0 client identifier registered with the upstream IDP.
466+
* Mutually exclusive with DCRConfig: when DCRConfig is set, ClientID is obtained
467+
* at runtime via RFC 7591 Dynamic Client Registration and must be left empty.
420468
*/
421469
client_id?: string
422470
/**
@@ -429,6 +477,7 @@ export type GithubComStacklokToolhivePkgAuthserverOAuth2UpstreamRunConfig = {
429477
* Mutually exclusive with ClientSecretEnvVar. Optional for public clients using PKCE.
430478
*/
431479
client_secret_file?: string
480+
dcr_config?: GithubComStacklokToolhivePkgAuthserverDcrUpstreamConfig
432481
/**
433482
* RedirectURI is the callback URL where the upstream IDP will redirect after authentication.
434483
* When not specified, defaults to `{issuer}/oauth/callback`.

common/api/openapi.json

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,36 @@
404404
},
405405
"type": "object"
406406
},
407+
"github_com_stacklok_toolhive_pkg_authserver.DCRUpstreamConfig": {
408+
"description": "DCRConfig enables RFC 7591 Dynamic Client Registration against the\nupstream authorization server. When set, the client credentials are\nobtained at runtime rather than being pre-provisioned via ClientID /\nClientSecretFile / ClientSecretEnvVar, and ClientID must be left empty.\nMutually exclusive with ClientID.",
409+
"properties": {
410+
"discovery_url": {
411+
"description": "DiscoveryURL is the RFC 8414 / OIDC Discovery URL from which the\nregistration_endpoint is resolved at runtime. Mutually exclusive with\nRegistrationEndpoint.",
412+
"type": "string"
413+
},
414+
"initial_access_token_env_var": {
415+
"description": "InitialAccessTokenEnvVar is the name of an environment variable\ncontaining the RFC 7591 initial access token. Mutually exclusive with\nInitialAccessTokenFile.",
416+
"type": "string"
417+
},
418+
"initial_access_token_file": {
419+
"description": "InitialAccessTokenFile is the path to a file containing the RFC 7591\ninitial access token presented to the registration endpoint. Mutually\nexclusive with InitialAccessTokenEnvVar. Both may be omitted for open\nregistration endpoints.",
420+
"type": "string"
421+
},
422+
"registration_endpoint": {
423+
"description": "RegistrationEndpoint is the RFC 7591 registration endpoint URL used\ndirectly, bypassing discovery. Mutually exclusive with DiscoveryURL.",
424+
"type": "string"
425+
},
426+
"software_id": {
427+
"description": "SoftwareID is the RFC 7591 \"software_id\" registration metadata value,\nidentifying the client software independent of any particular\nregistration instance.",
428+
"type": "string"
429+
},
430+
"software_statement": {
431+
"description": "SoftwareStatement is the RFC 7591 \"software_statement\" JWT asserting\nmetadata about the client software, signed by a party the authorization\nserver trusts.",
432+
"type": "string"
433+
}
434+
},
435+
"type": "object"
436+
},
407437
"github_com_stacklok_toolhive_pkg_authserver.OAuth2UpstreamRunConfig": {
408438
"description": "OAuth2Config contains OAuth 2.0-specific configuration.\nRequired when Type is \"oauth2\", must be nil when Type is \"oidc\".",
409439
"properties": {
@@ -419,7 +449,7 @@
419449
"type": "string"
420450
},
421451
"client_id": {
422-
"description": "ClientID is the OAuth 2.0 client identifier registered with the upstream IDP.",
452+
"description": "ClientID is the OAuth 2.0 client identifier registered with the upstream IDP.\nMutually exclusive with DCRConfig: when DCRConfig is set, ClientID is obtained\nat runtime via RFC 7591 Dynamic Client Registration and must be left empty.",
423453
"type": "string"
424454
},
425455
"client_secret_env_var": {
@@ -430,6 +460,9 @@
430460
"description": "ClientSecretFile is the path to a file containing the OAuth 2.0 client secret.\nMutually exclusive with ClientSecretEnvVar. Optional for public clients using PKCE.",
431461
"type": "string"
432462
},
463+
"dcr_config": {
464+
"$ref": "#/components/schemas/github_com_stacklok_toolhive_pkg_authserver.DCRUpstreamConfig"
465+
},
433466
"redirect_uri": {
434467
"description": "RedirectURI is the callback URL where the upstream IDP will redirect after authentication.\nWhen not specified, defaults to `{issuer}/oauth/callback`.",
435468
"type": "string"

utils/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
* This is managed by Renovate and updated automatically when new versions are released.
44
* renovate: datasource=github-releases depName=stacklok/toolhive versioning=semver
55
*/
6-
export const TOOLHIVE_VERSION = process.env.THV_VERSION ?? 'v0.26.0'
6+
export const TOOLHIVE_VERSION = process.env.THV_VERSION ?? 'v0.26.1'

0 commit comments

Comments
 (0)