Skip to content

Commit b803e5e

Browse files
authored
chore: point anti-abuse oracle endpoint at anti-abuse-oracle.audius.engineering (#14382)
1 parent 32c0ca9 commit b803e5e

7 files changed

Lines changed: 11 additions & 6 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@audius/sdk': patch
3+
---
4+
5+
Point the production anti-abuse oracle endpoint at `https://anti-abuse-oracle.audius.engineering`, replacing the old `https://discoveryprovider.audius.co` host in the SDK services config and supporting clients/services.

packages/discovery-provider/plugins/pedalboard/apps/anti-abuse-oracle/src/actionLog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export async function getUserNormalizedScore(userId: number, wallet: string) {
185185
}
186186

187187
export async function getAAOAttestation(handle: string) {
188-
const url = `https://antiabuseoracle.audius.co/abuse/${handle}`
188+
const url = `https://anti-abuse-oracle.audius.engineering/abuse/${handle}`
189189
try {
190190
const response = await fetch(url)
191191
if (!response.ok) {

packages/identity-service/src/utils/antiAbuse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const { logger } = require('../logging')
44
const models = require('../models')
55

66
const aaoEndpoint =
7-
config.get('aaoEndpoint') || 'https://antiabuseoracle.audius.co'
7+
config.get('aaoEndpoint') || 'https://anti-abuse-oracle.audius.engineering'
88

99
const allowRules = new Set([-17, -18])
1010
const blockRelayAbuseErrorCodes = new Set([0, 8, 10, 13, 15, 18])

packages/mobile/src/services/env/env.prod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { Env } from '@audius/common/services'
22
import Config from 'react-native-config'
33

44
export const env: Env = {
5-
AAO_ENDPOINT: 'https://discoveryprovider.audius.co',
5+
AAO_ENDPOINT: 'https://anti-abuse-oracle.audius.engineering',
66
AMPLITUDE_API_KEY: '86760558b8bb1b3aae61656efd4ddacb',
77
AMPLITUDE_PROXY: 'https://gain2.audius.co/2/httpapi',
88
API_KEY: '8acf5eb7436ea403ee536a7334faa5e9ada4b50f',

packages/sdk/src/sdk/config/production.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const productionConfig: SdkServicesConfig = {
2424
],
2525
"antiAbuseOracleNodes": {
2626
"endpoints": [
27-
"https://discoveryprovider.audius.co",
27+
"https://anti-abuse-oracle.audius.engineering",
2828
"https://audius-oracle.creatorseed.com",
2929
"https://oracle.audius.endl.net"
3030
],

packages/sdk/src/sdk/scripts/generateServicesConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const productionConfig: SdkServicesConfig = {
2323
storageNodes: [],
2424
antiAbuseOracleNodes: {
2525
endpoints: [
26-
'https://discoveryprovider.audius.co',
26+
'https://anti-abuse-oracle.audius.engineering',
2727
'https://audius-oracle.creatorseed.com',
2828
'https://oracle.audius.endl.net'
2929
],

packages/web/src/services/env/env.prod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Env } from '@audius/common/services'
22

33
export const env: Env = {
4-
AAO_ENDPOINT: 'https://discoveryprovider.audius.co',
4+
AAO_ENDPOINT: 'https://anti-abuse-oracle.audius.engineering',
55
AMPLITUDE_API_KEY: '86760558b8bb1b3aae61656efd4ddacb',
66
AMPLITUDE_PROXY: 'https://gain2.audius.co/2/httpapi',
77
API_KEY: '8acf5eb7436ea403ee536a7334faa5e9ada4b50f',

0 commit comments

Comments
 (0)