Giter Site home page Giter Site logo

charts's People

Contributors

agnis-mateuss avatar artisba avatar artiskrumins avatar badrange avatar evilfurryone avatar floretan avatar gatis avatar guncha25 avatar jancis avatar maijs avatar mgalang avatar misterjoonas avatar nuwang avatar rade333 avatar ragnarkurmwunder avatar tharna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

charts's Issues

Allow for an external database

Currently the database values are always assumed to be coming from the mariadb valuyes. But we can allow for the possibility that these are set directly in values.drupal.env.

We simply need to NOT automatically write the database variables from mariadb if mariadb is disabled:

env:
{{- if or (not (hasKey .Values.mariadb "enabled")) .Values.mariadb.enabled }}
- name: DB_USER
  value: "{{ .Values.mariadb.db.user }}"
- name: DB_NAME
  value: "{{ .Values.mariadb.db.name }}"
- name: DB_HOST
  value: {{ .Release.Name }}-mariadb
- name: DB_PASS
  valueFrom:
    secretKeyRef:
      name: {{ .Release.Name }}-mariadb
      key: mariadb-password
{{- end }}
- name: HASH_SALT
  valueFrom:
    secretKeyRef:
      name: {{ .Release.Name }}-secrets-drupal
      key: hashsalt  

Nginx: Refactor the configuration

Here are refactored configurations from Trimble. Wunder configuration can be remodeled according to this.

The fastcgi.conf is sorted alphabetically to weed out duplicates, added HTTP_PROXY, etc.

The drupal.conf is completely refactored according to the precedence of the location blocks, otherwise it is tough to understand which rules apply when. This file cannot be used verbatim, but Wunder configuration can follow the suite. In some places, some blocks are missing which are not needed in the Trimble context. In some places, useless fastcgi_params are removed. Etc.

drupal.conf.txt
fastcgi.conf.txt
nginx.conf.txt

GDPR Dump may generate real user data

GDPR dump is generating email addresses that actually may be in use.

For security reasons I suggest to specify a template for using commonly used "/dev/null" email addresses ending with @example.com.

This way we avoid a problem if we accidentally send mass-email to "random" persons while using real domains such as @gmail.com or @yahoo.com email addresses.

Introduce separate envvars for SMTP host & port instead of SMTP_ADDRESS

Let's introduce separate envvars for SMTP host & port instead of SMTP_ADDRESS:

value: RELEASE-NAME-mailhog:1025

Consider this scenario:

/**
 * Default SMTP settings.
 *
 * Mailhog address in Silta SMTP_ADDRESS env-variable is
 * in form 'hostname:port'. We need them separately.
 */
if (getenv('SILTA_CLUSTER')) {
  $smtp_address_parts = explode(':', getenv('SMTP_ADDRESS'));
  if (!empty($smtp_address_parts[0]) && !empty($smtp_address_parts[1])) {
    $config['smtp.settings']['smtp_host'] = $smtp_address_parts[0];
    $config['smtp.settings']['smtp_port'] = $smtp_address_parts[1];
  }
}

DX: Simple chart README.md is confusing

By reading https://github.com/wunderio/charts/tree/master/simple README.md I didn't undestand why this is called simple directory while having Gatsby Helm Chart as a title of README.md.

The description says that it is used in combination with CI, but it doesn't explain why we need this chart in the first place.

Suggestions for DX:

  • Make titles and directory name consistent to avoid confusion
  • If mentioning deriving from drupal-project, explain why or avoid giving information that generates more questions
  • Explain why this chart is needed, explain the problem first

DX: Repository README.md is quite minimal

There's not much information shared about this repository in README.md file.

Suggestions for the contents:

  • Why this repository exists and who is it for?
  • List of charts, and links to their README.md files
  • Maybe a diagram that also shows the dependencies?

Nginx: Handling Php scripts

https://wunder.slack.com/archives/CAC0EPL1G/p1597852312006400?thread_ts=1597852274.006300&cid=CAC0EPL1G

        ## Disallow these update scripts as they are not used in current workflow, Drupal 7/8.
        location ~ ^/(update.php|core/update.php) {
            return 404;
        }
        ## Disallow these install cripts as they are not used in current workflow, Drupal 7/8.
        location ~ ^/(install.php|core/install.php) {
            return 404;
        }

It seems unnecessary, because of this:

        ## Any other attempt to access PHP files returns a 404.
        location ~* ^.+\.php$ {
            return 404;
        }

In case of the latter, the RX can be made faster:

location ~* \.php$ {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.