Skip to content

Fix git-protocols, git-requests, api-requests, api-requests-by-user for GHES 3.11+ #258

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

blongv
Copy link

@blongv blongv commented Oct 14, 2024

Since Github Enterprise Server 3.11 and later, log locations and formats have changed. For example, babeld no longer logs to /var/log/syslog. Instead, it logs to /var/log/babeld/babeld.log. Also, current_user is no longer in /var/log/github/unicorn.log; instead it is gh.actor.login. Lastly, haproxy is now called haproxy-frontend.

This PR includes fixes for four scripts:

  • api-requests-by-user.sh
  • api-requests.sh
  • git-protocol.sh
  • git-requests.sh

Unfortunately, the admin user no longer has privileges to read babeld.log, but it has sudo NOPASSWD capability. The git-protocol.sh and git-requests.sh use mktemp and sudo to copy the babeld.log to a temporary directory, parse it and remove it.

@blongv blongv changed the title Fix git-requests, api-requests, api-requests-by-user for GHES 3.11+ Fix git-protocols, git-requests, api-requests, api-requests-by-user for GHES 3.11+ Oct 15, 2024
appatalks added a commit to appatalks/hubble that referenced this pull request May 31, 2025
appatalks added a commit to appatalks/hubble that referenced this pull request May 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant