feat(php): Add PHP authentication token generation sample#628
Open
feat(php): Add PHP authentication token generation sample#628
Conversation
Add PHP SDK example for generating Aurora DSQL IAM authentication tokens using Aws\DSQL\AuthTokenGenerator with CredentialProvider::defaultProvider(). Validated against live cluster (us-east-1) with PHP 8.5 + aws/aws-sdk-php v3.371.
Two tests: - testGenerateTokenReturnsNonEmptyString: verifies token is generated - testTokenCanConnectToCluster: verifies token works for SELECT 1 Both validated against live cluster (us-east-1). Adds GitHub Actions workflow php-authentication-integ-tests.yml following existing workflow patterns.
amaksimo
reviewed
Mar 11, 2026
| with: | ||
| workflow_name: php-authentication | ||
| secrets: | ||
| AWS_IAM_ROLE: ${{ secrets.PYTHON_IAM_ROLE }} |
Contributor
There was a problem hiding this comment.
We should probably create a different role here and not use the python one?
amaksimo
reviewed
Mar 11, 2026
Contributor
amaksimo
left a comment
There was a problem hiding this comment.
LGTM, slight comment on the workflow
amaksimo
reviewed
Mar 11, 2026
| javascript-node-postgres: ${{ steps.detect.outputs.javascript-node-postgres }} | ||
| javascript-postgresjs: ${{ steps.detect.outputs.javascript-postgresjs }} | ||
| lambda-nodejs: ${{ steps.detect.outputs.lambda-nodejs }} | ||
| php-authentication: ${{ steps.detect.outputs.php-authentication }} |
Contributor
There was a problem hiding this comment.
Interestingly, php is the only example with an auth-token CI. I guess we can add it to a backlog to add this for the rest of the samples.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add PHP SDK example for generating Aurora DSQL IAM authentication tokens using
Aws\DSQL\AuthTokenGeneratorwithCredentialProvider::defaultProvider().Includes PHPUnit integration tests and GitHub Actions workflow.
Validated against live Aurora DSQL cluster (us-east-1) with PHP 8.5 + aws/aws-sdk-php v3.371.
Supersedes #626 (closed — was from fork, CI couldn't access secrets).