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

Include a better User-Agent PhealNG #429

Closed
regner opened this issue Mar 14, 2016 · 9 comments
Closed

Include a better User-Agent PhealNG #429

regner opened this issue Mar 14, 2016 · 9 comments

Comments

@regner
Copy link

regner commented Mar 14, 2016

Most (over 60%) of the SEAT installs out there seem to have the stock contact information for the user agent of "[email protected]". Can you better encourage people to update this information? There are a few instances of SEAT doing some weird things and I would like to poke people. :)

@MilosRasic
Copy link

Oh, boi, this is like police knocking on your door :)

This might be a slight problem for people running custom versions like myself. Based on an old version of SeAT, mine seems to override phealng's http_user_agent setting in app/eveapi/BaseAPI.php with:
PhealConfig::getInstance()->http_user_agent = 'SeAT ' . \Config::get('seat.version') . 'API Fetcher';

This should have been generating 'SeAT unknown API Fetcher' user agent string from my instance of SeAT. Changed to include a contact email now. Hopefully this is the correct place where user agent is set. Can't find it anywhere else.

@regner
Copy link
Author

regner commented Mar 14, 2016

The top 60% of user agents for SeAT specifically have the [email protected] in the header. So I assume this most instances are on at least those versions. 50% of the SeAT requests come from 2 versions with that default header.

@eve-seat
Copy link
Owner

@regner thanks for this heads up. Could you paste the full user agent you are getting?

I think 2 major things are at play here.

  • First of all, this version of SeAT being 0.x is actually deprecated in favor of 1x here. So ideally no new code should really be landing in this repository. I have been wondering about making a commit that will not make it possible to run this version of SeAT anymore, forcing an install of 1.x. That of course does not solve it for existing installs. This brings me to the second point.
  • What exactly is the problem that you are seeing? If its something we can fix in code then that would of course be great for us.

As far as the user agent specification goes, I think the best would then be for us to add a hard requirement to set the email address as part of the installation procedure in 1.x which is easy enough to do.

@MilosRasic the user agent is actually defined in this whole block taking the mail settings into account to set a technical contact and falling back to the actual mail from in the mail settings file / environment.

Happy to discuss this further to get to a workable solution!

@regner
Copy link
Author

regner commented Mar 14, 2016

Splunk search for the past 24 hours: index=api UserAgent = "PhealNG/*+eveseat/*" | top userAgent

Results:

    userAgent                                                count   percent
    PhealNG/2.3.4+eveseat/[email protected]   2310817 33.207582
    PhealNG/2.3.4+eveseat/[email protected]   1628843 23.407279
    PhealNG/2.3.4+eveseat/[email protected]     363219  5.219636
    PhealNG/2.3.4+eveseat/1.0.10+****@****.com                361250  5.191341
    PhealNG/2.3.4+eveseat/1.0.12+****@****.com                319359  4.589347
    PhealNG/2.3.4+eveseat/1.0.11+****@****.com                289840  4.165144
    PhealNG/2.3.4+eveseat/1.0.11+****@****.com                201905  2.901475
    PhealNG/2.3.4+eveseat/1.0.12+****@****.com                159709  2.295097
    PhealNG/2.3.4+eveseat/1.0.12+****@****.com                154763  2.224021
    PhealNG/2.3.4+eveseat/1.0.12+****@****.com                134392  1.931279

@MilosRasic
Copy link

idgi, does Pheal further compile something like 'SeAT 1.0.11 API Fetcher at localhost.local Install mail_from [email protected] Administrative Contact: [email protected]' to something like 'PhealNG/2.3.4+eveseat/[email protected]' ?

@eve-seat
Copy link
Owner

@regner fantastic. This is from the 1.x repository which solves a lot of problems! I added eveseat/seat#77 to track this implementation.

@eve-seat
Copy link
Owner

Before I forget, @regner would it be possible to tell us what oddities you are seeing from SeAT in eveseat/seat#77 too?

Thanks again.

@eve-seat
Copy link
Owner

Closing this to be tracked in the 1.x codebase.

@regner
Copy link
Author

regner commented Mar 15, 2016

Sorry about that. I didn't realize you had a completely different repo for 1.x. :) Thank you very much for taking action on this, I really do appreciate it. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants