K8s - streamline the hardening process for a server

I was wondering if there is a way to streamline the hardening process for a server.

  1. adding a new user + disabling root
  2. switching from SSH password to keys only
  3. setting up 2FA
  4. set behind load balancer + disable public IP
  5. failban, firewall, ports

From what I know this is usually a pretty manual process, but maybe docker/k8s has a magical pill?

1 Reply

Linode Staff

It sounds like you're looking for StackScripts, which is our service that allows you to deploy new Linodes a bash script to be executed during provisioning. With StackScripts you can automate the installation and configuration of just about anything your Linux distro allows.

Here is an example StackScript by one of our staff members that automatically runs through the steps in our Getting Started and Securing Your Server guides to give you an idea of how they work:

And here is where you can find our documentation on using StackScripts:

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct