Upgrade to Pro — share decks privately, control downloads, hide ads and more …

API securing principles as a software developer...

API securing principles as a software developer at Cloud Era

In this session, we will see some real practices of developing APIs using microservice architecture, which go beyond HTTP verbs and Status Code. We will show some principles inherent in the API First methodology until the deployment of the API in production, including security details, that is, how to protect your API using Service Mesh infrastructure and/or API gateway, focusing on the day-to-day life of a software developer.

Luram Archanjo

April 16, 2021
Tweet

More Decks by Luram Archanjo

Other Decks in Technology

Transcript

  1. API securing as a so ware developer at Cloud Era

    Cláudio Oliveira & Luram Archanjo
  2. Who am I? Luram Archanjo Software Engineer MBA in Java

    projects Java and Microservice enthusiastic 2
  3. Who am I? Cláudio E. de Oliveira APIs Tech Lead

    at LuizaLabs Golang, Java, microservices & k8s 3
  4. Agenda API First Principles of security as a developer Responsibilities

    - Traffic North & South - Traffic East & West Demo 4
  5. 6 API First An API-first approach means that for any

    given development project, your APIs are treated as “first-class citizens.” That everything about a project revolves around the idea that the end product will be consumed by mobile devices, and that APIs will be consumed by client applications. Source: https://swagger.io/resources/articles/adopting-an-api-first-approach/
  6. 8 API First #1 Development teams can work in parallel

    #2 Reduces the cost of developing apps #3 Increases the speed to market #4 Ensures good developer experiences Source: https://swagger.io/resources/articles/adopting-an-api-first-approach/
  7. 10 Authentication Authentication is the act of validating that users

    are whom they claim to be. This is the first step in any security process. Example: Employees in a company are required to authenticate through the network before accessing their company email
  8. 11 Authorization Authorization in a system security is the process

    of giving the user permission to access a specific resource or function. In secure environments, authorization must always follow authentication. Example: After an employee successfully authenticates, the system determines what information the employees are allowed to access
  9. 12 Ownership of data Ownership of data is a part

    of data security and is related to the proper handling of data. It is the process of check the ownership of the data! Example: After an employee successfully authenticates, the employee can only manipulate data that is yours.
  10. 13 Authentication Authorization Confirms users who are they say there

    are Gives users permission to access a resource Ownership Confirms users data and permissions to handle it
  11. 17 Perimeter Security • Defense-in-depth multiple layers of security •

    Should be easy to integrate with in place systems like VPN, Firewall etc... • Multiple Policy Enforcement Points increase security
  12. 18 Infrastructure Security • Language agnostic • Infrastructure is secure

    (platforms) • Increase governance level • “Hot deployment”
  13. 19

  14. 22 North-South Traffic • Clients is unknown in general •

    Best place to put Bot detection and treat abusive traffic • API Products expose business through APIs
  15. 24 Zero Trusted Network • The cloud environment is heterogeneous

    • Different types of workloads • Integrate with Defense-in-depth concept • All elements in network is untrusted • All systems should get kind of grant before call others systems
  16. 28

  17. 32

  18. 33

  19. 35

  20. 40

  21. 42

  22. 43 “Micro” Gateway can help us! Hiding implementation details and

    acting as Bounded Context https://www.solo.io/blog/challenges-of-adopting-service-mesh-in-enterprise-organizations/
  23. 44

  24. 46

  25. 48 Securing North-South #1 Micro gateway vs Enterprise Gateway #2

    OpenID Connect for external clients (end-users) #3 Handle abusive traffic rate limiting #4 API Products
  26. 49

  27. 51

  28. 52

  29. Thanks! Any questions? You can find us at 53 claudioed

    claudioed luramarchanjo luram_archanjo
  30. 55 Authentication Authorization Confirms users who are they say there

    are Gives users permission to access a resource ??? ???
  31. 56 What is PeP?? The Policy Enforcement Point (PEP) is

    the piece of network or security equipment that controls user access and ensures the authorization decision made by the Policy Decision Point (PDP).
  32. 59 How mTLS works in Istio / Envoy 1. Service

    account token is assigned to Istio Proxy 2. Pilot agent send Token and CSR to Istiod 3. Istiod validate k8s token 4. The istiod signs the certificate and provides it to pilot agent 5. The pilot agent calls Envoy SDS to configure it https://www.manning.com/books/istio-in-action