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

@idriszade/secrets-oidc

v0.2.6

Published

Pipeline-kit OIDC workload-identity SecretsResolver adapters — GCP WIF, AWS IRSA, Azure WIF

Readme

@idriszade/secrets-oidc

T3 OIDC workload-identity SecretsResolver adapters for cloud-native short-lived tokens.

Implements the 2024-26 modern direction: workload-identity / short-lived tokens replace long-lived static secrets at the cloud boundary. Each adapter returns tokens whose lifecycle is managed by the underlying cloud SDK. invalidate() is a hint for consumers wrapping with createVersionAwareResolver.

ADR: VIII-5 (reference-adapter trio, oidc leg); Cat VIII modern-direction framing.

Peer-dep installation matrix

Install only the submodules you use. The package itself has no required runtime deps beyond @idriszade/core.

| Submodule | Peer dep | Install | |-----------|----------|---------| | @idriszade/secrets-oidc/gcp | google-auth-library | pnpm add google-auth-library | | @idriszade/secrets-oidc/aws | @aws-sdk/credential-provider-node | pnpm add @aws-sdk/credential-provider-node | | @idriszade/secrets-oidc/azure | @azure/identity | pnpm add @azure/identity |

Quick start

GCP Workload Identity Federation

import { gcpWif } from '@idriszade/secrets-oidc/gcp';

const resolver = gcpWif({
  // audience is optional — GoogleAuth reads GOOGLE_APPLICATION_CREDENTIALS or
  // the ambient service account on GKE/Cloud Run automatically
  audience: '//iam.googleapis.com/projects/123/locations/global/workloadIdentityPools/my-pool/providers/my-provider',
});

const result = await resolver.resolve('access_token');
if (result.error) {
  console.error(result.error.message);
} else {
  console.log('token:', result.data);
}

AWS IRSA (IAM Roles for Service Accounts)

import { awsIrsa } from '@idriszade/secrets-oidc/aws';

const resolver = awsIrsa();
// Uses @aws-sdk/credential-provider-node fromNodeProviderChain() automatically.
// On EKS with IRSA configured, the pod's projected token is exchanged via STS.

const result = await resolver.resolve('session_token');
if (result.error) {
  console.error(result.error.message);
} else {
  console.log('session token:', result.data);
}

Azure Workload Identity Federation

import { azureWif } from '@idriszade/secrets-oidc/azure';

const resolver = azureWif({
  scope: 'https://storage.azure.com/.default', // optional, defaults to management.azure.com
});
// Uses @azure/identity WorkloadIdentityCredential automatically.
// Reads AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_FEDERATED_TOKEN_FILE from env.

const result = await resolver.resolve('access_token');
if (result.error) {
  console.error(result.error.message);
} else {
  console.log('token:', result.data);
}

Notes

  • These adapters return short-lived tokens managed by the underlying cloud SDK. Token refresh is handled by the SDK; invalidate() is a hint to consumers wrapping with createVersionAwareResolver from @idriszade/secrets.
  • The name argument to resolve(name) is descriptive only — each adapter returns the one workload-identity-derived token regardless of name.
  • Missing peer dep → resolve() returns err with code: 'secret_unavailable' and an install hint message. No runtime crash.
  • All adapters accept an optional injection point (authClient / credentialsProvider / credential) for testing without real cloud credentials.