method EnvProvider.prototype.set
EnvProvider.prototype.set(
_name: string,
_value: string
): Promise<void>

Always rejects — environment variables are immutable at runtime.

The rejection is branded with a 501 HTTP status hint (X20-2, M90f), so an application running errorHandler answers the write attempt with 501 Not Implemented in its configured format rather than the masked 500 an unbranded rejection from this depth would produce. It REJECTS — never throws synchronously — so a caller using .catch() observes it either way.

SecretsService.rotate() reaches this same site by delegating to set, which is what makes both public write operations answer identically.

Parameters

_name: string

Secret name (unused)

_value: string

New value (unused)

Return Type

Promise<void>

A rejected promise carrying ReadOnlySecretProviderError

Usage

import { EnvProvider } from "secrets-plugin/src/index.ts";