Store & manage secrets like API keys in Python - Tech Tip Tuesdays

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

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

  • @chrisseary3504
    @chrisseary3504 Год назад +17

    You need to protect those secrets, and that isn't covered here. Encryption should be applied to the file contents, and restrictive ACLs should be applied to the file itself.

    • @robertcenusa8636
      @robertcenusa8636 7 месяцев назад +1

      Could you recommend a tutorial that covers that part?

  • @SkielCast
    @SkielCast Год назад +3

    Some observations:
    - The value of __name__ should not be use to determine environments
    - To choose between environments, an additional environment variable called "environment" could be used, with a default value of "dev" to avoid errors
    - Having multiple .envs in local could make sense but only as an edge case, production credentials should not be in ANY local machine
    - If Python-dotenv is going to be a dependency, considered using tools like PDM, Poetry or Pipenv to make sure dependencies are locked

  • @ElenaBiriuchevskaia
    @ElenaBiriuchevskaia 9 месяцев назад

    Thank you! Very well explained!

  • @mycinemax2653
    @mycinemax2653 Год назад +2

    if i put .env or separate file to save secrets in my working server, how I protect it from outside hacker?

    • @zen.ali238
      @zen.ali238 9 месяцев назад

      did you find the answer?

  • @infossil
    @infossil 9 месяцев назад +1

    thank you, excellent

  • @andrewschneider5722
    @andrewschneider5722 Год назад +1

    So if the secrets aren't in git, how can other collaborators use the secrets if they pick up a story that uses this code or how do testers test this code if they can't access the secrets?

    • @linux_fr
      @linux_fr 11 месяцев назад

      Secret Manager

  • @mrs.neerajsharma7997
    @mrs.neerajsharma7997 Год назад

    Thank you so much , u r awesome

  • @shubhamtarkar38
    @shubhamtarkar38 Год назад

    Hi can you make a tutorial on implementing Ci-Cd with bitbucket and ggshield

  • @lxvi4322
    @lxvi4322 9 месяцев назад

    how can I use this inside Aws Services like ERM-Studio? tnx

    • @GitGuardian
      @GitGuardian  9 месяцев назад

      You might want to try using AWS secrets manager for AWS native environments ruclips.net/video/as4gWjQYrHc/видео.htmlsi=v8-fL7fkpw3lJQGE

  • @hughesadam87
    @hughesadam87 Год назад

    Where does keyring fit into all this?

  • @Knowngamer-m7u
    @Knowngamer-m7u 6 месяцев назад

    Bro I am seeing this video on a Tuesday coincidentally