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

How to set an API secret ? #417

Open
priamai opened this issue Dec 7, 2023 · 3 comments
Open

How to set an API secret ? #417

priamai opened this issue Dec 7, 2023 · 3 comments

Comments

@priamai
Copy link

priamai commented Dec 7, 2023

Hi there,
I am hosting the client on Vast.AI and I would like to protect the API via a simple key.
How can I do that?
Cheers.

@henk717
Copy link
Collaborator

henk717 commented Dec 7, 2023

The API doesn't support a key but the --remote link is already randomized and long.

@priamai
Copy link
Author

priamai commented Dec 7, 2023

The problem is that even with that when it is hosted on a VM with a static IP, eventually a user can figure it out via scanning and the abuse my service.
I am just thinking of another way maybe have it listen only to localhost and then I can use ngrok + authentication token ?

@henk717
Copy link
Collaborator

henk717 commented Dec 8, 2023

On the United version we don't allow direct IP access by default when only --remote is used, so they can't IP scan it.

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

No branches or pull requests

2 participants