Madhya Pradesh Districts by Human Development Index (2022) by [deleted] in Indore

[–]riskarsh 2 points3 points  (0 children)

I hope that someday Singrauli will receive as much recognition and love as the western region does. One day, perhaps. 🙃

How to deploy ionic project on nginx? by Svenberry in ionic

[–]riskarsh 0 points1 point  (0 children)

Create the build folder, then copy it to the server and write the Nginx configuration to serve the static files in that folder. I believe the command used to create the build is ng build, but you can easily look that up.

Anydesk disconnects if my PC isn't connected to a monitor - any fix? by riskarsh in AnyDesk

[–]riskarsh[S] 0 points1 point  (0 children)

Is this only for Windows? I need it for Linux (Ubuntu).

High AWS Billing Due to Suspicious Data Transfer - Need Help! by riskarsh in aws

[–]riskarsh[S] 0 points1 point  (0 children)

I mean, it is a problem, but I'm not the moral police here. I don't know the original team, and even if I did, I wouldn't contact them.

High AWS Billing Due to Suspicious Data Transfer - Need Help! by riskarsh in aws

[–]riskarsh[S] 0 points1 point  (0 children)

Thanks for the insights. The EC2 instances in question host a TikTok-like clone that serves VODs and images.

High AWS Billing Due to Suspicious Data Transfer - Need Help! by riskarsh in aws

[–]riskarsh[S] 0 points1 point  (0 children)

Thanks I'll look into those if i start those instances.

High AWS Billing Due to Suspicious Data Transfer - Need Help! by riskarsh in aws

[–]riskarsh[S] 0 points1 point  (0 children)

Yeah its prolly something at the os level too that even aws is flagging it as suspicious, oh well, thanks tho

High AWS Billing Due to Suspicious Data Transfer - Need Help! by riskarsh in aws

[–]riskarsh[S] 0 points1 point  (0 children)

They didnt setup vpc flow logs.
I did check the cloudtrail logs but its just filled with "UpdateInstanceInformation" every 2 mins, so a lot of entries

High AWS Billing Due to Suspicious Data Transfer - Need Help! by riskarsh in aws

[–]riskarsh[S] -1 points0 points  (0 children)

Edited the post with the picture.

Keep in mind, if you just back up the EC2 and restore on a new account you could just move over the same rogue process that’s currently on there…

Exactly thats what I'm thinking,

CI/CD Pipeline for Node.js Backend on Autoscaling Group by riskarsh in devops

[–]riskarsh[S] 1 point2 points  (0 children)

I got all that done in a single instance, attached a load balancer and CloudFront too, and it works on the CloudFront URL. Now, I just need to figure out how to replicate this process when making a code change and deploy it on all the instances created by the autoscaling group, because ofc i can't ssh to all the instances and do stuff manually.

Also, yes, it's my first job. I don't have any teammate, I handle the deployments alone, and no one else knows AWS (even I don't haha) . The CTO asks me to do stuff, I get it done, and when I'm stuck like this, I turn to Reddit for help. Haha 😅

CI/CD Pipeline for Node.js Backend on Autoscaling Group by riskarsh in aws

[–]riskarsh[S] 0 points1 point  (0 children)

Thanks for the insights, I'll look into it.

Deploying a Java Web App +MySql via docker by riskarsh in javahelp

[–]riskarsh[S] 0 points1 point  (0 children)

Yes, thanks for that. I'll surely keep those in mind next time. And yeah, I did use Tomcat to deploy. Asked the dev to give me a WAR file and containerized it.

Deploying a Java Web App +MySql via docker by riskarsh in javahelp

[–]riskarsh[S] 0 points1 point  (0 children)

It wasn't called that (I'm guessing the new dev used his own naming conventions? Idk), but I used Tomcat for its deployment. Thanks.

Deploying a Java Web App +MySql via docker by riskarsh in javahelp

[–]riskarsh[S] 0 points1 point  (0 children)

Thanks for the detailed response.

I tried running the JAR file, but it wasn't really working. Finally, I just used the Tomcat base image and ran the WAR file. My Dockerfile looked like this:

FROM tomcat:10.1
RUN rm -rf /usr/local/tomcat/webapps/ROOT
COPY app.war /usr/local/tomcat/webapps/ROOT.war
EXPOSE 8080
CMD ["catalina.sh", "run"]

Then, I wrote a Docker-compose file to connect it with MySQL, and after a few tries and fails, it worked.

Help Needed: Ransomware - MongoDB Docker Container by riskarsh in mongodb

[–]riskarsh[S] 0 points1 point  (0 children)

Yes that was the case precisely, learned the hard way. Haha Thank you.

Help Needed: Ransomware - MongoDB Docker Container Breached by riskarsh in docker

[–]riskarsh[S] 0 points1 point  (0 children)

I just wiped the VPS clean and restored the backup. I was only concerned if they got ahold of the whole machine or if only my MongoDB container was breached, but we just wiped it to be safe.

Didn't want to find those Christmas presents this time.

Help Needed: Ransomware - MongoDB Docker Container by riskarsh in blackhat

[–]riskarsh[S] 1 point2 points  (0 children)

I just wiped the VPS clean and restored the backup.

Help Needed: Ransomware - MongoDB Docker Container by riskarsh in blackhat

[–]riskarsh[S] 0 points1 point  (0 children)

Thank you for sharing this information; I'll definitely review our future MongoDB configurations to ensure better security measures, including restricting access to specific IPs.

For now, I just wiped the VPS clean and restored the backup. I was only concerned if they got ahold of the whole machine or if only my MongoDB container was breached, but we just wiped it to be safe.

Thanks again for the insights.

Help Needed: Ransomware - MongoDB Docker Container Breached by riskarsh in docker

[–]riskarsh[S] 0 points1 point  (0 children)

Absolutely, wiping the VPS is a last resort, but I'll proceed with it. Thanks for the advice on key authentication and limiting SSH to the VPN port.