tag:blogger.com,1999:blog-91575717757459567482024-03-13T16:05:31.158+05:30ASK OnlineAruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.comBlogger54125tag:blogger.com,1999:blog-9157571775745956748.post-58528657196087331972019-02-27T10:35:00.000+05:302019-02-27T10:35:22.310+05:30AWS Secret Manager - Protect Your Secrets in Applications
Many applications use secrets for various use cases. Using an application ID and Secret key to generate a token or maybe the secret key itself to access APIs, a username and password to create a database connection string to retrieve data from RDS. Maybe there are various security measurements and standards you’ve been enforced by your organization. One thing for sure is not storing passwords inAruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-10421015489689884032019-01-21T10:49:00.001+05:302019-01-21T11:02:45.967+05:30"React, Redux and Saga" Connecting the Dots.
"Viewer discretion advised" This article is written by a person who is very new to front-end programming with react and worked on backend development with number of years ;), and I’m quite fascinated about the UI work recently, since UI libraries are adopting some of the distributing computer theories/features used in middleware applications.If you have worked with the angular, passing state Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-55982509649475335422018-11-14T17:10:00.000+05:302018-11-15T11:25:53.050+05:30Hashi Corp KV Secrets Manager integration with SpringBoot Application
Securing your secrets inside application is not an easy task. Typically applications deployed to multiple environments, and developers have to maintain separate credentials for each environment in configuration files, if there is no encryption mechanism (most of the time :( ) those username and passwords or secrets for token generation (API keys), database connections are stored as plain text. Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com2tag:blogger.com,1999:blog-9157571775745956748.post-15992091352021884662018-10-23T15:17:00.000+05:302018-10-23T15:21:11.055+05:30My path to AWS Solutions Architect - Associate
As a part of Pearson Internal Employees’ Learning and Certification Program, I was given the opportunity to take the exam, in 2018 Q2. But due to the release schedules and other work, I was unable to complete within Q2. But determined to complete in Q3 2018.
So in this post, I’m going to explain my experience for the exam and the steps I’ve followed.
Things I’ve followed to get certified.
Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-61571077626971427432018-08-10T15:09:00.001+05:302018-08-10T15:09:56.439+05:30Drools - How we overcame the drastic conditions evaluation
One year ago, we started a project called keystone, a rules evaluation engine based on spring-boot. The high level architecture as follows [1]. It exposes several REST endpoints to evaluate some business rules. When a request hits the engine, several parallel calls hit the described endpoints based on the input parameters. ( We use RxJava to handle the async calls and zip out the results.) ThenAruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com4tag:blogger.com,1999:blog-9157571775745956748.post-69027220420534343882017-09-25T16:32:00.001+05:302017-09-25T16:33:33.620+05:30oauth2 implicit grant flow - example using facebook oauth2 APIIn this post we are going to explore on the oauth2 implicit grant flow using a facebook oauth2 API example. In the oauth2 client specification, the clients are categorized as trusted and untrusted.
Trusted oauth2 clients
Trusted oauth2 clients are usually application following the mvc architecture, where the application has the facility to store the keys securely. In a later post we will Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-56951446011933274052017-02-07T14:23:00.000+05:302017-02-07T14:29:29.166+05:30Functions as First Class Citizen Variables
Hello all, In this post we are going to talk about functions as first class citizens and it's usages.
taken from - https://www.linkedin.com/topic/functional-programming
The easiest way to understand is to analyze a demonstration. Package
java.util.function in java 8 contains all kinds of single method interfaces. In this samples we are going to use the java.util.function.Function and Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-14480236943523224502016-11-05T21:56:00.000+05:302016-11-05T22:12:36.349+05:30Spring Boot Application connect to LDAP UserstoreIn this blog post we are going to connect a sample spring boot application with LDAP based userstore to do the authentication.
First create a LDAP server. I've created a sample server using Apache Directory Studio.
Then create a sample spring-boot application with the following dependencies.
<!-- HTML generated using hilite.me -->
<parent>
<groupId>Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com7tag:blogger.com,1999:blog-9157571775745956748.post-77800708982519091022016-10-20T15:54:00.001+05:302016-10-20T16:14:04.738+05:30Spring Boot Application Live Reload (Hot Swap) with Intellij IDEA
While developing Spring Boot Applications using Intellij IDEA, it was so annoying to restart the spring boot app after each and every change. Spring boot provides live reload (how swap) of application out of the box using the following dependency.
<dependency> <groupid>org.springframework.boot</groupid> <artifactid>Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-5596055133324045672016-03-17T16:53:00.003+05:302016-03-17T16:53:43.133+05:30How to Enable Asynchronous Logging with C5In this post we are going to explore on how to enable asynchronous logging on C5 based servers. More on asynchronous logging can be found here.
1. Copy the disrupter dependency to the /osgi/plugins folder. You can get the disrupter OSGi bundle from here.
2. Edit launch.properties the /bin/bootstrap/org.wso2.carbon.launcher-5.1.0.jar and add the disrupter jar to the initial bundles list.
Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-77424781370224380642016-02-10T22:05:00.000+05:302016-02-10T23:32:35.757+05:30MSF4J :WSO2 Microservices Framework for Java to be Unleashed
WSO2 MSF4J Quick Start Guide
WSO2 recently started implementing a Micro Services Server and finally it will be available as a Micro Services Framework 4 Java. In this post we are going to learn and understand how fast you can write a Micro service in a couple of steps.
So lets get start then.
Prerequisites.
1. JDK 1.8
2. Maven 3.2.0 or above
Clone the git repository and you have to build Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-16410454486208138282016-01-13T15:27:00.000+05:302016-01-13T15:27:08.816+05:30WSO2 ESB : Consume JMS Messages From HornetQ embedded JBOSS EAP
In this post we are going to explore some JMS transport capabilities in WSO2 ESB. We are going to learn on how to create a message queues in JBOSS EAP, Publish sample messages to that queue. And finally using WSO2 ESB to listen to that queue and fetch the messages from the queue. Following are the per-requisites for this tutorial.
WSO2 ESB 4.9.0 Download From Here
JBOSS EAP Download From Here&Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-26200944178838382972015-12-21T20:12:00.000+05:302015-12-21T20:12:20.557+05:30WSO2 Carbon Kernel 5.0.0 - Released !!!
We are pleased to announce the release of WSO2 Carbon Kernel 5.0.0. It is now available to download from here. The source and tag location for this release are available here.WSO2 Carbon Kernel 5.0.0 is the core of the next-generation WSO2 Carbon platform. We have completely rearchitected Carbon Kernel from the ground up with the latest technologies and patterns. Additionally, the Carbon Kernel Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-57050434274227594932015-10-17T11:48:00.000+05:302015-10-17T11:50:18.617+05:30WSO2 Carbon Kernel 5.0.0 - Milestone 05 Released!
We are pleased to inform you the 5th milestone release of Carbon Kernel 5.0.0 is now available to download from here. Source and Tag Location for this release is available here.
Carbon 5 [C5] is the next generation of WSO2 Carbon platform. The existing Carbon platform has served as a modular middleware platform for more than 5 years now. We've built many different products, solutions Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-22437591187376552642015-10-15T19:03:00.000+05:302015-10-15T19:04:46.866+05:30OSGi Unit Test Framework for Carbon 5
IntroductionIn the current carbon kernel there is no way to write test cases in order to test the OSGi services and functions. This is purely because of the bundles needs to be installed and run on a OSGi container. Pax- Exam [1] framework provides the underneath infrastructure to compose unit test cases which needs to be run. How Pax-Exam WorksPax exam starts up the OSGi framework, (Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-87552767679463832792015-08-11T16:53:00.000+05:302015-08-11T16:54:01.764+05:30[WSO2] Adding tenants using Admin Services - Sample CodeAdding tenants using admin services is straight forward. You have to use two admin services.
1. AuthenticationAdminService
2. TenantMgtAdminService
The AuthenticationAdminService is used to authenticate the user and get the session.
Below is a sample code for adding a tenant
<!-- HTML generated using hilite.me -->
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-210551523861491692014-12-23T02:00:00.000+05:302014-12-23T02:00:01.030+05:30Adding a custom proxy path for WSO2 Carbon 4.3.0 Based Products
The objective of this article is to give a comprehensive guide on, custom proxy paths, why we need a custom proxy path and how to enable a custom proxy path for WSO2 products. This feature was introduced in Carbon 4.3.0 release.
Custom proxy paths
Custom proxy path is used when mapping a proxy url pattern into a back-end url pattern.
For example lets consider
Proxy entry url path : &Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-88182691552145062562014-12-22T17:23:00.000+05:302014-12-22T17:27:06.480+05:30WSO2 Carbon 4.3.0 Released..!!!
Hi Folks,
WSO2 Carbon team is pleased announce the release of the Carbon Kernel 4.3.0.
What is WSO2 Carbon
WSO2 Carbon redefines middleware by providing an integrated and componentized middleware platform that adapts to the specific needs of any enterprise IT project - on premise or in the cloud. 100% open source and standards-based, WSO2 Carbon enables developers to rapidly Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-65110893422466386712014-12-18T12:20:00.001+05:302014-12-18T12:20:56.150+05:30Extending SCIM User Schema Of WSO2 Identity Server
In this post we are going to extend the SCIM User Schema Of WSO2 Identity Server and add custom fields.
More details about Extending SCIM User Schema Of WSO2 Identity Server and SCIM User Provisioning With WSO2 Identity Server using these links. [1], [2]. In this sample we are going to add a custom field called dateOfBirth to the schema. Follow the following steps to enable the custom field.
Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com1tag:blogger.com,1999:blog-9157571775745956748.post-64842815118618163002014-11-05T21:56:00.002+05:302014-11-05T21:57:28.512+05:30[WSO2] Sample Web Application to Demonstrate Insertion, Retrieval and Deletion of a resource to RegistryHere is a sample web application to test Insertion, Retrieval and Deletion of a resource to Registry.
Here is the sample servlet code. Github Link
<!-- HTML generated using hilite.me -->
package org.wso2.carbon.test;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-43384094371386154252014-11-03T20:41:00.000+05:302014-11-03T20:41:34.467+05:30Create a WSO2 Worker-Manager Cluster in Just 2 Minutes !
I've been working on an application(WSO2 Cluster Wizard) which creates a Worker-Manager Separated cluster for a given WSO2 Product. The objective of this application is to reduce the time spent on creating clusters in developers/testing local machines. Though puppet scripts can automate the process AFAIK, no one uses puppets to create clusters in their local setups'.
This is a simple GUI Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com1tag:blogger.com,1999:blog-9157571775745956748.post-60655087716747937122014-10-06T14:33:00.001+05:302014-10-06T14:33:57.267+05:30How to Install and Configure Subversion Server with HTTP Access
Hi all, Recently I came across with the $subject and I was unable to find a comprehensive tutorial. So In this post I've decided to show how to install and configure apache subversion server and configure the server to access via http in ubuntu.
First of all update the apt-get by the following command.
sudo apt-get update
Then Install the subversion and it's utilities.
sudo apt-get installAruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-9484163940462772332014-09-30T01:21:00.000+05:302014-09-30T01:22:29.658+05:30WSO2 Carbon kernel 4.3.0 Alpha is Released!!!Hi Folks,
WSO2 Carbon team is pleased announce the alpha release of the Carbon kernel 4.3.0.
WSO2 Carbon redefines middleware by providing an integrated and componentized middleware platform that adapts to the specific needs of any enterprise IT project - on premise or in the cloud. 100% open source and standards-based, WSO2 Carbon enables developers to rapidly orchestrate business Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-29640772417266508692014-09-09T20:37:00.001+05:302014-09-09T20:37:36.918+05:30Enable Java Security Manager for WSO2 Products
Hi everyone, in this post we are going to explore on how to enable java security manager for WSO2 products. For this we need to sign all the jars using the jarsigner program. For the learning purpose I will use the wso2carbon.jks java key store file, which ships default with WSO2 products.
Special thanks goes to Sanjaya Ratnaweera who generously gave me the script files.. :)
I am going to Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0tag:blogger.com,1999:blog-9157571775745956748.post-55023688469120775312014-08-25T20:57:00.000+05:302014-08-25T20:58:36.999+05:30Using WSO2 admin services to upload Carbon Applications - With SampleHi all, in this post we are going to explore how to use carbon admin services and how to consume them properly. There are lot of carbon admin services available for WSO2 Carbon based product.
To list out all the admin services follow the below steps.
Start a WSO2 product using the following command. In this particular example I am using WSO2 ESB 4.8.0
aruna@aruna:~$ ./wso2server.sh Aruna Karunarathnahttp://www.blogger.com/profile/09104613770962038797noreply@blogger.com0