
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@coder/backstage-plugin-coder
Advanced tools
A basic plugin that adds the "Open in Coder" button to catalog items in backstage based on the catalog spec.
A basic plugin that adds the "Open in Coder" button to catalog items in backstage based on the catalog spec.
Catalog item without Coder | Catalog item with Coder |
---|---|
![]() | ![]() |
This is a very basic MVP, but demonstrates the power of a Coder+Backstage integration. It allows Backstage users to quickly develop a service inside a CDE.
All backstage catalog items are git repos with a catalog-info.yaml file. To add Coder compatibility to a given template, we need to add a coder
section to the catalog-info.yaml file.
Here's an example:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: python-project
spec:
type: other
lifecycle: unknown
owner: pm
coder:
template: 'devcontainers'
createMode: 'auto'
params:
repo: 'custom'
repo_url: 'https://github.com/bcdr-demos/python-project'
region: 'us-pittsburgh'
Since the Backstage UI is "DIY," you'll need to modify EntityPage.tsx
in your Backstage deployment to import the components from this plugin.
There are several ways to use the integration:
The easiest way to consume this integration is by importing the ExampleContributingCard
component
// EntityPage.tsx
import { ExampleContributingCard } from '@internal/plugin-coder';
// ...
const overviewContent = (
<Grid container spacing={3} alignItems="stretch">
{/* ... */}
<Grid item md={6} xs={12}>
<ExampleContributingCard coderAccessUrl="https://coder.example.com" />
</Grid>
{/* ... */}
</Grid>
);
You can also just import the OpenInCoderButton
component and use it in your own component.
For the most control, you can use the useOpenInCoderLink
to get the Coder URL for a given catalog item.
// MyCustomComponent.tsx
import { useOpenInCoderLink } from '@internal/plugin-coder';
export const MyCustomComponent = () => {
const coderLink = useOpenInCoderLink(catalogItem);
// some basic component that has error handling if coderLink is null
if (coderLink) return <a href={coderLink}>Open in Coder</a>;
return <p>Not configured for Coder</p>;
};
This is only the beginning. We can extend this integration further:
devcontainer.json
in repos and add a more advanced "contributing" card that links to VS Code Remote, Codespaces, and CoderMore ideas welcome!
Your plugin has been added to the example app in this repository, meaning you'll be able to access it by running yarn start
in the root directory, and then navigating to /coder.
You can also serve the plugin in isolation by running yarn start
in the plugin directory.
This method of serving the plugin provides quicker iteration speed and a faster startup and hot reloads.
It is only meant for local development, and the setup for it can be found inside the /dev directory.
FAQs
Create and manage Coder workspaces from Backstage
The npm package @coder/backstage-plugin-coder receives a total of 88 weekly downloads. As such, @coder/backstage-plugin-coder popularity was classified as not popular.
We found that @coder/backstage-plugin-coder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.