Remove unused audit_usernames from config.yml.example

What does this MR do and why?

config.yml.example documents an audit_usernames setting:

# Audit usernames.
# Set to true to see real usernames in the logs instead of key ids, which is easier to follow, but
# incurs an extra API call on every gitlab-shell command.
audit_usernames: false

Nothing reads this setting any more. It was used by the Ruby implementation (lib/gitlab_shell.rb), which was removed in 18096b54 ("Remove dead Ruby code", 2019). The Go config.Config struct has no field for it, and grep -rn audit_usernames finds only this example. An admin who sets it to true gets no change in the logs, even though the comment says they will.

This MR removes the four lines from the example. No code change.

The Linux package still renders audit_usernames into its own gitlab-shell config template. That is harmless (unknown keys are ignored when the YAML is loaded) and can be cleaned up there separately; this MR does not need a matching omnibus-gitlab change.

How to verify

  • grep -rn audit_usernames --exclude-dir=.git . on main only matches config.yml.example.
  • git log -S audit_usernames shows the last code that read it was removed in 18096b54.
  • python3 -c "import yaml; yaml.safe_load(open('config.yml.example'))" still parses.

This contribution was prepared with the help of an AI assistant. I reviewed the changes and take responsibility for them.

Merge request reports

Loading
Loading