1.1.3 • Published 1 month ago

@kubernetes-models/spiffe v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

@kubernetes-models/spiffe

SPIFFE models.

Installation

Install with npm.

npm install @kubernetes-models/spiffe

Usage

import { SpiffeID } from "@kubernetes-models/spiffe/spiffeid.spiffe.io/v1beta1/SpiffeID";

const id = new SpiffeID({
  metadata: {
    name: "test-id"
  },
  spec: {
    parentId: 'spiffe://example.org/spire/server',
    spiffeId: 'spiffe://example.org/test',
    selector: {
      namespace: 'default',
      podName: 'test-pod'
    },
  }
});

// Validate against JSON schema
id.validate();

License

MIT