Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@envelop/resource-limitations
Advanced tools
A rate-limit implementation based on resource limitations and static calculation of the score (similar to GitHub GraphQL API)
@envelop/resource-limitations
This plugins uses extended-validation
concept
(details here)
for implementing a resource-limitations rate-limit similar to GitHub GraphQL API (see
https://docs.github.com/en/graphql/overview/resource-limitations for more details)
yarn add @envelop/resource-limitations
import { execute, parse, specifiedRules, subscribe, validate } from 'graphql'
import { envelop, useEngine } from '@envelop/core'
import { useResourceLimitations } from '@envelop/resource-limitations'
const getEnveloped = envelop({
plugins: [
useEngine({ parse, validate, specifiedRules, execute, subscribe }),
// ... other plugins ...
useResourceLimitations({
nodeCostLimit: 500000, // optional, default to 500000
paginationArgumentMaximum: 100, // optional, default to 100
paginationArgumentMinimum: 1, // optional, default to 1
paginationArgumentScalars: ['ConnectionInt'], // optional, use if connections use a different scalar type as the argument instead of `Int`
extensions: false // set this to `true` in order to add the calculated const to the response of queries
})
]
})
FAQs
A rate-limit implementation based on resource limitations and static calculation of the score (similar to GitHub GraphQL API)
We found that @envelop/resource-limitations 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.