Welcome to curated list of handpicked free online resources related to IT, cloud, Big Data, programming languages, Devops. Fresh news and community maintained list of links updated daily. Like what you see? [ Join our newsletter ]

Handling webhooks with EventBridge, SAM and SAR

Categories

Tags architecture-and-apis security-and-privacy data-and-analytics cloud-and-infrastructure

Applications author worked on in the last decade were rarely isolated from the rest of the world. Most of the time, they had many interactions with other applications out there. From time to time, some of these integrations are using WebSockets, which makes our integration realtime. By Slobodan Stojanović.

There’s a big chance that you worked with many similar integrations, such as Stripe, Slack, Github, and many others. Events are the core of the common serverless application. We use events to trigger our functions; we send them to queues and notification services, we stream them. But events are also the core of almost any application.

The article is split into these sections:

  • A quest to a cleanest webhook integration
  • Why AWS EventBridge
  • EventBridge integration with AWS SAM
  • Testing the webhook
  • SAR (AWS Serverless Application Repository) application

EventBridge represents a new home for your events. We can use it to integrate with some of the third-party services or build our integrations. We can connect Amazon SNS with a few other services directly. At the moment, EventBridge supports 20 different targets, including Lambda functions, SQS, SNS, Kinesis and others. We’ll use the same event bus for multiple events, so it’s better to keep it outside of the SAR app and pass the reference to it to the SAR app.

For unsuccessful deliveries, SNS retries up to three times. EventBridge does retries out of the box for 24 hours. Both SNS and EventBridge support Lambda Destinations. EventBridge has Schema Registry for events. It supports versioning, and it has an auto-discovery and can generate code bindings.

EventBridge has Schema Registry for events. It supports versioning, and it has an auto-discovery and can generate code bindings.

Simple SAR application is provided for you in the Github repository. Good read!

[Read More]

Developing micro-microservices in C on Red Hat OpenShift

Categories

Tags architecture-and-apis frontend-and-mobile product-and-design software-engineering devops-and-ci-cd cloud-and-infrastructure

For optimal runtime resource usage and millisecond startup times, though, it remains hard to beat C. Comparatively few people in the IT industry have experience implementing middleware components in C. This fact is ironic because C is an ideal vehicle for implementing truly micro microservices. By Kevin Boone.

This article discusses some of the implications of implementing a REST-based web service in C. My example is a component called solunar_ws that calculates sun and moonrise and sets times at any location on any day. Author has deliberately chosen an example that is self-contained, but which does real computational work. With 8,000-or-so lines of C code, this example is a good deal more complex than a “Hello, World.”

The main points:

  • About the web service
  • About the container
  • Challenges
    • BusyBox
    • Alpine dependencies
    • MUSL
    • TLS issues
  • Developing for an ultra-lightweight container
  • Testing in a virtual machine
  • Testing (and possibly developing) in a development container
  • Building the production container
    • A multi-stage container build
    • The first-stage build
    • The second-stage build
  • Deploying on OpenShift

… and more. However, as author pouints out, although it’s possible to create a tiny container, it isn’t necessarily advisable. . In particular, this container image has no diagnostic tools of any kind. In addition, examining a core dump from a container like this will be an unhappy experience for anyone without a development environment that perfectly matches the container’s base layer. You will also get access to GitHub repository for the complete source code. Excellent read!

[Read More]

Auth0 introduces adaptive MFA

Categories

Tags security-and-privacy devops-and-ci-cd architecture-and-apis leadership-and-career

Adaptive MFA improves security and customer experience. According to Dashlane, the average US internet user has over 150 online accounts, with that number projected to double by 2022. By Randy Nasson and Antonio Fuentes.

Given the rampant password reuse problem (65% of people reuse passwords across multiple sites), when data breaches occur, a vast number of accounts are vulnerable. While protective measures like Breached Password Detection can help minimize risks associated with known stolen credentials, there nevertheless remains a substantial risk for potential credential theft in the future.

Key takeaways form this article:

  • Multi-factor authentication (MFA) provides added security for protected content, but usability concerns can adversely affect the user experience
  • Using custom MFA options can help reduce friction, but custom MFA requires writing rules (coding) or explicit user opt-in to minimize prompts for secondary factors
  • Auth0 now offers Adaptive MFA, which only prompts users for secondary authentication factors if the login or authorization attempt is considered risky

Adaptive MFA bridges the gap between user experience and account security by providing a secondary factor for end-users but only prompting them for secondary verification when the primary factor login looks suspicious or unusual. For example, if the user logs in from a new device or logs in from previously unseen geolocation, these signals can indicate low confidence that a login attempt is legitimate and that the user should be prompted to authenticate via the second factor.

MFA offers an excellent defense against password-related account compromise. According to Open Web Application Security Project (OWASP), MFA is “by far the best defense against the majority of password-related attacks”. Good read!

[Read More]

The last guide to the useEffect Hook you'll ever need

Categories

Tags frontend-and-mobile product-and-design software-engineering

Understanding how the useEffect Hook works is one of the most important concepts for mastering React today. If you have been working with React for several years, it is especially crucial to understand how working with useEffect differs from working with the lifecycle methods of class-based components. In fact, it is a wholesale shift in mindset! By Sebastian Weber.

Fully understanding effects is a complex issue. As Dan Abramov of the React team stated, you might have to unlearn some things to fully grasp effects.

A diagram of the React Hooks lifecycle

Source: https://blog.logrocket.com/guide-to-react-useeffect-hook/ With useEffect, you invoke side effects from within functional components, which is an important concept to understand in the React Hooks era. Working with the side effects invoked by the useEffect Hook may seem cumbersome at first, but you’ll eventually learn everything makes a lot of sense.

The article main points are:

  • A whole new mental model: The core concepts of useEffect
  • The key concepts of using effects
  • Always use useEffect for asynchronous tasks
  • Use multiple effects to separate concerns
  • When are effects executed within the component lifecycle?
  • The useEffect control flow at a glance
  • How to execute side effects with useEffect

… and more. understanding the underlying design concepts and best practices of the useEffect Hook is a key skill to master if you wish to become a next-level React developer. Good read!

[Read More]

We burnt $72k testing Firebase + Cloud Run and almost went bankrupt

Categories

Tags data-and-analytics leadership-and-career business-and-emerging-tech cloud-and-infrastructure

This is the story of how close we came to shutting down before even launching our first product, how we survived, and the lessons we learnt. By Sudeep Chauhan.

In March, 2020, when COVID hit the world, our startup Milkie Way too was hit with a big blow and almost shut down. We burnt $72,000 while exploring and internally testing Cloud Run with Firebase within a few hours.

Having a very small team, our focus was on writing code, designing the UI and getting product ready. I spent minimal time in Cloud management, just enough to make us go live, and have basic development flow (cicd) going.

The article then describes:

  • Some technical details
  • Nightmare begins
  • Nightmare continues
  • Some Breather : GCP loopholes
    • Automatic upgrade of Firebase account to paid account
    • Billing “Limits” don’t exist. Budgets are at least a day late
    • Don’t rely on Firebase Dashboard!

Having been a Googler for ~6.5 years and written dozens of project documents, postmortem reports, and what not, I started a document to share with Google outlining the incident, and adding the loopholes from Google’s side in a postmortem. Google team would come back to work in 2 days. Interesting read!

[Read More]

How to install PHP 8 on Ubuntu 20.04

Categories

Tags backend-development cloud-and-infrastructure frontend-and-mobile product-and-design software-engineering

PHP is one of the most widely used server-side programming languages. Many popular CMS and frameworks such as WordPress, Magento, and Laravel are written in PHP. PHP 8.0 is the latest major release of the PHP language. It introduces several breaking changes, performance improvements, and lots of new features such as named arguments, JIT compiler, union types, match expression, and more. By linuxize.com.

The article will show you how to install PHP 8 on Ubuntu 20.04 and integrate it with Nginx and Apache.

Before upgrading to or installing PHP 8, make sure that your applications support it. The same steps apply for Ubuntu 18.04 and all Ubuntu-based distribution, including Kubuntu, Linux Mint, and Elementary OS.

The guide then describes how to:

  • Enable PHP repository
  • Installing PHP 8.0 with Apache
    • Install PHP as Apache Module
    • Configure Apache with PHP-FPM
  • Installing PHP 8.0 with Nginx
  • Installing PHP extensions
  • Testing PHP Processing

Installing PHP 8 on Ubuntu 20.04 server seems like a simple task. All you need to do is to enable the appropriate repository and install PHP 8 with apt. How straightforward.

[Read More]

How payment transaction processing works

Categories

Tags security-and-privacy miscellaneous leadership-and-career

Payment transactions occur in a matter of seconds. We can easily swipe our credit card or touch to pay, and there’s an instant exchange of value. But it’s not as simple as it seems. Behind every digital transaction is an intricate web of processes that enables nearly $2 trillion in payment volume. By privacy.com.

When a consumer swipes their card, the merchant’s bank will send out a request for authorization via the payment network. The card company then runs payment details through a variety of fraud-protection tools to validate the information.

In thins article you will be able to learn more about:

  • Where credit card purchases begin and who is involved
  • How banks and credit card companies clear and settle payments
  • Security gaps along the payment transaction process
  • Virtual cards create a secure and efficient payment ecosystem

If the consumer is using a debit card, the network will have to verify that enough funds are available to complete the transaction. For credit cards, different rules will apply based on the consumer’s available credit or predetermined spending limits. Once the consumer’s account details are verified, the payment network is given the okay to route approval to the merchant’s bank. At this stage, payment is guaranteed.

At Privacy, they provide virtual cards that allow consumers to have greater control over their spending. Consumers start by opening a number of virtual cards to manage everyday purchases or subscription spending. If fraud is detected or a merchant places a charge without permission, consumers can pause or stop transactions on their virtual card at any time.

Unlike standard credit cards, virtual cards use unique card numbers, which can be turned off or limited in real time. These features allow the consumer to actively mitigate security gaps that can occur throughout the payment transaction process. Interesting read!

[Read More]

Azure Container Registry: Securing container workflows

Categories

Tags security-and-privacy devops-and-ci-cd cloud-and-infrastructure

Securing any environment requires multiple lines of defense. Azure Container Registry recently announced the general availability of features like Azure Private Link, customer-managed keys, dedicated data-endpoints, and Azure Policy definitions. These features provide tools to secure Azure Container Registry as part of the container end-to-end workflow. By Reshmi Mangalore Senior Program Manager.

The article describes the following:

  • Customer-managed keys
  • Private links
  • Dedicated data-endpoints
  • Azure built-in policies

Private Link is the most secure way to control network access between clients and the registry as network traffic is limited to the Azure Virtual Network. When Private Link can’t be used, dedicated data-endpoints can minimize data exfiltration concerns. You will also get plenty oof links to further reading on the subject. Good work!

[Read More]

How to increase push notification delivery rate in Android?

Categories

Tags frontend-and-mobile product-and-design backend-development data-and-analytics cloud-and-infrastructure

Notifications are one of the important parts of any application. Almost every application on your mobile device will be sending some or other kind of notification. By Sumit Mishra.

But many developers find it difficult to send the notifications to all their users i.e. it is found that only a few of their users receive the notifications and due to this, one of the most asked questions to me is “Why some of the users are not receiving the push notifications?”

Server to FCM Google Server and then FCM Google Server to users notification

Source: https://blog.mindorks.com/how-to-increase-push-notification-delivery-rate-in-android The content of this article is split into:

  • What exactly the problem is?
  • How does the notification system work?
  • How to solve the problems?
  • What next?

First of all, the most common mistake that all developers do is taking the wrong data about the users of their app. For example, if your app is having 125 users, then there are cases that out of those 125 users 20% might have uninstalled your app. So, you might be taking data for 125 users but in reality, you sent the notification to 100 users only(20% of 125 = 25). So, the very first thing that you need to do is take the exact user count.

From author’s experience, normally, only 30% of the users receive the notifications that we send i.e. only 30 out of 100. So, we are not able to send notifications to 70% of our customers. Some of reasons being:

  • 30% puts it in DND: Due to a large number of applications and so many notifications from those applications, 30% of the users tend to put that particular application in DND mode i.e. in Do Not Disturb mode. So, in this case, no notifications will be shown to the users for that particular application
  • 20% OEM restrictions: For better performance of mobile devices, the mobile manufactures make a list of apps called whitelisted apps
  • 20% FCM GooglePlayServices not present or disconnected

Follow the link to the full article to learn how to overcome above mentioned problems. Niobe one!

[Read More]

Good-bye ESNI, hello ECH!

Categories

Tags security-and-privacy architecture-and-apis devops-and-ci-cd product-and-design

Most communication on the modern Internet is encrypted to ensure that its content is intelligible only to the endpoints, i.e., client and server. Encryption, however, requires a key and so the endpoints must agree on an encryption key without revealing the key to would-be attackers. By Christopher Patton.

In this post we’ll dive into Encrypted Client Hello (ECH), a new extension for TLS that promises to significantly enhance the privacy of this critical Internet protocol. Today, a number of privacy-sensitive parameters of the TLS connection are negotiated in the clear. This leaves a trove of metadata available to network observers, including the endpoints’ identities, how they use the connection, and so on.

The TLS 1.3 handshake

Source: https://blog.cloudflare.com/encrypted-client-hello/

The article contains information on:

  • The story of TLS is the story of the Internet
  • Handshake encryption in TLS
  • Before ECH there was (and is!) ESNI
  • The ins and outs of ECH
  • The spectre of ossification

… and more. Ultimately, the goal of ECH is to ensure that TLS connections made to different origin servers behind the same ECH service provider are indistinguishable from one another.

The old TLS handshake is (unintentionally) leaky. Operational requirements of both the client and server have led to privacy-sensitive parameters, like SNI, being negotiated completely in the clear and available to network observers. Excellent and very detailed read!

[Read More]