Skip to content

Commit

Permalink
Remove unused cluster key retrieval method from ProbeAuthorization mi…
Browse files Browse the repository at this point in the history
…ddleware
  • Loading branch information
simlarsen committed Nov 20, 2024
1 parent c94ac75 commit 6a361e5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Ingestor/Middleware/ProbeAuthorization.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
import { ProbeExpressRequest } from "../Types/Request";
import OneUptimeDate from "Common/Types/Date";
import Dictionary from "Common/Types/Dictionary";
import BadDataException from "Common/Types/Exception/BadDataException";
import { JSONObject } from "Common/Types/JSON";
import ObjectID from "Common/Types/ObjectID";
import { ClusterKey as ONEUPTIME_SECRET } from "Common/Server/EnvironmentConfig";
import ProbeService from "Common/Server/Services/ProbeService";
import { ExpressResponse, NextFunction } from "Common/Server/Utils/Express";
import Response from "Common/Server/Utils/Response";
import Probe from "Common/Models/DatabaseModels/Probe";

export default class ProbeAuthorization {
public static getClusterKeyHeaders(): Dictionary<string> {
return {
clusterkey: ONEUPTIME_SECRET.toString(),
};
}

public static async isAuthorizedServiceMiddleware(
req: ProbeExpressRequest,
Expand Down

0 comments on commit 6a361e5

Please sign in to comment.