Skip to content

Commit

Permalink
AAP-23414: Lightspeed onprem to block the metrics endpoint from publi…
Browse files Browse the repository at this point in the history
…c access. Fix URL (#1071)

Co-authored-by: Michael Anstis <manstis@redhat.com>
  • Loading branch information
manstis and manstis authored May 28, 2024
1 parent e2d8e12 commit 50502fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ansible_wisdom/main/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
path('', HomeView.as_view(), name='home'),
# add the GitHub OAuth redirect URL /complete/github-team/
path('', include('social_django.urls', namespace='social')),
path('metrics/', MetricsView.as_view(), name='prometheus-metrics'),
# Do not add a trailing slash. django_prometheus uses plain /metrics
# Adding a trailing slash breaks our metric collection in all sorts of ways.
path('metrics', MetricsView.as_view(), name='prometheus-metrics'),
path('admin/', admin.site.urls),
path(f'api/{WISDOM_API_VERSION}/ai/', include("ansible_ai_connect.ai.api.urls")),
path(f'api/{WISDOM_API_VERSION}/me/', CurrentUserView.as_view(), name='me'),
Expand Down

1 comment on commit 50502fd

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ClamAV Virus Definition DB Files:
----
total 228984
-rw-r--r--  1 root root        28 May 28 06:07 whitelist.ign2
-rw-r--r--  1 root root 170479789 May 28 06:08 main.cvd
-rw-r--r--  1 root root        69 May 28 06:07 freshclam.dat
-rw-r--r--  1 root root  63685486 May 28 06:07 daily.cvd
-rw-r--r--  1 root root    289733 May 28 06:08 bytecode.cvd
drwxr-xr-x 16 root root      4096 May 28 16:07 ..
drwxr-xr-x  2 root root      4096 May 28 16:07 .
----
File: /var/lib/clamav/bytecode.cvd
Build time: 27 Feb 2024 10:37 -0500
Version: 335
Signatures: 86
Functionality level: 90
Builder: raynman
MD5: 16d388f042f5c44628a66228df427c20
Digital signature: 7fD3mweaw4tqQH9Dl7ZewBLXZBSrLKX5no/rYN/6NQBmhnWUyTBt3uzd7ZjEnIT5yN1ygLwsDcuzoKRoA+syrfk3PcDHf5/h6Wb/d8uikXSALygH5VYAPo2ksV5Pitn3reECJ90q2m9m0CH2VpT1tDkkcVi05LLV5PwBle2Ufpe
Verification OK.
----
File: /var/lib/clamav/daily.cvd
Build time: 27 May 2024 04:29 -0400
Version: 27288
Signatures: 2061829
Functionality level: 90
Builder: raynman
MD5: 9eac0d4a0279d4a14dc57108e6b1d78a
Digital signature: oaQevAiBsZTVuBp7fu9o7lR/xkJIb0y3m6O1pM7k9cvR4RFJ7vb6m8pFYqY+leMyoXVFjmz+QU6hTZhoKkqjBfSYmDFp0gYUQVC8rq99qzMFWC6qX5E7igOTikIGpGhno8vgvKqEqh6w0pPV8B8KD8TElgKJd+IeGB+UwUP9Jrf
Verification OK.
----
File: /var/lib/clamav/main.cvd
Build time: 16 Sep 2021 08:32 -0400
Version: 62
Signatures: 6647427
Functionality level: 90
Builder: sigmgr
MD5: 137eccce31aacb21b5a98bb8c21cefd6
Digital signature: twaJBls8V5q64R7QY10AatEtPNuPWoVoxTaNO1jpBg7s5jIMMXpitgG1000YLp6rb0TWkEKjRqxneGTxuxWaWm7XBjsgwX2BRWh/y4fhs7uyImdKRLzQ5y8e2EkSChegF/i8clqfn+1qetq9j4gbktJ3JZpOXPoHlyr2Dv9S/Bg
Verification OK.
----
Scanning Results:
ClamAV 1.0.6/27288/Mon May 27 08:29:01 2024
LibClamAV Warning: Max file-size was set to 4194304000 bytes. Unfortunately, scanning files greater than 2147483647 bytes (2 GiB - 1) is not supported.

----------- SCAN SUMMARY -----------
Known viruses: 8693656
Engine version: 1.0.6
Scanned directories: 31514
Scanned files: 194737
Infected files: 0
Data scanned: 6712.40 MB
Data read: 3521.66 MB (ratio 1.91:1)
Time: 1467.417 sec (24 m 27 s)
Start Date: 2024:05:28 16:09:23
End Date:   2024:05:28 16:33:50

Please sign in to comment.