Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@crossroad/rules
Advanced tools
import { createExtension } from '@crossroad/client'
createExtension({
// Target a @crossroad API server:
endpoint: 'http://crossroad-server.com',
token: 'extension-secret-token',
// Describe your extension:
name: 'Foo',
secret: 'xxx',
// Variables can be used in the definition as first class placeholders
variables: [
{ name: 'var1', value: 'xxx' },
{ name: 'var2', value: 'yyy' },
],
// Headers are prepended to each endpoint definition, value can use variables
variables: [
{ name: 'x-foo', value: 'var1' },
{ name: 'x-aaa', value: '{{ var1 }}/{{ var2 }}' },
],
// Extension definition as in @marcopeg/graphql-extension
definition: { ... },
})
Used by @crossroad to generate a meta.signature
token that can be verified by the client.
You can then protect your routes with extension.createMiddleware()
Every item that you define into variables
will be available for templating in the rest of
the definition, along with the values that are provided by the @crossroad
server at evaluation time.
import { runQuery } from '@crossroad/client'
runQuery({
query: 'query foo (@name: String!) { Ext1 { name(name:$name) }}',
variables: { name: 'foo' },
endpoint: 'http://crossroad-server.com',
headers: {
'x-grapi-origin': 'client token'
},
})
Custom error utility that play nicely with an Express error handler.
(to be completed)
FAQs
Regulates requests to Crossroad APIs
The npm package @crossroad/rules receives a total of 3 weekly downloads. As such, @crossroad/rules popularity was classified as not popular.
We found that @crossroad/rules demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.