Drupal

Dcycle: HTTPS on Acquia stage environments with LetsEncrypt, semi-automated

Planet Drupal - 4 October 2018 - 5:00pm

I recently ran into a series of weird issues on my Acquia production environment which I traced back to some code I deployed which depended on my site being served security using HTTPS.

Acquia Staging environments don’t use HTTPS by default and require you to install SSL certificates using a tedious manual process, which in my opinion is outdated, because competitors such as Platform.sh and Pantheon support lots of automation around HTTPS using Let’s Encrypt.

Anyhow, because staging did not have HTTPS, I could not test the code, which ended up costing me an evening debugging an outage on a production environment.

I found a great blog post which explains how to set up Let’s Encrypt on Acquia environments, Installing (FREE) Let’s Encrypt SSL Certificates on Acquia, by Chris at Redfin solutions, May 2, 2017. Although the process is very well documented, I made some tweaks:

  • First, I prefer using Docker-based solutions rather than install softward on my computer. So, instead of install certbot on my Mac, I opted to use the Certbot Docker Image, this has two advantages for me: first, I don’t need to install certbot on every machine I use this script on; and second, I don’t need to worry about updating certbot, as the Docker image is updated automatically. Of course, this does require that you install Docker on your machine.
  • Second, I automated everything I could. This result in this gist (a “gist” a basically a single file hosted on Github), a script which you can install locally.
Running the script

When you put the script locally on your computer (I added it to my project code), at, say ./scripts/set-up-letsencrypt-acquia-stage.sh, and run it:

  • the first time you run it, it will tell you where to put your environment information (in ./acquia-stage-letsencrypt-environments/environment-my-acquia-project-one.source, ./acquia-stage-letsencrypt-environments/environment-my-acquia-project-two.source, etc.), and what to put in those files.
  • the next time you run it, it will automate what it can and tell you exactly what you need to do manually.

I tried this and it works for creating new certs, and should work for renewals as well!

I recently ran into a series of weird issues on my Acquia production environment which I traced back to some code I deployed which depended on my site being served security using HTTPS.

Categories: Drupal

Chart Suite

New Drupal Modules - 4 October 2018 - 3:43pm


Chart Suite provides file field formatters to chart file data for tables, trees, and graphs. A variety of well-known textual file formats are supported, including comma-separated values (CSV), tab-separated values (TSV), HTML tables, and JSON tables, trees, and graphs in common array- and object-style schemas.

Categories: Drupal

Role Log

New Drupal Modules - 4 October 2018 - 1:27pm

This is a simple module to log Drupal role changes. All role changes for a user (whether made through the admin UI, Drush/Drupal Console, or programmatically) will be logged with "info" severity to the PSR-3 logging interface (aka "watchdog").

Categories: Drupal

Formatter Suite

New Drupal Modules - 4 October 2018 - 12:31pm


Formatter Suite provides a rich suite of field formatters to help present numbers, dates, times, text, images, and entity references. The included 17 field formatters compliments those available in core.

Categories: Drupal

Acquia Developer Center Blog: Experience Express in Darmstadt: Celebrating Drupal 8's Most Important Release Yet

Planet Drupal - 4 October 2018 - 9:52am

Though there was no DrupalCon Europe this year, the European Drupal community stepped up and organized their own conference, Drupal Europe, in Darmstadt, Germany last month. An incredibly successful gathering held in the Darmstadtium venue, a beautiful convention center in the center of this college town, Drupal Europe demonstrated the unique power that grassroots initiatives can have in our open-source community.

Tags: acquia drupal planet
Categories: Drupal

iPicture

New Drupal Modules - 4 October 2018 - 9:50am

This module is based on jQuery plugin iPicture to create interactive image walkthroughs. It can overlay tooltips and hints on top of the image, and presents rich content like HTML, photos and videos. It is easy to integrate into your site and can be customized and extended with CSS.

Categories: Drupal

blog.studio.gd: Drupal 8 Views Plugins (Part 2) : The display extender plugin

Planet Drupal - 4 October 2018 - 8:14am
Let's see how and why to use a views display extender plugin.
Categories: Drupal

blog.studio.gd: Views Plugins (Part 1) : Simple area handler plugin

Planet Drupal - 4 October 2018 - 8:14am
In this series I will show you how to make use of the new Drupal 8 Plugin system, we begin with a simple example : the views area handler plugins.
Categories: Drupal

blog.studio.gd: Overview of CMI in Drupal 8

Planet Drupal - 4 October 2018 - 8:14am
Some notes about the new Configuration management system in Drupal 8
Categories: Drupal

blog.studio.gd: Migrate to Drupal 8 from a custom site

Planet Drupal - 4 October 2018 - 8:14am
Migrate is now included in the Drupal core for making the upgrade path from 6.x and 7.x versions to Drupal 8.

In this article will see how to use the Drupal migration framework to migrate custom sites to drupal 8.
Categories: Drupal

blog.studio.gd: Inline Entity Display

Planet Drupal - 4 October 2018 - 8:14am
Handle referenced entity fields directly in the parent entity
Categories: Drupal

Behat Generator

New Drupal Modules - 4 October 2018 - 8:01am

This project is a tool which provides Drush commands to generate Behat tests automatically based on the configuration already created for the site.

This is a quick way to set up tests once functionality has already been implemented.

Usage $ drush generate behat-generator-content-test
Categories: Drupal

Strip HTML tags - Custom text format filter

New Drupal Modules - 4 October 2018 - 7:57am

This module adds a new filter to the Drupal text formats.

This filter enables the user (admin) to strip specified HTML tags from the HTML text that uses this filter.

Categories: Drupal

Mass.gov Digital Services: Why we write at a 6th grade level

Planet Drupal - 4 October 2018 - 3:31am
Variety of content and the need for empathy drive our effort to simplify language across Mass.gov

Nearly 7 million people live in Massachusetts, and millions more visit the state each year. These people come from different backgrounds and interact with the Commonwealth for various reasons.

Graphic showing more than 3 million visitors go to Mass.gov each month.

We need to write for everyone while empathizing with each individual. That’s why we write at a 6th grade reading level. Let’s dig into the reasons why.

Education isn’t the main factor

The Commonwealth has a high literacy rate and a world-renowned education network. From elementary school to college and beyond, you can get a great education here.

We’re proud of our education environment, but it doesn’t affect our readability standards. Navigating the Women, Infants, and Children (WIC) Nutrition Program might be challenging for everyone.

Complexity demands simplicity

People searching for nutrition services are doing so out of necessity. They’re probably frustrated, worried, and scared. That affects how people read and retain information.

Learn about our content strategy. Read the 2017 content team review.

This is the case for many other scenarios. Government services can be complicated to navigate. Our job is to simplify language. We get rid of the white noise and focus on essential details.

Time is not on our side

You don’t browse Mass.gov in your free time. It’s a resource you use when you have to. Think of it as a speedboat, not a cruise ship. They’ll both get you across the water, just at different speeds.

Graphic showing desktop visitors to Mass.gov look at more pages and have longer sessions than mobile and tablet visitors.

Mass.gov visitors on mobile devices spend less time on the site and read fewer pages. The 44% share of mobile and tablet traffic will only increase over time. These visitors need information boiled down to essential details. Simplifying language is key here.

Exception to the rule

A 6th-grade reading level doesn’t work all the time. We noticed this when we conducted power-user testing. Lawyers, accountants, and other groups who frequently use Mass.gov were involved in the tests.

These groups want jargon and industry language. It taught us that readability is relative.

Where we are today

We use the Flesch-Kincaid model to determine reading level in our dashboards. It accounts for factors like sentence length and the number of syllables in words.

This is a good foundation to ensure we consistently hit the mark. However, time is the most important tool we have. The more content we write, the better we’ll get.

Writing is a skill refined over time, and adjusting writing styles isn’t simple. Even so, we’re making progress. In fact, this post is written at a 6th grade reading level.

Interested in a career in civic tech? Find job openings at Digital Services.

Follow us on Twitter | Collaborate with us on GitHub | Visit our site

Why we write at a 6th grade level was originally published in MA Digital Services on Medium, where people are continuing the conversation by highlighting and responding to this story.

Categories: Drupal

Bulk Message System

New Drupal Modules - 4 October 2018 - 12:59am
Categories: Drupal

Monsido

New Drupal Modules - 4 October 2018 - 12:03am

Module were working with the following features:

A variable_set that was configured via a module config page
Ensuring that the module would load the monsido js file and the site embed js in the same group ensuring that they're loaded in the correct order AFTER jquery.

Categories: Drupal

OSTraining: Should I Re-use Existing Drupal Fields?

Planet Drupal - 3 October 2018 - 9:08pm
Sometimes we're able to give really clear advice: "Do this!" or "Don't do that!"

This is not going to be one of those blog posts.

Drupal gives you the ability to re-use fields. If you have an "Image" field, you could choose to use that same field on every content type on your site. However, it's not always clear whether re-using fields is a good idea. Sometimes it is, sometimes it isn't.

Here's an overview of the advantages and disadvantages to consider before re-using Drupal fields.

Categories: Drupal

lakshminp.com: Continuous delivery of Drupal using Ansible and Gitlab

Planet Drupal - 3 October 2018 - 7:37pm
Continuous delivery of Drupal using Ansible and Gitlab lakshminp Wed, 10/03/2018 - 22:37

Now that we have automated our deployment, it wouldn't be too hard to wire it with our code management setup. In this post, we will hook the Ansible scripts with our Git hosting setup so that a deployment gets triggered when you do a "git push". The idea is, deployment shouldn't be a chore, so that developers don't even think of it and only focus on the business logic of their application.

Categories: Drupal

Community: Governance Task Force Community Update, October 2018

Planet Drupal - 3 October 2018 - 6:14pm

This is a public update on the work of the Governance Task Force.

The Governance Task Force has been working hard to prepare the proposal. We currently have a completed draft that we are actively refining for editorial improvement. As part of the review, we believe it is important to get initial feedback from some key stakeholders to ensure there are no major issues identified. We'll consider making changes to the proposal at our discretion. The proposal will then be delivered to the community and we’re very excited to soon share this. While things may change, we believe we are on time to deliver the proposal before the end of October.

Our team is actively discussing the handoff and next steps that follow from our work. We recognize that there may be ongoing support needed and want to do what we can to help follow-up efforts. It is imperative that momentum is maintained after our proposal is delivered.

We will be recommending a public commentary period before any recommendations move forward for the community to share their thoughts. This commentary period will likely outlast the task force. The task force will officially disband at the end of October, as we have stated in our charter. This does not mean that the work is complete, as there may be discussion and, most importantly, approved recommendations will need support to move forward. The task force wants to do what we can to enable the next steps and we are actively discussing how this might happen, even if we, as individuals, participate without an official charter.

We continue to be committed to serving the community and operating in a transparent way. If you wish to reach us, please fill out this Google form and we will respond as soon as we’re able.

Categories: Drupal

Pages

Subscribe to As If Productions aggregator - Drupal