[Bug]: Error fetching GCP Access Token - java.net.UnknownHostException: Host not allowed #38168
Open
1 task done
Labels
Bug
Something isn't working
Community Reported
issues reported by community members
High
This issue blocks a user from building or impacts a lot of users
Integrations Product
Issues related to a specific integration
Needs Triaging
Needs attention from maintainers to triage
Production
Query & JS Pod
Issues related to the query & JS Pod
REST API plugin
REST API plugin related issues
Is there an existing issue for this?
Description
Context
We are evaluating Appsmith for building a custom solution for a customer. This will be a self-hosted installation with Appsmith deployed on GCP. It will use Postgres Database for storing the customers' objects which will be connected as datasource. We have a requirement to store, fetch, update some documents (Images, PDFs etc) in GCS.
Problem
To enable interaction with GCP Cloud Storage, I tried to create a simple curl-import API to fetch the access token from GCP's metadata server. What I have observed is that it throws a "java.net.UnknownHostException: Host not allowed" error. I have also tried this with a simple REST API database connector with no luck.
I ran a simple test with a curl command as shown below from the GCE VM as well as also the AppSmith container running on the same GCE VM; it seems to work fine. This only appears to be an issue from Appsmith application.
Doing a code search on the repository, I found this PR #34250 which appears to disallow access to GCP's Metadata Server.
Could you please advise if there is a way to workaround this perhaps with an environment variable. Please note that is critical for us as this blocking the deployment of Appsmith. Could you please let us know if S3 data source connector is supported with GCS and has been tested.
Alternatively, we'd be forced to probably create a proxy REST API which seems to be an overkill and will increase the development time for us.
Environment
We are using the Docker container of
appsmith/appsmith-ee:latest
with image IDdf6aca35b499
. Additional details from Appsmith container logs are below for your referencePlease let me know if you need any further information
Steps To Reproduce
Public Sample App
No response
Environment
Release
Severity
High (Blocker to building or releasing)
Issue video log
No response
Version
Self Hosted - v1.50
The text was updated successfully, but these errors were encountered: