Closed arielshaqed closed 1 year ago
please assign me for this issue and guide me what to do . Sir.
Hi @a-Cash-dixit !
Thanks for taking this!
There are these 2 log messages emitted for every API operation (the first one) and for every S3 gateway operation (the second one). You can make lakeFS emit the first one by running any lakectl
operation, and the second by running any aws s3
operation with the lakeFS S3 gateway as its endpoint (see the AWS CLI integration guide for how to configure this!). And each log message just points you t the line in the code that emits it.
Now the goal is to add to these 2 log messages the IP of the user. The Golang http.Server page should have at least one option for getting the source IP of a connection -- please find a good one (the more standard and simple the better!) and add that to the log.
Please do let me know how you get along -- we're here to help.
can you add Hacktoberfest tag to your repo. Sir.
can you add Hacktoberfest tag to your repo. Sir.
Hi @a-Cash-dixit ,
Unfortunately this year we shall not participate in Hacktoberfest. I know that this will disappoint you as much (or even more) as it does me. So I want to explain why we made this difficult decision.
Previously we did participate in Hacktoberfest. This year we have elected not to do so. There are unfortunately two types of contributors attracted by Hacktoberfest: genuine ones like yourself, and (unfortunately!) bad-faith people who send spam PRs. It's easy to tell the spam PRs of course, and I can already see that you are not a spammer. Our worry is that as soon as I put the "hacktoberfest" tag on the repo, we will get just too many of them!
While the PRs like those you intend to send are great, in practice there are far more PRs sent by the second group of people. And as a small open-source project, the price paid to deal with all of those PRs is tremendous. Using this search you can find just a few of the PRs sent by people. They include many changes such as adding and removing a single comma from the docs. We were reviewing and closing more than 10 spam PRs per day on that Hacktoberfest.
So we regretfully decided not to participate in Hacktoberfest this year.
hi @arielshaqed! Can you assign this to me? I think I can give it a shot based on your comment from October 2 (also first contribution to lakeFS :) )
We currently do not log the source IP of an operation. It would really have helped me understand Spark behaviour if we did :-) This should support load balancers placed in front of the server, by respecting X-Forward headers or something.
For reference, here's a log from a DeleteObject operation that I just performed:
The same of S3 gateway operations too, please (which include the name of the invoking user, at least):