How to create Custom Policy in Flex - Ghaziabad Meetup

AshishJain354 35 views 20 slides Jul 01, 2024
Slide 1
Slide 1 of 20
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20

About This Presentation

Ghaziabad MuleSoft Meetup Flex PDK: Lets Learn How to create Custom Policy in Flex


Slide Content

Let us Learn: How to create Custom Policy in Flex Gateway Mon, July1, 8:00 PM (IST) Ghaziabad Meet-up Group presents

Safe Harbour Statement Both the speaker and the host are organizing this meet-up in individual capacity only. We are not representing our companies here. This presentation is strictly for learning purposes only. Organizer/Presenter do not hold any responsibility that same solution will work for your business requirements. This presentation is not meant for any promotional activities. 2

Questions can be submitted/asked at any time in the Chat/Questions & Answers Tab. Make it more Interactive!!! Give us feedback! Rate this meetup session by filling feedback form at the end of the day. We Love Feedbacks!!! Its Bread & Butter for Meetup . Housekeeping 3

4 Organizers Ashish Jain Accenture MuleSoft Architect | Integration & API

Introduction to Policy Development Kit – Anypoint Flex Gateway

Meet Your Speaker 14+ years of Integration Experience 5+ years of MuleSoft Experience Certified MuleSoft Developer Certified MuleSoft Architect Platform Architecture Integration Architecture Delivery Champion Raj Kamal Business Architecture Manager Accenture

Agenda

Quick Flex Overview

UAPIM – The next evolution of API Management 9

MuleSoft Gateway vs. Flex Gateway MuleSoft Gateway Flex Gateway Underlying Technology Java Spring Application on Mule Runtime Envoy + Fluentbit (logging) Key Capabilities Same technology as Mule integration applications 200+ OOTB connectors to business applications, queues DataWeave Data Transformation language Policy application done with Mule API-Management Custom Policy development with Mule DSL Small footprint Supports up to 400 APIs Policy application can be done with Mule API-Management (Connected Mode) or by using declarative configuration files (Local mode) Custom Policy development with Envoy WASM filters Deployment MuleSoft hosted Infrastructure Customer hosted Infrastructure (VM’s, K8’s, Bare Metal) Customer Hosted Infrastructure (Linux Process, Docker Container/Sidecar, K8’s ingress controller) [Roadmap] MuleSoft hosted infrastructure Licensing CPU Core Based PLUS # of APIs using API Management Capability # of API requests PLUS # of APIs leveraging API Management Capability in “Connected Mode” Solution Specific Documentation https://docs.mulesoft.com/gateway/mule-gateway-overview https://docs.mulesoft.com/gateway/flex-gateway-overview Cross Cutting Documentation API Management Capability: https://docs.mulesoft.com/api-manager/2.x/latest-overview-concept Policies: https://docs.mulesoft.com/gateway/policies-overview

Flex Gateway – Management/Installation Options Copyright © 2023 Accenture. All rights reserved. APL 2023 - Cloud Crusaders 11 Parameters Connected Mode Local Mode Control Plane Anypoint Platform Local Management Operations. Logging Anypoint Platform Advanced Logging (Titanium License). Third-Party Logging like Splunk, ELK etc. API Monitoring Anypoint Monitoring or API Manager Metrics. Third-Party Monitoring tools like Grafana, Prometheus etc. Flex Gateway Management Flex Gateway is manage using Anypoint Platform. Flex Gateway is managed using Local YAML descriptors files. API Policies Policies can be applied to APIs published to Flex Gateway using API Manager Policies needs to be apply using Local YAML descriptors files. Installation Options

Introduction to Policy Development Kit

PDK – Policy Development Kit 13

Walkthrough - Installation Steps

15 https://docs.mulesoft.com/pdk/latest/policies-pdk-prerequisites

Setup a policy from Scratch

Sample-Custom Policies 17 Flex Gateway Basic Auth Policy Up Stream Application Authenticate Flex Gateway Basic Auth Policy Up Stream Application Authenticate Token Generation Policy Token Generator Service Get token Token Injected Policy 1 Policy 2

Demo

References

References PDK reference Link https://docs.mulesoft.com/pdk/latest/policies-pdk-overview