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

JWT URL Token Causes 404 #170

Open
refringe opened this issue Dec 3, 2024 · 1 comment
Open

JWT URL Token Causes 404 #170

refringe opened this issue Dec 3, 2024 · 1 comment

Comments

@refringe
Copy link

refringe commented Dec 3, 2024

I'm unable to use JWT tokens as a parameter within LFS URLs.

Include the token in the URL:

git config lfs.url 'https://lfs.sp-tarkov.com/sp-tarkov/server?jwt=TOKEN'

Error when pushing:

git lfs push --all origin
batch response: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.                                    
Uploading LFS objects:   0% (0/1), 0 B | 0 B/s, done.

Server log:

[pid: 8|app: 0|req: 1/1] 172.18.0.1 () {54 vars in 2509 bytes} [Tue Dec  3 16:06:47 2024] POST /sp-tarkov/server?jwt=TOKEN/locks/verify => generated 150 bytes in 6 msecs (HTTP/1.0 404) 2 headers in 91 bytes (1 switches on core 0)
[pid: 9|app: 0|req: 1/2] 172.18.0.1 () {54 vars in 2512 bytes} [Tue Dec  3 16:06:47 2024] POST /sp-tarkov/server?jwt=TOKEN/objects/batch => generated 150 bytes in 4 msecs (HTTP/1.0 404) 2 headers in 91 bytes (1 switches on core 0)

It appears as though the token is being used as part of the file operation?

Everything works fine when using the giftless.auth.allow_anon:read_write provider.

Between this issue and #172, I'm not sure how to get simple JWT authentication working at the moment.

On the latest docker image:
https://hub.docker.com/r/datopian/giftless/tags

@rufuspollock
Copy link
Member

@refringe i'm not sure docker is up to date - see #174. You may want to try going off main in this repo and see how that goes. We are working on getting docker up to date.

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