
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
decap-cms-backend-git-gateway
Advanced tools
Netlify's gateway to hosted git APIs.
Implementation
for File Management System API based on Api
.
Api
and Implementation
from backend-github/gitlab/bitbacket extended with Netlify-specific LargeMedia(LFS)
and JWT
auth.
AuthenticationPage
- uses lib-auth and implements Netlify Identity authentication flow.
PKCEAuthenticationPage
= uses lib-auth and implements OAuth2 PKCE authentication flow. Enabled if the config.auth_type is set to pkce
.
Look at tests or types for more info.
When debugging the CMS with Git Gateway you must:
Have a Netlify site with Git Gateway and Netlify Identity enabled. An easy way to create such a site is to use a template, for example the Gatsby template
Tell the CMS the URL of your Netlify site using a local storage item. To do so:
http://localhost:8080/
in the browserlocalStorage.setItem('netlifySiteURL', 'https://yourwebsiteurl.netlify.app/')
localStorage.getItem('netlifySiteURL')
To use a custom Git-Gateway implementation with PKCE authentication, use a configuration similar to the following:
backend:
name: git-gateway
# Enables PKCE authentication with the git-gateway backend. After auth,
# sends the access_token for all requests to the git-gateway host.
auth_type: pkce
# The base OAuth2 URL. Here is an obfuscated AWS Cognito example.
base_url: https://your-cognito-instance.auth.us-east-1.amazoncognito.com
# If you need to customize the authorize or token endpoints for PKCE, do that here
#auth_endpoint: oauth2/authorize
#auth_token_endpoint: oauth2/token
# The OAuth2 client ID
app_id: your-oauth2-client-id
# The base URL of your custom git-gateway. Note that the last part of the path
# should be "bitbucket", "gitlab", or "github", so the implementation can automatically
# determine which backend API to use when making requests.
gateway_url: https://your.gitgateway.host/git-gateway/bitbucket/
# Override the Netlify git-gateway status check
status_endpoint: https://your.gitgateway.host/api/v2/components.json
# Optional: defaults to "master"
branch: main
FAQs
Git Gateway backend for Decap CMS
The npm package decap-cms-backend-git-gateway receives a total of 10,992 weekly downloads. As such, decap-cms-backend-git-gateway popularity was classified as popular.
We found that decap-cms-backend-git-gateway demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.