Spring Boot Environment Variables Explained (Secure Your API Keys!)

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ต.ค. 2024

ความคิดเห็น • 18

  • @vanamutt43
    @vanamutt43 24 นาทีที่ผ่านมา

    Hey Dan, been watching you for years, right from when i started learning how to code to the first grueling months as a junior to now when i have 3 years of professional coding experience. Love your videos and your style, i will continue watching as long as you make them. Regards from Estonia.

  • @amardeep.sahota
    @amardeep.sahota วันที่ผ่านมา +2

    Thanks for covering this. You should have spent some more time on springboot relaxed binding where it can automatically map your env variables with properties based on certain rules like replace underscore with dot, delete all hyphens and lowercase to uppercase.

  • @Nico-ly7lh
    @Nico-ly7lh วันที่ผ่านมา +2

    Short and useful. That’s what I need every end of the day to learn a little piece, to become better 🎉

  • @victoranski1
    @victoranski1 19 ชั่วโมงที่ผ่านมา

    came here to give my like!

  • @wagnerdba
    @wagnerdba วันที่ผ่านมา

    Tks... Congrats from Brazil.

  • @vrkv380
    @vrkv380 วันที่ผ่านมา

    Hi Dan. can you please add a playlist on microservices covering several design patterns

  • @gasparcalix2095
    @gasparcalix2095 วันที่ผ่านมา

    Grate! as always!

  • @arnoldtuber
    @arnoldtuber วันที่ผ่านมา +4

    Make Java Great Again 2024

  • @ainigma100
    @ainigma100 วันที่ผ่านมา

    Thank you Dan for the video!
    How can a Spring Boot 3 application handle secrets like database passwords and API keys that need frequent rotation due to expiration? Using a key vault helps with security, but it doesn’t solve the issue of updating secrets in a running application without downtime. Is there a reliable way to dynamically refresh secrets at runtime without relying on cron jobs or fetching secrets only during deployment? Can you please create a video about properly handling secrets inside your spring boot 3 application.

  • @MarcosPereira-hx2yy
    @MarcosPereira-hx2yy วันที่ผ่านมา

    goods video!!!!! useful great

  • @gm0101
    @gm0101 วันที่ผ่านมา

    About security should I be concerned about that the environment variable could be discovered if you check the list of running process or even declared as environment variable?
    Another point: And what about application profiles configuration, settings as environment variable for different environments (dev/production) should be considered better than profiles?

    • @zerocodercool
      @zerocodercool วันที่ผ่านมา

      I believe Spring Cloud Config would be a better option for such cases.

  • @vrvr82
    @vrvr82 วันที่ผ่านมา +1

    Having an environment variable named "APP_API_KEY" is enough, you do NOT have to write something like "app.api.key=${MY_API_KEY}".
    See "Externalized Configuration" > "Binding From Environment Variables" in Spring Boot documentation.

    • @DanVega
      @DanVega  วันที่ผ่านมา +3

      @@vrvr82 I mentioned that but I thought showing it off this way might make it a little more explicit and click 🤷‍♂️

  • @arynews104
    @arynews104 12 ชั่วโมงที่ผ่านมา

    can i develop Ai teacher or AI recuriter if i watch and learn your videos

  • @pranjalsharma5611
    @pranjalsharma5611 วันที่ผ่านมา +1

    All is well until it goes to production that's what I need to focus on

  • @sadiulhakim7814
    @sadiulhakim7814 วันที่ผ่านมา

    I do not even go to spring initializer. I generate the project directly from inside Intelij.

  • @worldwide6626
    @worldwide6626 วันที่ผ่านมา

    How can I do this in VS Code?