SecretsManagerClient: Detect `PARAMETERS_SECRETS_EXTENSION_HTTP_PORT` and use extension directly

Aperta
#3,325 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@stobrien89 ci sta già lavorando.

Dal 22/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
PHP
Stelle
6.2k
Fork
1.3k
Merge medio
4g 15h
PR unite (30g)
21

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di aws/aws-sdk-php

Tutte le issue di aws/aws-sdk-php

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.