backstage-coder: With Backstage and Coder deployed on the same cluster, HTTP responses are formatted as HTML
@buenos-nachos is already working on this.
Since Sep 20, 2024.
Assessment
This issue has not been assessed yet.
Description
Opening this issue on behalf of a customer.
Issue
We have a customer reporting an issue when both Backstage and Coder are deployed on the same Kubernetes cluster, particularly when the Backstage deployment is not being served from the root URL. With the deployments configured like this, the Coder plugin will still make HTTP requests, but the responses will be formatted as text/html instead of application/json.
In addition, the response body is the root HTML file we serve for the Coder deployment dashboard UI. This causes the plugin to break in different ways depending on the version of the Coder plugin. On v0.3.0, the incorrect response causes the plugin to boot the user to the token authentication screen, with no way for them to get to any other views. On earlier versions, the incorrect response still lets the user reach the workspaces list view, but the view is never able to render any workspaces. The v0.3.0 behavior seems "more correct", but we still need to make sure that responses come back in the correct format.
This issue is also almost definitely on our end. The customer reported that out of all the plugins they're using, this is the only one that has this issue.
- Dominant language
- TypeScript
- Stars
- 67
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coder/backstage-plugins
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
coder/backstage-plugins#105 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
coder/backstage-plugins#148 ·
-
Coder plugin: Fallback authentication button still appears after user has already authenticated Openbug
coder/backstage-plugins#146 · 1 assignee ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
coder/backstage-plugins#145 ·
-
bug help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
coder/backstage-plugins#144 · 1 comment ·
All issues in coder/backstage-plugins
Similar issues
-
blocklist removal
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MetaMask/eth-phishing-detect#296544 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
pastelsky/bundlephobia#1122 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
category/development priority/P2 scope/file-operations scope/testing type/enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100