Commit a718bcd1 authored by Yorick Peterse's avatar Yorick Peterse

Tag API calls to /internal/authorized_keys

This allows us to display statistics in Grafana.
parent 9980d3fe
......@@ -9,6 +9,7 @@ v 8.8.0 (unreleased)
- [Elastic] Add rake task for clearing indexing status
- Set KRB5 as default clone protocol when Kerberos is enabled and user is logged in (Borja Aparicio)
- Reduce emails-on-push HTML size by using a simple monospace font
- API requests to /internal/authorized_keys are now tagged properly
v 8.7.5
- No EE-specific changes
......
......@@ -58,6 +58,8 @@ module API
# Get a ssh key using the fingerprint
#
get "/authorized_keys" do
Gitlab::Metrics.action = 'Grape#/internal/authorized_keys'
fingerprint = params.fetch(:fingerprint) do
Gitlab::InsecureKeyFingerprint.new(params.fetch(:key)).fingerprint
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment