
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
@redhat-developer/plugin-scaffolder-frontend-module-devfile-field
Advanced tools
Devfile Custom Field Extensions (Frontend Plugin)
This plugin is a Custom Field Extension for Backstage. It allows you to add a set of drop-down lists to pick a Devfile Stack version, a version, and a starter project. It interacts with the configured Devfile registry to load the list of available Devfile Stacks.
From your Backstage instance root folder:
yarn add --cwd packages/app @redhat-developer/plugin-scaffolder-frontend-module-devfile-field
packages/app/src/App.tsx
on the frontend package of your Backstage instance:// packages/app/src/App.tsx
import { DevfileSelectorFieldExtension } from '@redhat-developer/plugin-scaffolder-frontend-module-devfile-field';
import { ScaffolderFieldExtensions } from '@backstage/plugin-scaffolder-react';
ScaffolderFieldExtensions
inside Route
, like so:// packages/app/src/App.tsx
<Route path="/create" element={<ScaffolderPage />}>
<ScaffolderFieldExtensions>
<DevfileSelectorFieldExtension />
</ScaffolderFieldExtensions>
</Route>
/devfile-registry
. As such, you need to add the appropriate configuration to your app-config.yaml
file under the proxy.endpoints
field, like so:# app-config.yaml
proxy:
endpoints:
'/devfile-registry':
target: 'https://registry.devfile.io'
You should now see the custom field DevfileSelectorExtension
and its dropdown lists populated if you navigate to the Template Editor page at http://localhost:3000/create/edit.
To use the extension in a Backstage Software Template, you can add the ui:field
field to the parameter. The output of the extension is an object made up of the following fields:
devfile
: the Devfile Stack selected by the user.version
: the Devfile Stack version selected by the userstarter_project
: the Devfile Starter Project selected by the user. Optional.parameters:
- title: Provide details about the Devfile
required:
- devfile_data
properties:
devfile_data:
type: object
required:
- devfile
- version
properties:
devfile:
type: string
version:
type: string
starter_project:
type: string
ui:field: DevfileSelectorExtension
ui:autofocus: true
ui:options:
rows: 5
See https://github.com/ododev/odo-backstage-software-template for an example of a Software Template making use of the Devfile Selector Field Extension.
FAQs
Devfile Custom Field Extensions (Frontend Plugin)
The npm package @redhat-developer/plugin-scaffolder-frontend-module-devfile-field receives a total of 65 weekly downloads. As such, @redhat-developer/plugin-scaffolder-frontend-module-devfile-field popularity was classified as not popular.
We found that @redhat-developer/plugin-scaffolder-frontend-module-devfile-field demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.