SecretsManagerClient: Detect `PARAMETERS_SECRETS_EXTENSION_HTTP_PORT` and use extension directly

Abierto
#3,325 2 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@stobrien89 ya está trabajando en esto.

Desde el 22/7/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

feature-request
Describe the feature

Hey there,

we recently read about the AWS Secrets Extension Layer for Lambda functions.
I wonder if it is possible to have the AWS SDK detecting whether this extension is available and make use of it.

Use Case

Once the extension is added as a layer to the lambda function, applications need to check on their own whether this extension is available or not.
If the client is detecting that layer, applications can keep using the SecretsManagerClient which is then querying either the secrets manager directly or the extension, depending on availability.

Proposed Solution

Extend the logic of SecretsManagerClient to detect PARAMETERS_SECRETS_EXTENSION_HTTP_PORT. If available, assemble the URL for the secrets manager query respecting that environment variable and end-up querying that URL. AFAIK this would be something like http://localhost:[PARAMETERS_SECRETS_EXTENSION_HTTP_PORT]/?secretId=<secretId>

I think this would be limited to reading secrets as I am not aware if the extension can actually write secrets, etc.

Other Information

No response

Acknowledgements
  • I may be able to implement this feature request
  • This feature might incur a breaking change
SDK version used

latest

Environment details (Version of PHP (php -v)? OS name and version, etc.)

Debian, PHP 8.5

Lenguaje dominante
PHP
Estrellas
6.2k
Forks
1.3k
Merge medio
4 d 15 h
PR fusionados (30 d)
21

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de aws/aws-sdk-php

Todos los issues de aws/aws-sdk-php

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.