npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

serverless-aws-code-signer

v1.1.0

Published

Sign Lambda deployment artifacts with AWS Signer. Fails closed, never creates signing profiles or buckets, and verifies the signed artifact on disk before CloudFormation hashes it.

Readme

serverless-aws-code-signer

npm CI license

Sign Lambda deployment artifacts with AWS Signer during serverless deploy, and attach an AWS::Lambda::CodeSigningConfig to every function in the stack.

The signing happens before the framework hashes the zip, so AWS::Lambda::Version.CodeSha256 always describes the bytes that actually reach Lambda.

Install

npm install --save-dev serverless-aws-code-signer
plugins:
  - serverless-aws-code-signer

custom:
  signer:
    profileName: my-signing-profile
    source:
      s3:
        bucketName: my-artifacts-bucket
        prefix: signing/staging/

That is the whole configuration. Everything else has a secure default.

Both the signing profile and the bucket must already exist — see Getting started for the AWS setup and for how to confirm that unsigned code is actually being rejected.

Documentation

| Guide | Covers | | --- | --- | | Getting started | AWS prerequisites, install, first signed deploy, how to verify it worked | | Configuration | Every option, per-stage toggling, IAM policies | | How it works | Lifecycle hooks, what it does to your CloudFormation template | | Troubleshooting | Every error the plugin can raise, and the fix | | Security policy | Threat model, supported versions, reporting a vulnerability | | Changelog | What changed in each release |

Requirements

  • Node.js 20.19 or later
  • Serverless Framework 3.x, or osls 3.x / 4.x
  • An existing AWS Signer profile, Active, on the AWSLambda-SHA384-ECDSA platform
  • An existing S3 bucket with versioning enabled — AWS Signer addresses its input by version ID

Design principles

Fail closed. Every ambiguous state is an error, never a silent skip. If the plugin cannot tell whether signing should run — an unresolved variable, a missing config block — the deploy fails rather than guessing. Guessing "on" ships an unwanted signature; guessing "off" ships unsigned code.

Never create infrastructure. The plugin will not create a signing profile or an S3 bucket. A typo in profileName fails the deploy instead of minting a fresh, unreviewed profile that happens to satisfy the config — which would defeat the entire point of code signing.

Verify what you ship. The signed artifact is read back off disk and its size checked against what was written, and its CodeSha256 is logged, so a CloudFormation mismatch is diagnosable from the deploy log alone.

Account for every function. If signing is on, everything the plugin can sign is signed — including the Lambdas Serverless injects for existing: true events, EventBridge and Cognito. Whatever cannot be signed is named in the deploy log, so "is this whole stack signed?" is answerable rather than assumed.

Scope

Supported: package.individually: true and single-artifact packaging, serverless deploy, serverless deploy function, per-stage enable/disable, container-image functions (skipped, not an error), and the Lambdas Serverless generates for itself — existing: true events, EventBridge, Cognito user pools, the API Gateway CloudWatch role — which are signed by default.

Not implemented: Lambda layer signing, signing Lambdas injected by third-party plugins, a standalone serverless signer CLI command. Both are reported by name in the deploy log rather than silently skipped.

Security

This plugin sits in your deploy path and calls AWS Signer on your behalf. The security policy documents the threat model — including what code signing does not protect against — and how to report a vulnerability privately.

Releases are published from GitHub Actions with npm provenance, so the published tarball is cryptographically linked to the commit and workflow run that built it. Verify your install with npm audit signatures.

Contributing

Issues and pull requests are welcome at github.com/noun-phireak/serverless-aws-code-signer.

Please do not report security vulnerabilities through public issues — follow the security policy instead.

License

MIT