Revert "[Auth] Create unauthorized requests rate limiting"

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-03-22 21:14:35 +01:00
parent f9dac1ee66
commit e848644f5a
9 changed files with 12 additions and 585 deletions
-19
View File
@@ -14,8 +14,6 @@
* limitations under the License.
*/
import { HumanDuration } from '@backstage/types';
export interface Config {
backend?: {
auth?: {
@@ -35,23 +33,6 @@ export interface Config {
*/
dangerouslyDisableDefaultAuthPolicy?: boolean;
};
/** @visibility frontend */
rateLimit?:
| false
| {
/**
* Limit each IP to max requests per window, defaults to 60 requests.
*/
max?: number;
/**
* The duration for which the rate limit is enforced, defaults to 1 minute.
*/
window?: HumanDuration;
/**
* Disable the rate limit verification.
*/
disable?: true;
};
};
/** Discovery options. */