Spring Security Architecture Principles by Daniel Garnier-Moiroux @ Spring I/O 2024

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 45

  • @jesprotech
    @jesprotech 7 місяців тому +19

    This session is great because it simplifies and condenses the core of Spring Security in one short session. Love it! Great session!

  • @johnsandwich6726
    @johnsandwich6726 7 місяців тому +11

    it is a very interesting presentation of the material, you do not fall asleep in the first minute of the story. That's how the presentation should be! thank you

  • @ShubhamYadav-lt6dt
    @ShubhamYadav-lt6dt 6 місяців тому +8

    This session is fantastic! It simplifies and condenses the essence of Spring Security into one brief session. Love it!

  • @TechTalksWeekly
    @TechTalksWeekly 7 місяців тому +6

    This is a great talk and it's been featured in the last issue of Tech Talks Weekly newsletter 🎉
    Congrats Daniel! 👏

  • @AntJac-p5s
    @AntJac-p5s 5 місяців тому +1

    excellent explanation. been struggling to really get it and this just made it so accessible. the info just passed all my brain's filters and is all sending back 200's! ;)

  • @huythong3821
    @huythong3821 7 місяців тому +2

    the most interesting presentation that I have seen.

  • @deolexx
    @deolexx 6 місяців тому +3

    Really nice security essentials lecture

  • @djoleezcool
    @djoleezcool 7 місяців тому +3

    13:16 a question. If we are using Client Credentials flow, should we put the same filter or ti will be something like BearerTokenAuthenticationFilter?

  • @knight5970
    @knight5970 5 місяців тому +4

    the best thing about this session is that i learned spring security and Spanish both in best way

  • @chrizzking
    @chrizzking 7 місяців тому +2

    Great for learning! Thx for sharing

  • @shortcuter4
    @shortcuter4 Місяць тому +1

    Can anyone explain?
    At 11:38
    When creating ProhibitoFilter, why didn't he include any annotations or beans above class or methods? Like @Configuration or @Bean

    • @DanielGarnier-Moiroux
      @DanielGarnier-Moiroux 19 днів тому

      Because it is used in exactly one place, in my SecurityFilterChain bean, it doesn’t need to be available to my whole app.
      Exposing security filters through @Bean or @Component may have unintended consequences, so I prefer explicitly new-ing them.

  • @aminesafi7261
    @aminesafi7261 7 місяців тому +6

    You oversimplified things, many thanks

  • @Ztall0880
    @Ztall0880 7 місяців тому +1

    great session. Thanks.

  • @donothack
    @donothack 2 місяці тому

    is @Configuration annotation still needed in the SecurityConfig class when @EnableWebSecurity already has @Configuration in it? At around 6:38 in the video.
    Edit: it's needed.

    • @shortcuter4
      @shortcuter4 Місяць тому

      What about 11:38 ?
      When creating ProhibitoFilter, why didn't he include any annotations or beans above class or methods?

    • @thatguyadarsh
      @thatguyadarsh 7 днів тому

      @@shortcuter4 it is not required because the filter is getting registered in the security filter chain by explicitly mentioning it in the configuration class. We don't need to depend on the component scanning to make the filter visible to spring. I hope this helps!

  • @alzamer88
    @alzamer88 6 місяців тому +1

    at 27:47 he said to pretend that there is no existing solution and built a custom one. so, is there any existing solution?

    • @DanielGarnier-Moiroux
      @DanielGarnier-Moiroux 4 місяці тому

      Yes, there are many solutions. For example, you can do mutual TLS (mTLS), where the client presents a certificate when making requests. Or if you're doing oauth, you can use the client_credentials grant. You could even imagine something like HTTP-basic auth.

  • @kwo2002
    @kwo2002 3 місяці тому +1

    very useful video!!

  • @ilkou
    @ilkou 7 місяців тому +3

    my best part is how fast the project is recompiled and can be tested on the browser, vite but for backend dev haha
    I wonder if it recompiles as fast when the project is massive 🤔

    • @DanielGarnier-Moiroux
      @DanielGarnier-Moiroux 7 місяців тому +5

      A combination of "Spring Boot Devtools" which does hot reload when compiled classes change, and "gradle assemble --continuous" which watches for file changes and incrementally rebuilds the project.
      ⚡⚡⚡

  • @devaneios_tech
    @devaneios_tech 2 місяці тому +1

    He makes it look like so simple, why the documentation is so complicated :?

    • @devaneios_tech
      @devaneios_tech 2 місяці тому +1

      And the logging-level is a fucking million dol tip

  • @momedalhouma14
    @momedalhouma14 7 місяців тому +2

    to the point, thank you.

  • @xdeama
    @xdeama 6 місяців тому +4

    I don’t get why people hate Spring Security. Whenever I learn a new language, I wish it had something close to Spring Security.

    • @t0khyo
      @t0khyo 3 місяці тому

      I’ve tried to understand this for the fourth time, and I find many tutorials unhelpful. Most just show someone writing code without explaining why or what else I can do. I end up copying the code like a kid copying homework, without grasping the concepts.

    • @t0khyo
      @t0khyo 3 місяці тому

      after this video I know understand the code I copied thousands of times hh

  • @theritesh973
    @theritesh973 6 місяців тому +2

    Nice Talk👏

  • @mateuszmatusiak8901
    @mateuszmatusiak8901 Місяць тому +1

    Super

  • @maneshipocrates
    @maneshipocrates 7 місяців тому +2

    Not perfectly easy but good talk

  • @scwan-ew8uh
    @scwan-ew8uh 6 місяців тому +2

    Great

  • @davidtheprogrammer
    @davidtheprogrammer 7 місяців тому

    It's simple if you get it and it's not if you don't. This security model is really not beginner friendly. These are a lot of concepts

  • @angloper
    @angloper 5 місяців тому +1

    what a nice

  • @scalar3513
    @scalar3513 2 місяці тому

    4:58 begin from here and don't waste your time

  • @marcux83
    @marcux83 7 місяців тому +1

    spring security configuration.. shudder

  • @tashi7160
    @tashi7160 7 місяців тому +12

    the whole thing is kinda overcomplicated and keep carrying the decades old baggages.

    • @angelgruevski
      @angelgruevski 7 місяців тому +8

      Not really. Once you learn it you realize how much Spring does things for you and makes Security easy.

    • @abccbaandy
      @abccbaandy 7 місяців тому

      Agree, it's easy to break things. Most people just pick a class randomly to do their job.

  • @samuelvishesh
    @samuelvishesh 6 місяців тому +3

    What about the Reactive web stack? We don’t have a “filter” there right?

    • @DanielGarnier-Moiroux
      @DanielGarnier-Moiroux 6 місяців тому +3

      There are filters, but the interface is called WebFilter ; they have a "Mono filter(ServerWebExchange exchange, WebFilterChain chain)" method. The exchange encapsulates both the request and the response objects.

    • @samuelvishesh
      @samuelvishesh 6 місяців тому +1

      @@DanielGarnier-Moiroux thank you for the head start. I’ll look into WebFilters