R
Railway13mo ago
SKB

how do i see my local files ?

so in my project some logs are saved on a csv file in my local directory , how can i open the csv file that has the logs saved ?
Solution:
Not possible.
Jump to solution
35 Replies
Percy
Percy13mo ago
Project ID: N/A
SKB
SKBOP13mo ago
N/A
Solution
alex
alex13mo ago
Not possible.
alex
alex13mo ago
Use a logging service like axiom https://axiom.co
Axiom
All your data, all the time - Axiom
All your data, all the time - meet Axiom's serverless log management solution
alex
alex13mo ago
You can also create an http endpoint in your app that allows you to access files on the disk, but that becomes risky if it is a public app
SKB
SKBOP13mo ago
yeah that i thought of but it can be quite dangerous , the url that railway provides is there a way so that i can set that only my ip address can access it ?
alex
alex13mo ago
that's all application design you'd have to do that yourself
SKB
SKBOP13mo ago
ohk
alex
alex13mo ago
tbh i think the easiest way is to use a logging service or you can have it POST request to another service you own (but that defeats the point of using railway lol) you can use a password or something to protect your app but once again probably best to use axiom or another logging service
maddsua
maddsua13mo ago
you can use access tokens and limit that endpoint to only certain allowed ip addresses
alex
alex13mo ago
access tokens and passwords are hard doing it to a specific IP address maybe, but thats still not exactly "secure" ip address spoofing is super easy
maddsua
maddsua13mo ago
that's why you use both
alex
alex13mo ago
true lool this is pretty interesting because its a problem im facing too I might do rsa signing challenges for one of my projects 1. request a challenge 2. sign challenge 3. use signed challenge as a Bearer auth token or something lol
SKB
SKBOP13mo ago
whats your techstack if you dont mind me asking
alex
alex13mo ago
What I use the most or i mean what I use the most is Nextjs, mongodb, express and node what I prefer to use is nextjs, postgres, express/other and bun.sh
maddsua
maddsua13mo ago
And tokens aren't super hard if they aren't multi user. You can add fake delay to prevent timing attack and use the simplest TOTP implementation to never pass the actual secret over a network
alex
alex13mo ago
Yeah but compare that work to slapping an axiom logging export onto the app and then it becomes a different story
maddsua
maddsua13mo ago
depends on what's more preferable to you for me having to use an additional service isn't really interesting
alex
alex13mo ago
true easy solution use s3 with a password kekw
maddsua
maddsua13mo ago
in fact my logs work like that
SKB
SKBOP13mo ago
i was thinking a webhook that can give me the csv file every 24 hrs or so
maddsua
maddsua13mo ago
catch-all data dums to be exact I also have a supabase instance to dump some other error logs there and a DigitalOcean function that checks new logs every 6 hours and sends a telegram notification
alex
alex13mo ago
sigh guys make everything so difficult do it the simple way
maddsua
maddsua13mo ago
8 years of writing in C kekw
SKB
SKBOP13mo ago
squidwardawake
maddsua
maddsua13mo ago
doesn't go away without leaving a mark
alex
alex13mo ago
i never learned C I'm so new generation that I don't know the father of all programming languages lol I know rust though trol
SKB
SKBOP13mo ago
us
maddsua
maddsua13mo ago
Im learning rust rn
SKB
SKBOP13mo ago
btw why is rust getting so popular? i m newbie so
maddsua
maddsua13mo ago
maybe let's move to chitchat for this?
alex
alex13mo ago
yep
maddsua
maddsua13mo ago
Brody gonna be disappointed in me and Alex
alex
alex13mo ago
lol
SKB
SKBOP13mo ago
i didnt realise we were in help lol
Want results from more Discord servers?
Add your server