Never Expose Passwords in Selenium Again | Hide Sensitive Data in Test Automation

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024

Комментарии • 26

  • @sabataranum5128
    @sabataranum5128 10 дней назад

    One of the most awaited video , thanks Naveen your doing great job for testers community

  • @sugyanpatnaik2098
    @sugyanpatnaik2098 12 дней назад +2

    Thanks Naveen Sir for explaining the Password Masking.

  • @mohamedsulaimaansheriff9787
    @mohamedsulaimaansheriff9787 12 дней назад +6

    Usually secrets should be from pipeline run it should not be hard-coded in code

    • @technicalthings3741
      @technicalthings3741 12 дней назад

      @@mohamedsulaimaansheriff9787 how.can you explain in detail

    • @naveenautomationlabs
      @naveenautomationlabs  11 дней назад +7

      @@technicalthings3741
      In CI/CD Pipelines:
      Jenkins: Use Jenkins Credentials Manager
      GitHub Actions: Use GitHub Secrets
      GitLab CI: Use GitLab CI/CD Variables
      Azure DevOps: Use Variable Groups/Library
      For Local Development:
      Environment Variables
      Local .env files (added to .gitignore)
      Local secure credential stores

  • @FelixStepanie
    @FelixStepanie 6 дней назад

    Appreciate the detailed breakdown! I have a quick question: I have a SafePal wallet with USDT, and I have the seed phrase. (alarm fetch churn bridge exercise tape speak race clerk couch crater letter). Could you explain how to move them to Binance?

  • @sunilbhatta1754
    @sunilbhatta1754 7 дней назад

    Hi Naveen...I am looking forward to join an API testing course. Are you starting any api testing batch? If yes , please let me know

  • @namaratasharma5417
    @namaratasharma5417 12 дней назад +2

    Let's say we store key as well encrypted password in properties file, but that can again be easily decrypted by anyone ..right?

    • @technicalthings3741
      @technicalthings3741 12 дней назад

      You are correct. I was also thinking the same 😅

    • @naveenautomationlabs
      @naveenautomationlabs  11 дней назад +1

      you can store secret key as environment variables or key manager on the test execution machine or on you local machine. No need to expose it in your prop file.
      Best approach is always to maintain keys and password/tokens as environment variables.

  • @geethami1186
    @geethami1186 11 дней назад +1

    True sir, but it’s very easy to decrypt and see the password as method is available.How can we hide decryption logic?

    • @naveenautomationlabs
      @naveenautomationlabs  11 дней назад +1

      I'll say yes its possible. Hence performing the encryption or decryption in test automation for app passwords, is not a perfect approach.
      But these are lower environment passwords not for the PROD.
      Always maintain the token and secrets in the secret key on your test automation machine or part of CI CD pipeline.
      In CI/CD Pipelines:
      Jenkins: Use Jenkins Credentials Manager
      GitHub Actions: Use GitHub Secrets
      GitLab CI: Use GitLab CI/CD Variables
      Azure DevOps: Use Variable Groups/Library
      For Local Development:
      Environment Variables
      Local .env files (added to .gitignore)
      Local secure credential stores

    • @geethami1186
      @geethami1186 11 дней назад

      @ thanks so much sir for your quick response. You are amazing⭐️

  • @Sandeep_Sky
    @Sandeep_Sky 11 дней назад

    Can you please create a video on vault integration.. it ll be very helpful

  • @hireshgupta5321
    @hireshgupta5321 9 дней назад

    So the first time when we encrypt the password , we are going to pass the password to encrypt , so where are we going to fetch that password from, we will have to store it somewhere , right ?

  • @bimalpatra4453
    @bimalpatra4453 10 дней назад

    after decrypting if some one just print it then he can know the password? decryption is needed to use in send key method..

  • @hariprasath1696
    @hariprasath1696 8 дней назад

    It's mandatory to use the Encryption of password in Automation??

  • @ranita4848
    @ranita4848 11 дней назад

    Please make a video on how to byepass default loading page in selenium. According to organization policy , org page will load by deafult. Used edge options user dir path set. And added profile. However profile page is not signed in , Any ideas??

  • @Pixora-z5x
    @Pixora-z5x 11 дней назад

    And what if someone debug the decryped pwd?

  • @krishnakumarkumar5710
    @krishnakumarkumar5710 11 дней назад

    We can keep it in Jenkins secrets

  • @technicalthings3741
    @technicalthings3741 12 дней назад +2

    Anyone can decrypted password from properties file

    • @naveenautomationlabs
      @naveenautomationlabs  11 дней назад +1

      you can store secret key as environment variables or key manager on the test execution machine or on you local machine. No need to expose it in your code.
      Without secret key, one can never decrypt the password.

    • @kunalsharmamathsteacher9791
      @kunalsharmamathsteacher9791 11 дней назад

      @@naveenautomationlabs
      Great question! If you're concerned about exposing passwords in your code, the best approach is to store passwords securely in environment variables or a password manager (like AWS Secrets Manager or HashiCorp Vault). These methods are secure, simple, and efficient.
      Why not use encryption?
      Encryption adds unnecessary complexity and performance overhead.
      Password managers and environment variables already provide automatic encryption and access control, so you don’t need to handle encryption yourself.
      The key to security is access control: only authorized processes should have access to the password, which these tools manage effectively.
      In short, storing passwords in secure locations like environment variables or password managers is both the easiest and safest way to protect your credentials, without the added complexity of encryption.

  • @vinuthreddy4238
    @vinuthreddy4238 11 дней назад

    Hi naveen sir
    I have created hybrid framework with page object model pattern with pytest and bdd framework with page object model.I request to look at both framework tell me that i am in a proper direction.I will share github links for both the projects.
    tell me that is both projects are per current industry ?
    Can you please share your mail id?