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

Introduce integrations with AIPI for automated content scanning #644

Merged
merged 4 commits into from
Aug 24, 2024

Conversation

jvyden
Copy link
Member

@jvyden jvyden commented Aug 24, 2024

Rough port from DO code to integrate AI image scanning into Refresh. This should help reduce the photo endpoint abuse we've been seeing from DT, while using the same existing infrastructure that works incredibly well.

This does not scan every uploaded texture as this would increase server load significantly. It will only scan under certain circumstances:

  • for uploaded photos
  • for images uploaded via the API

This also brings in the option to automatically restrict users who upload images with banned tags if configured. This will be left off on production while I gauge if this is going to false-flag for normal non-abuse activity.

Oh, this also introduces support for a staff-only webhook. This could be used for a non-persisted audit log if we wanted to use that as a solution for #565.

@jvyden jvyden requested a review from Beyley August 24, 2024 20:31
Copy link
Member

@Beyley Beyley left a comment

Choose a reason for hiding this comment

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

Functionality looks good, aside from what seems to be a typo with one of the API links.
Not all of these comments necessarily need to be resolved before merge, if you would like to get this out sooner.

Refresh.GameServer/Services/AipiService.cs Show resolved Hide resolved
Refresh.GameServer/Services/AipiService.cs Outdated Show resolved Hide resolved
Refresh.GameServer/Services/AipiService.cs Show resolved Hide resolved
Refresh.GameServer/Services/DiscordStaffService.cs Outdated Show resolved Hide resolved
Refresh.GameServer/Services/DiscordStaffService.cs Outdated Show resolved Hide resolved
@jvyden jvyden merged commit f4c8fdf into LittleBigRefresh:main Aug 24, 2024
2 checks passed
@jvyden jvyden deleted the aipi branch September 12, 2024 22:14
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.

2 participants