Skip to content
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

Disable host check for dev setup #1891

Merged
merged 3 commits into from
Jul 29, 2020
Merged

Disable host check for dev setup #1891

merged 3 commits into from
Jul 29, 2020

Conversation

andresmgot
Copy link
Contributor

Description of the change

After #1884, the expected host is 127.0.0.1 when running the server locally, this breaks my local dev environment because I am using kubeapps.local. Disabling the host check since we don't need it for the dev setup.

Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After #1884, the expected host is 127.0.0.1 when running the server locally, this breaks my local dev environment because I am using kubeapps.local. Disabling the host check since we don't need it for the dev setup.

I don't think we should be setting the DANGEROUSLY_DISABLE_HOST_CHECK=true - it's dangerous for a reason and using this by default can have unexpected consequences for people developing.

Have you tried what's recommended in the docs with specifying your public host in the the .env.development file? If that doesn't work, I'd update #1884 to include the proxy as a comment and update the docs accordingly (they already mention the setting, just mention that it can be uncommented), rather than using this setting.

@andresmgot
Copy link
Contributor Author

Have you tried what's recommended in the docs with specifying your public host in the the .env.development file?

It didn't work, I assume because we are accessing the service through telepresence. I had to remove the setting from the package.json.

+ "proxy": "http://127.0.0.1:8080"
```

> **NOTE**: The [proxy](../../dashboard/package.json#L176) `key:value` has already added to the `package.json` for convenience but you can change the `host:port` values to meet your needs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This note is no longer correct, I think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, forgot to update the comment

@andresmgot andresmgot merged commit 5fa5f26 into master Jul 29, 2020
@andresmgot andresmgot deleted the disableHostCheck branch July 29, 2020 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants