-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App sync Web socket pass authorization extension not working #8832
Comments
Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide. |
Hi @umangshrestha, thanks for reporting this issue to us. There is indeed a parity gap between our AppSync implementation and the AWS behaviour. In particular, I've noticed that the messages required for the initial handshake are absent in our implementation. This being said, I do not have a problem connecting to the websocket endpoint of a LocalStack AppSync instance. I am replicating your {
"host": "<api id>.appsync-api.localhost.localstack.cloud:4566",
"x-api-key": "<api key>"
} Have you tried connecting with the |
Hello, I have attempted the method earlier and observed the following: The addition of meta information, such as headers and payloads, does not work in the retrieval of subscription messages. Nonetheless, I am able to establish a WebSocket connection. |
Hello 👋! It looks like this issue hasn’t been active in longer than five months. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Hello 👋! It looks like this issue hasn’t been active in longer than five months. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
Is there an existing issue for this?
Current Behavior
I have a Graphql with a subscription linked to the mutation
schema:
graphql-ws
$ wscat -c 'ws://localhost:4510/graphql/d4c07aa64a5746ac92f434d200?header=eyJ4LXVzZXItaWQiOiJYU1hNUFlITU1FNFgiLCJob3N0IjoibG9jYWxob3N0OjQ1MTAiLCJ4LWFwaS1rZXkiOiI2ZDU5ZThiMiJ9&payload=e30='
But I get the following error.
Expected Behavior
If possible I want it to follow the appsync flow:
$ wscat -c 'WSS_URLgraphql/realtime?header=<BASE64_HEADER>&payload=e30=' -s graphql-ws
and I send authorization like
How are you starting LocalStack?
With a docker-compose file
Steps To Reproduce
How are you starting localstack (e.g.,
bin/localstack
command, arguments, ordocker-compose.yml
)Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
export AWS_ACCESS_KEY_ID=test
export AWS_SECRET_ACCESS_KEY=test
export AWS_DEFAULT_REGION=us-east-1
run localstack in debug mode
export DEBUG=1
Enable persistence by uncommenting below line to persist resources across multiple re-starts
export PERSISTENCE=1
lambda flags
export LOCALSTACK_TEST_MODE=True
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: