Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Programming
  3. Authentication in microservices

Authentication in microservices

Planlagt Fastgjort Låst Flyttet Programming
programming
3 Indlæg 2 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • snue@feddit.dkS This user is from outside of this forum
    snue@feddit.dkS This user is from outside of this forum
    snue@feddit.dk
    wrote sidst redigeret af
    #1

    I hope this post fits in this community 🙂

    I’m trying to wrap my head around how authentication works with micro services.

    Say we have a system, with a frontend, that communicates with an API gateway, which in turn communicates with all the micro services.

    As I understand it, we authenticate the client in the API gateway, and if we trust the client, the request are forwarded to the micro services.

    However, what is stopping a malicious actor from bypassing the API gateway and communicating directly to the micro services ?

    Do we solve this problem using a firewall, so only trusted traffic reaches the micro services ?

    Or do we still have API keys between the API gateway and the micro services ?

    Or is there a third way ? 🙂

    All the articles I’ve read seem to assume, that we can trust all traffic entering the micro services

    J 1 Reply Last reply
    0
    • snue@feddit.dkS snue@feddit.dk

      I hope this post fits in this community 🙂

      I’m trying to wrap my head around how authentication works with micro services.

      Say we have a system, with a frontend, that communicates with an API gateway, which in turn communicates with all the micro services.

      As I understand it, we authenticate the client in the API gateway, and if we trust the client, the request are forwarded to the micro services.

      However, what is stopping a malicious actor from bypassing the API gateway and communicating directly to the micro services ?

      Do we solve this problem using a firewall, so only trusted traffic reaches the micro services ?

      Or do we still have API keys between the API gateway and the micro services ?

      Or is there a third way ? 🙂

      All the articles I’ve read seem to assume, that we can trust all traffic entering the micro services

      J This user is from outside of this forum
      J This user is from outside of this forum
      jakenveina@midwest.social
      wrote sidst redigeret af
      #2

      I mean, both sound valid. I’d say the first option is likely the most common: some kinda firewall or private network that keeps your microservices isolated from the public internet. In a practical sense, odds are all of this stuff is physically co-located anyway, so it could even be that the networks are physically isolated as well.

      snue@feddit.dkS 1 Reply Last reply
      0
      • J jakenveina@midwest.social

        I mean, both sound valid. I’d say the first option is likely the most common: some kinda firewall or private network that keeps your microservices isolated from the public internet. In a practical sense, odds are all of this stuff is physically co-located anyway, so it could even be that the networks are physically isolated as well.

        snue@feddit.dkS This user is from outside of this forum
        snue@feddit.dkS This user is from outside of this forum
        snue@feddit.dk
        wrote sidst redigeret af
        #3

        Thanks for the answer 🙂

        1 Reply Last reply
        0
        Svar
        • Svar som emne
        Login for at svare
        • Ældste til nyeste
        • Nyeste til ældste
        • Most Votes


        • Log ind

        • Har du ikke en konto? Tilmeld

        • Login or register to search.
        Powered by NodeBB Contributors
        Graciously hosted by data.coop
        • First post
          Last post
        0
        • Hjem
        • Seneste
        • Etiketter
        • Populære
        • Verden
        • Bruger
        • Grupper