Giter Club home page Giter Club logo

harmor's People

Contributors

amirjaron avatar aviadmizrachi avatar dependabot[bot] avatar frontegg-david avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

harmor's Issues

TypeError: Cannot read properties of undefined (reading 'map') when using replace sanitization and all cookies

On my first try of harmor, I used a larger har file generated by Firefox but ran into an error when it started to process:

> npx harmor all.har 

  
██╗  ██╗  █████╗  ██████╗  ███╗   ███╗  ██████╗  ██████╗ 
██║  ██║ ██╔══██╗ ██╔══██╗ ████╗ ████║ ██╔═══██╗ ██╔══██╗
███████║ ███████║ ██████╔╝ ██╔████╔██║ ██║   ██║ ██████╔╝
██╔══██║ ██╔══██║ ██╔══██╗ ██║╚██╔╝██║ ██║   ██║ ██╔══██╗
██║  ██║ ██║  ██║ ██║  ██║ ██║ ╚═╝ ██║ ╚██████╔╝ ██║  ██║
╚═╝  ╚═╝ ╚═╝  ╚═╝ ╚═╝  ╚═╝ ╚═╝     ╚═╝  ╚═════╝  ╚═╝  ╚═╝


✔ How do you want to sanitize values? › by replace with '_harmored_'
✔ Do you want to sanitize all JWT by regex? - algorithm and signature will be sanitized … yes

✔ Which cookies do you want to sanitize? - press enter to submit
   › All cookies

✔ Which headers do you want to sanitize? - press enter to submit
   › Skip headers sanitization

✔ Which query parameter do you want to sanitize? - press enter to submit
   › Skip query sanitization

✔ Which url pathname do you want to full sanitize? - press enter to submit
   › Skip full sanitization by url

✔ Which body json keys do you want to sanitize? - press enter to submit
   › refreshToken
✔  › accessToken
✔  › refresh_token
✔  › access_token
✔  › client_secret
✔  › password
✔  › token
✔  › Done

✔ Do you want to add default security "Headers" ? › authorization, x-frontegg-, client-id, tenant-id, x-client-data
✔ Do you want to add default security "Query Params" ? › code, SAMLRequest, SAMLResponse, token, code_challenge, code_verifier
✔ Do you want to add default security "Content Restricted Keys" ? › code_challenge, client_id, code, code_challenge, code_verifier, id_token
✔ Do you want to save this template for future use? … no
TypeError: Cannot read properties of undefined (reading 'map')
    at armorFn (/Users/alex/.npm/_npx/1a5a48475a48d377/node_modules/harmor/src/Harmor/builder.js:166:26)
    at /Users/alex/.npm/_npx/1a5a48475a48d377/node_modules/harmor/src/Harmor/harmor.js:55:46
    at Array.map (<anonymous>)
    at Harmor.sanitize (/Users/alex/.npm/_npx/1a5a48475a48d377/node_modules/harmor/src/Harmor/harmor.js:43:47)
    at /Users/alex/.npm/_npx/1a5a48475a48d377/node_modules/harmor/src/index.js:139:31
    at Generator.next (<anonymous>)
    at fulfilled (/Users/alex/.npm/_npx/1a5a48475a48d377/node_modules/tslib/tslib.js:166:62)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.