Skip to main content

12 posts tagged with "paralus"

View All Tags

· 6 min read
Nirav Parikh

Introduction

The world of Kubernetes has evolved rapidly, transforming the way organizations manage containerized applications. In this age of dynamic workloads and cloud-native architecture, security, and access control are paramount. Argo CD and Paralus are two powerful tools that have emerged to address these concerns, enabling organizations to implement zero-trust principles in their Kubernetes environments. In this blog, we'll explore the concepts behind Argo CD and Paralus and delve into their integration for zero-trust Kubernetes access.

Understanding Argo CD

Argo CD, an open-source GitOps continuous delivery tool, simplifies the deployment and management of applications in Kubernetes clusters. GitOps is a methodology that uses Git as a single source of truth for both infrastructure and application configurations. Argo CD watches your Git repository for changes and ensures that the actual state of the cluster matches the desired state defined in the repository.

Key features of Argo CD include

  • Declarative Application Configuration: Applications are defined in Git repositories using YAML files, making it easy to version and manage configurations.
  • Automated Synchronization: Argo CD continuously monitors Git repositories for changes, ensuring that the cluster is always in the desired state.
  • Role-Based Access Control (RBAC): Argo CD allows you to define granular access control policies for users and teams, enhancing security.

Paralus for Zero Trust Kubernetes Access

Paralus is a powerful tool designed to provide zero-trust access to Kubernetes clusters. Zero trust, as a security paradigm, assumes that threats can come from both inside and outside the network, and no entity should be implicitly trusted. Paralus integrates with Kubernetes to ensure that every interaction is authenticated and authorized, irrespective of the user's location.

Key features of Paralus include

  • Authentication: Users must authenticate themselves before accessing the Kubernetes cluster. Paralus supports various authentication methods, such as username/password, single sign-on using openid connect (sso), and more.
  • Role-Based Access Control: Access to Kubernetes resources is determined by policies and roles, ensuring only authorized users can perform specific actions.
  • Audit Trails: Every action taken in the Kubernetes cluster is logged, providing transparency and accountability.

Use Case: Secure Access to Kubernetes with Argo CD and Paralus

Let's dive into a practical use case to understand how Argo CD and Paralus work together to provide Zero Trust Kubernetes access.

Scenario

Imagine a mid-sized tech company with multiple Kubernetes clusters deployed in various cloud providers and on-premises data centers. The company uses Argo CD for continuous deployment of applications and wants to strengthen the security posture of their clusters.

Using Argo CD to manage Paralus applications

We can leverage Argo CD to deploy and manage Paralus core controller apps and relay agents across these multiple kubernetes clusters

Paralus Core: Install and manage paralus app as an argocd helm application

In this example we are going to deploy paralus core to the same cluster as argocd, you can choose a different destination cluster. This would make paralus upgrades automatic on every release depending on your synchronization option and leverage the power for argocd.

argocd app create paralus-core
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: paralus-core
spec:
destination:
name: ''
namespace: paralus
server: 'https://kubernetes.default.svc'
source:
path: charts/ztka
repoURL: 'https://github.com/paralus/helm-charts.git'
targetRevision: HEAD
helm:
parameters:
- name: deploy.postgresql.enable
value: 'true'
- name: kratos.kratos.development
value: 'true'
sources: []
project: default
syncPolicy: null
syncOptions:
- CreateNamespace=true

Next up synchronize the application to deploy Paralus core components to your target cluster

paralus core argocd app sync

Now you can access paralus console after configuring your DNS Settings

paralus console

Relay Agents: All the Paralus imported clusters can be configured as separate argocd applications. This enables managing and upgrading relay agents by just updating the version in git repo. Very useful to upgrade a fleet of agents across imported clusters.

argocd app create gke-dev
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: gke-dev
spec:
destination:
name: ''
namespace: paralus-system
server: 'https://35.224.124.44'
source:
path: argocd/cloud/gke/dev/
repoURL: 'https://github.com/niravparikh05/paralus-integrations.git'
targetRevision: HEAD
sources: []
project: default
syncPolicy:
syncOptions:
- CreateNamespace=true

relay agent argo app sync

Integrating Argo CD with Paralus

The integration of Argo CD with Paralus enhances Kubernetes access control and security, promoting a zero-trust approach. Here's how it works

  • Authentication: When a user attempts to access the Kubernetes cluster through Argo CD, Paralus handles the authentication process. Users must provide their credentials and complete any additional authentication steps, to verify their identity.
  • Access Control: Paralus enforces access policies based on the user's identity and role. Even within Argo CD, users can only interact with resources and applications they are authorized to access.
  • Auditability: Paralus logs all interactions within the Kubernetes cluster, providing a detailed audit trail. This ensures that all actions are recorded and can be reviewed for security and compliance purposes.

This is possible by adding clusters in argocd using the kubeconfig generated using paralus, in this example we will add a cluster with kubeconfig generated having service account with full cluster access

argocd cluster add gke-dev --name gke-dev-paralus --kubeconfig ./kubeconfig-admin@paralus.local.yaml

WARNING: This will create a service account `argocd-manager` on the cluster referenced by context `gke-dev` with full cluster level privileges. Do you want to continue [y/N]? y
INFO[0003] ServiceAccount "argocd-manager" already exists in namespace "kube-system"
INFO[0004] ClusterRole "argocd-manager-role" updated
INFO[0005] ClusterRoleBinding "argocd-manager-role-binding" updated
Cluster 'https://94a82cca-76ce-4cbb-8a36-8acc25eca1bd.user.ic-oss.dev.rafay-edge.net:443' added

Now deploying any application to above destination cluster will adhere to paralus’ just in time access and can be tracked via paralus' audit logs

Let’s say we add a new guestbook application to above cluster as our destination

argocd app create guestbook
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: guestbook
spec:
destination:
name: ''
namespace: default
server: >-
https://94a82cca-76ce-4cbb-8a36-8acc25eca1bd.user.ic-oss.dev.rafay-edge.net:443
source:
path: guestbook
repoURL: 'https://github.com/argoproj/argocd-example-apps.git'
targetRevision: HEAD
sources: []
project: default
syncPolicy:
syncOptions:
- CreateNamespace=true

Next up synchronize the guestbook app

relay agent argo app sync

Verifying the auditlogs, we can see that the guestbook application has been deployed with paralus system user having necessary permissions.

paralus argocd audit logs

By integrating Argo CD with Paralus, organizations can achieve a robust, zero-trust security model that safeguards their Kubernetes infrastructure and the applications running within it.

Conclusion

In the ever-evolving landscape of Kubernetes, ensuring security and access control is of utmost importance. Argo CD and Paralus represent two powerful tools that, when combined, can provide a robust zero-trust approach to Kubernetes access.

By using Argo CD for GitOps-driven application deployment and Paralus for strong authentication, role-based access control, and auditability, organizations can confidently embrace the world of container orchestration without compromising security. This integration not only secures the Kubernetes environment but also enhances compliance and accountability.

In summary, Argo CD and Paralus are a dynamic duo for implementing a zero-trust approach to Kubernetes access, providing a secure and reliable foundation for modern containerized applications.

· 3 min read
Saim Safdar

In late Sep 2023, we had the opportunity to speak, present and participate at DevOpsCon 2023 in New York City. In this blog, we will briefly describe what we presented at the conference and our observations about the event itself.

DevOpsCon is a global conference focused on CI/CD, Kubernetes Ecosystem, Agile & Lean Business. If you live outside the United States, you may want to attend one of their conferences in other cities such as Munich, Singapore, London and Berlin.

This year's conference in New York was held at the Marriott near Brooklyn Bridge which is a fantastic location, literally right across from the Brooklyn Bridge and NYU Engineering.

Our goals at this conference were very simple

  • Educate the attendees about various approaches for secure access to Kubernetes clusters and their pros/cons.

Our Presentation

Secure developer and operator access to Kubernetes clusters is a big deal for organizations. Paralus, an open source project has been a major contributor of innovative solutions to address this challenge.

Teams that ignore this issue or handle this poorly not only have to deal with major security and compliance issues, but also land up significantly impacting their application developer velocity.

Here is the title of our presentation and we also had a live demonstration to help the attendees understand how this worked behind the scenes.

zero trust or bust

Learnings

We also had the opportunity to meet and speak with many of the attendees who were at the conference. Most of the attendees were from the greater NY metro area and some were from Boston and the DC area. There were three common themes that bubbled up constantly.

Kubernetes - Part of a larger infrastructure

Most had Kubernetes resident applications leveraging managed services (e.g. RDS managed database etc.) in cloud providers. They said they were struggling with creation and ongoing management of these complex environments.

Acute need for developer self-service

Developers seem to be struggling with lack of self service for test beds and other environments. This said this was impacting their development velocity.

Generative AI

Everyone seems to be talking about it. But, they are also struggling to get started and seem to be unsure where to apply it first in their applications. Most were of the opinion that the first and logical use case would that of a co-pilot.

Conclusion

Organizations looking for a standalone, open source alternative can use Paralus. This is a CNCF project sponsored and maintained by the Rafay Team.

The event organizers will provide a live stream of my presentation and live demo. This should be available to everyone very soon.

· 3 min read
Saim Safdar

Organizations today need to efficiently manage resources, ensure security, and foster innovation—all within shared environments. MultiTenancyCon, a co-located event at KubeCon is where the brightest minds in the industry come together to address these challenges head-on.

MultiTenancyCon

Multi-TenancyCon is a vendor-neutral conference designed to foster collaboration, discussion, and knowledge sharing on Multi-Tenancy framework and technologies, and challenges for implementing and adopting it in a production set-up. It's a congregation of brilliant minds in the world of Kubernetes, focused on addressing the challenges and opportunities that multi-tenancy presents.

Why Multitenancy in Kubernetes?

Multi-tenancy in Kubernetes refers to the practice of running multiple, isolated workloads on the same cluster, where each workload can belong to a different team, application, or customer. While the advantages of multi-tenancy are evident, such as resource optimization and cost efficiency, it's not without its complexities. Kubernetes provides the building blocks, but orchestrating them effectively requires expertise.

Current Challenges in Kubernetes Multitenancy

With multi-tenant clusters, there are certain challenges that customers have to solve from a security and operational efficiency standpoint.

Some of those include:

  • Access Control: Enabling a Zero Trust model for K8s infrastructure access
  • Runtime security: Monitoring and detecting abnormal behavior and possible threats in real time
  • Noisy Neighbor Issues: Enforcing resource quotas and ensuring isolation of namespaces belonging to different teams/applications
  • Policy Enforcement: Implementing necessary guardrails to ensure compliance (e.g. appropriate labels for resources)
  • Resource Utilization & Chargeback: Understanding usage and apportioning costs across teams/applications

Meet Team Paralus at MultiTenancyCon

At this year's MultitenancyCon, Paralus maintainer Naveen Chakrapani and Falco maintainer Thomas Labarussias will be participating in a talk, Enhanced Security for Multi-Tenant Architectures: Key Components and Best Practices that will focus on access control and runtime security.

Access Control with Paralus

Paralus is a powerful access management solution designed to simplify and centralize access control for Kubernetes. It enables a Zero Trust Access Model with Just-In-Time (JIT) account creation, automated RBAC (Role-Based Access Control) federation, and centralized audit trails for all user/kubectl activities.

Key benefits of Paralus include

  • Secure access management
  • Automated RBAC
  • Auditability

In addition to the talk, you can also meet team #paralus at KubeCon, kiosk F35 and learn how Paralus can help implement a Zero Trust Access model for K8s access and reduce the cognitive load for platform teams and developers.

Conclusion

The challenges of multi-tenancy in Kubernetes are not to be underestimated. But, with the right knowledge and tools, this complexity can be tamed. MultitenancyCon is your opportunity to gain that knowledge, access those tools, and join a community of experts in the field.

If you're passionate about Kubernetes, multi-tenancy, and the future of cloud-native technologies, don't miss MultitenancyCon. It's your ticket to taming the complexity and unleashing the true potential of multi-tenancy in Kubernetes.

· 4 min read
Naveen Chakrapani
Thomas Labarussias

Organizations today need to efficiently manage resources, ensure security, and foster innovation—all within shared environments. MultiTenancyCon, a co-located event at KubeCon is where the brightest minds in the industry come together to address these challenges head-on.

· 5 min read
Saim Safdar
Dario Tranchitella

Introduction

Managing Kubernetes clusters at scale can be a daunting task, especially when dealing with multiple clusters and the need to federate access and manage RBAC for a group of developers. However, the integration of two open-source projects, Kamaji and Paralus, provides an innovative solution to address these challenges. In this blog post, we will explore how Kamaji's Kubernetes-in-Kubernetes approach and Paralus' centralized RBAC and authentication features work together seamlessly to simplify cluster management, enhance security, and streamline RBAC operations.

· 7 min read
Saim Safdar

With over 150 speakers and 20,000 attendees PlatformCon 2023, the virtual conference created by and for platform engineers was a hub of activity and excitement for tech enthusiasts and industry professionals alike. Team Paralus was also a part of such a vibrant community for the second edition of PlatformCon.

This event brought together a global community of techies, developers, and platform engineers to share the latest advancements and trends in the field of platform engineering.

The event also featured a diverse range of talks ranging from platform-culture, platform-blueprint, platform-impact to platform-stories. You can watch all the sessions on the Platform Engineering YouTube Channel.

· 4 min read
Atulpriya Sharma

Applications today have become advanced and complex. They can perform simple tasks like adding up two numbers to controlling a rocket in space. Irrespective of what the application does, ensuring that the application and the underlying infrastructure is safe and secured is critical.

So as teams and organizations build applications, we want to ensure that their infrastructure is secured. That was one of the reasons we came up with Paralus. We went a step further and donated it to the CNCF to help the community and also in turn build Paralus.

· 3 min read
Atulpriya Sharma

June 28, 2022, was an extremely special day for all of us here at Paralus. It was the day when Paralus was born. The day when we presented Paralus to the world. A lot of tools exist today for managing Kubernetes access. From the default role-based access control mechanism to custom DIY solutions along with a few open-source projects. However, most of these tools aren't easy to configure especially when it comes to individual clusters.

· 6 min read
Atulpriya Sharma

Organizations today are focusing a lot on scalability and flexibility of their applications. Most of the age-old monolith applications are now being converted to more modern and agile microservices which reside in containers.

As more and more applications are containerized, orchestration tools like Kubernetes are at the helm. However, with every new resource addition, there's an overhead. And the one that we are going to focus on today is access management for Kubernetes.

· 5 min read
Atulpriya Sharma

The concept of safety and security have been prevalent from the early days of human existence. Back in the day, watch towers and sentries were a way for kings to keep a watch on their surroundings.

In the modern day setup, information security is a bigger challenge than physical security. Confidential & sensitive data runs into petabytes and it becomes all the more important to safeguard not only the data but the entire infrastructure.

CNCF

We are a Cloud Native Computing Foundation sandbox project.