Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabiand/uploadav
https://github.com/fabiand/uploadav
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fabiand/uploadav
- Owner: fabiand
- Created: 2024-05-31T12:28:11.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-31T12:32:45.000Z (7 months ago)
- Last Synced: 2024-05-31T13:52:14.806Z (7 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Idea
1. Simple http server supporting GET and PUT
2. Assuming disk.img in a certain file, only serving this one file
3. Pod to mount either block or FS PVC and map the file
4. oauth-proxy sidecar to authenticate access
5. route to expose to publicEffect:
HTTP based upload/download of PVC, authenticated against Kube.# Usage
## GET
$ TOKEN=$(oc create token TBD)
$ curl --insecure -L -v -H"Authorization: Bearer $TOKEN" https://proxy-default.example.com/disk.raw## PUT
$ TOKEN=$(oc create token TBD)
$ curl --insecure -L -v -H"Authorization: Bearer $TOKEN" https://proxy-default.example.com/disk.raw --upload-file mydisk.raw