Skip to content

neobulla/aktofix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Akto API Security - Access Restricted Patch

This is a patch for Akto API Security that resolves the "Access Restricted" and "Dashboard Expired" errors in the community edition.

The patch works by system-wide redirection of the CloudFront JS asset to a locally modified version.

Setup Instructions (English)

Step 1: File Preparation

Ensure the following files are in /Users/mac/Desktop/fix:

  1. main.js - Your modified JS file.
  2. patch_server.py - The Python HTTPS server.
  3. generate_cert.sh - SSL certificate generation script.

Step 2: Generate and Install SSL Certificate

Browsers require HTTPS for JS assets. We need to create a trusted certificate for the CloudFront domain.

  1. Open Terminal and navigate to the directory:
    cd aktofix
  2. Make the script executable and run it:
    chmod +x generate_cert.sh ./generate_cert.sh
  3. Add the certificate to the system keychain (password required):
    sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain server.crt

Step 3: Configure /etc/hosts

Redirect d1hvi6xs55woen.cloudfront.net to your local machine.

  1. Open /etc/hosts:
    sudo nano /etc/hosts
  2. Add this line at the end:
    127.0.0.1 d1hvi6xs55woen.cloudfront.net 
  3. Save (Ctrl+O, Enter) and Exit (Ctrl+X).

Step 4: Run the Server

Start the Python server to serve the modified file:

sudo python3 patch_server.py

(sudo is required for port 443).

Note: The server automatically detects the latest version from GitHub and intercepts any version path.


Akto API Security - Патч "Access Restricted"

Этот патч для Akto API Security убирает ошибки "Access Restricted" и "Dashboard Expired" в комьюнити-версии.

Патч работает через системное перенаправление запроса к JS-файлу на CloudFront на локальную модифицированную версию.

Инструкция по настройке (Русский)

Шаг 1: Подготовка файлов

Убедитесь, что в папке /Users/mac/Desktop/fix находятся:

  1. main.js — модифицированный JS-файл.
  2. patch_server.py — Python HTTPS сервер.
  3. generate_cert.sh — скрипт генерации SSL-сертификатов.

Шаг 2: Генерация и установка SSL-сертификата

  1. Перейдите в папку в терминале:
    cd aktofix
  2. Запустите генерацию:
    chmod +x generate_cert.sh ./generate_cert.sh
  3. Добавьте сертификат в систему:
    sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain server.crt

Шаг 3: Настройка /etc/hosts

  1. Откройте файл:
    sudo nano /etc/hosts
  2. Добавьте строку:
    127.0.0.1 d1hvi6xs55woen.cloudfront.net 

Шаг 4: Запуск сервера

sudo python3 patch_server.py

(Сервер автоматически подхватывает актуальные версии Akto через GitHub API).

About

Patch for Akto API Security (community) that removes "Access Restricted" and "Dashboard Expired" errors by redirecting the Amazon CloudFront JS asset to a locally modified main.js. Includes SSL cert generation, /etc/hosts redirect, and a Python HTTPS server.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors