Update dependency @backstage/plugin-scaffolder-backend to v2 [SECURITY] - abandoned #168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.33.0->^2.0.0Template Secret leakage in logs in Scaffolder when using
fetch:templateCVE-2025-55285 / GHSA-3x3q-ghcp-whf7
More information
Details
Impact
Duplicate logging of the input values in the
fetch:templateaction in the Scaffolder meant that some of the secrets were not properly redacted. If you're not passing through$tofetch:templatethere is no impact.Patches
This issue has been resolved in
2.1.1of thescaffolder-backendplugin.Workarounds
Template Authors can remove the use of
$being used as an argument tofetch:template.References
If you have any questions or comments about this advisory:
Open an issue in the Backstage repository
Visit our Discord, linked to in Backstage README
Severity
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:N/A:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
backstage/backstage (@backstage/plugin-scaffolder-backend)
v2.1.1Compare Source
v2.1.0Compare Source
Minor Changes
c1ce316: BREAKING/alpha: Convertedscaffolder.task.readandscaffolder.task.cancelinto Resource Permissions.BREAKING
/alpha: Added a new scaffolder ruleisTaskOwnerforscaffolder.task.readandscaffolder.task.cancelto allow for conditional permission policies such as restricting access to tasks and task events based on task creators.BREAKING
/alpha: Retrying a task now requires bothscaffolder.task.readandscaffolder.task.createpermissions, replacing the previous requirement ofscaffolder.task.readandscaffolder.task.cancel.Patch Changes
424610a: Scaffolder audit Log now includes taskId and createdBydbde180: An internal refactor which adds additional types to experimental checkpointsfc70b43: Replaced deprecated uses of@backstage/backend-commonwith the equivalents in@backstage/backend-defaultsand@backstage/backend-plugin-api.v2.0.0Compare Source
Major Changes
33394db: BREAKING CHANGESRemoval of deprecated re-exports from module packages.
The following functions have been re-exported from the
scaffolder-backendplugin for quite some time, and now it's time to clean them up. They've been moved as follows:createPublishAzureActionshould be imported from@backstage/plugin-scaffolder-backend-module-azureinstead.createPublishBitbucketCloudActionshould be imported from@backstage/plugin-scaffolder-backend-module-bitbucket-cloudinstead.createPublishBitbucketServerActionandcreatePublishBitbucketServerPullRequestActioncan be imported from@backstage/plugin-scaffolder-backend-module-bitbucket-serverinstead.createPublishBitbucketActionshould be imported from@backstage/plugin-scaffolder-backend-module-bitbucketinstead.createPublishGerritActionandcreatePublishGerritReviewActioncan be imported from@backstage/plugin-scaffolder-backend-module-gerritinstead.createGithubActionsDispatchAction,createGithubDeployKeyAction,createGithubEnvironmentAction,createGithubIssuesLabelAction,CreateGithubPullRequestActionOptions,createGithubRepoCreateAction,createGithubRepoPushAction,createGithubWebhookAction, andcreatePublishGithubActioncan be imported from@backstage/plugin-scaffolder-backend-module-githubinstead.createPublishGitlabActionshould be imported from@backstage/plugin-scaffolder-backend-module-gitlabinstead.ActionContext.createTemplateAction,executeShellCommand,ExecuteShellCommandOptions,fetchContents,TaskSecrets, andTemplateActionshould be imported from@backstage/plugin-scaffolder-nodeinstead.ScaffolderEntitiesProcessorshould be imported from@backstage/plugin-catalog-backend-module-scaffolder-entity-modelinstead.a8fcf04: BREAKING ALPHA: The/alphaexport no longer exports the plugin. Please useimport('@​backstage/plugin-scaffolder-backend')instead as this has been removed.BREAKING CHANGES: The old
createRouterfunction which was used in the old backend system has been removed along with theRouterOptionstype.73b94d7: BREAKING CHANGESThe following functions have been re-exported from the
scaffolder-backendplugin for quite some time, and now it's time to clean them up. They've been moved as follows:SerializedTask,SerializedTaskEvent,TaskBroker,TaskBrokerDispatchOptions,TaskBrokerDispatchResult,TaskCompletionState,TaskContext,TaskEventType,TaskStatus,TemplateFilter, andTemplateGlobalshould be imported from@backstage/plugin-scaffolder-nodeinstead.The deprecated
copyWithoutRenderoption has been removed fromfetch:templateaction. You should rename the option tocopyWithoutTemplatinginstead.5863b04: BREAKING CHANGESThe
createBuiltinActionsmethod has been removed, as this should no longer be needed with the new backend system route, and was only useful when passing the default list of actions again in the old backend system. You should be able to rely on the default behaviour of the new backend system which is to merge the actions.The
createCatalogRegisterActionandcreateFetchCatalogEntityActionactions no longer require anAuthService, and now accepts aCatalogServiceinstead ofCatalogClient.Unless you're providing your own override action to the default, this should be a non-breaking change.
You can migrate using the following if you're getting typescript errors:
Minor Changes
73b94d7: DEPRECATIONSThe following types and implementations have been deprecated, either because they're no longer relevant, or because upcoming changes to the
scaffolder-backendafter2.0.0will influence the changes to these API surfaces.CreateWorkerOptionsDatabaseTaskStoreDatabaseTaskStoreOptionsTaskManagerTaskStoreCreateTaskOptionsTaskStoreCreateTaskResultTaskStoreEmitOptionsTaskStoreListEventsOptionsTaskStoreRecoverTaskOptionsTaskStoreShutDownTaskOptionsThere is no current path off deprecation, these types are going to be removed and rethought with a better way to define workers in the new backend system.
Patch Changes
89a941d: Migrating to latest action format023629e: Enable usage of secrets within 'each' step of software templates. For example, you can now structure youreachstep like this:e92e481: Add tests for ScaffolderUpdated dependencies
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.