Questions tagged [security]

For questions related to IT Security, Information Security or DevSecOps.

Filter by
Sorted by
Tagged with
1 vote
0 answers
35 views

Best practices of authentication to Vault

What could be considered the most secure way of authenticating in HashiCorp Vault by an application running in a Kubernetes cluster? The AppRole method is nice, but implementing AppRole implies that ...
Volodymyr Melnyk's user avatar
0 votes
0 answers
11 views

Can I set up an alert for when resource locks are deleted?

I'm trying to set up an alert for when the lock on my Logs Analytics Workspace is deleted I have set up my Logs Analytics Workspace to send its Audit Logs to itself When I delete a lock, and then do a ...
Steve's user avatar
  • 101
0 votes
0 answers
70 views

Permission denied when mounting volume with podman in fedora

I use a docker-compose.yml file to boot my containers. My container mount to a external volume which targets a directory inside my user profile (postgres database files). However, after switching from ...
mesx's user avatar
  • 101
0 votes
0 answers
10 views

What is the best practice to deploy single instance with http access on GCP

What is the best practice to deploy a single instance with HTTP access on GCP? I want to deploy an app on a single GCP instance that doesn't need to be scalable, and only needs to have HTTP access, so ...
devops on the road's user avatar
0 votes
0 answers
25 views

Secure boot on vmware workstation

We want to run a non-standard OS (not linux or windows) that boots via secure boot on VMware workstation. We can successfully do this on virtualbox, but want to work out how to do the same in VMWare ...
user2881914's user avatar
0 votes
0 answers
35 views

how to secure Kong Admin Api?

I'm setting up the Kong gateway manager locally using Docker. the requests will be sent to localhost:8000, and admin will be available in localhost:8002. How can I secure these ports locally when ...
onebyi3's user avatar
0 votes
0 answers
27 views

How can I add an exception to the RKE2 default security policy to allow a single pod in a namespace to run as a root user

Good afternoon. So I have an RKE2 cluster with the security policy in place that does not allow root pods to run. I have a pod that has to run as root and have been trying to figure out how to allow ...
IT_User's user avatar
  • 101
1 vote
1 answer
103 views

How do you add user secrets to a deployment without having them to source control?

I am developing applications that require user secrets to function. These credentials should not be stored in source control due to security concerns. Instead, they need to be manually created by the ...
Ewan's user avatar
  • 113
0 votes
0 answers
50 views

Encrypting Kubernetes cluster's admin.conf ($KUBECONFIG) at rest

I have been concerned about leaving /etc/kubernetes/admin.conf (i.e. $KUBECONFIG) unencrypted on disk, for it essentially contains a Kubernetes cluster's root credentials, and an intruder could ...
rookie099's user avatar
  • 141
0 votes
1 answer
334 views

Why is detect-secrets-hook ignoring my audit selections?

detect-secrets-hook in my pre-commit is alerting on secrets that are already marked as safe to be committed in the baseline. I'm running detect-secrets version 1.4.0 on Python 3.11.0 on Windows 11. To ...
Melissa Avery-Weir's user avatar
2 votes
1 answer
663 views

Should I turn off copilot for text files containing secrets?

I use VSCode and have recently started using GitHub Copilot for my projects (programming and devops related). I understand that Copilot will send parts of my text to a remote server to get suggestions ...
cherouvim's user avatar
  • 141
0 votes
1 answer
35 views

How do you securely deploy large number of Kubernetes components in isolation?

Precursor: I am not experienced in the design of large-scale infrastructure deployments for infra applications. The assumptions for the questions: I have read that it is a good practice to host ...
transcend3nt's user avatar
0 votes
1 answer
215 views

How to keep packages updated and keep in pace with security updates

In a project with multiple vms that run various applications from Wordpress to Django and various other things. Is there a way or a tool to keep track of the packages that require updates or have ...
user3224454's user avatar
0 votes
1 answer
745 views

How are containers secured with MACVLAN networks?

Containers cannot be connected both to an internal bridge and to the host network at the same time, according to this question. However, this is what I need; I want a set of containers to be connected ...
vpseg's user avatar
  • 11
0 votes
1 answer
19 views

Is the output of "Test the function" of a Google Cloud Function saved somewhere?

I have returned the database address with username and password as the plain text output of a Cloud Function during testing. The idea was to see how the db URL looks like and where the error could be ...
questionto42's user avatar
1 vote
2 answers
3k views

Where to get OS Hardening Scripts for CIS Hardening Standards?

CIS provides benchmarks for hardening OS on AWS CIS also provides images which meet their own benchmarks above These CIS images are available here - https://www.cisecurity.org/blog/everything-you-need-...
Biju's user avatar
  • 255
4 votes
1 answer
184 views

What are the real world benefits of RDS instance (at rest) encryption?

AWS offers at rest encryption for its RDS instances. I think this sounds nice, and it's something that comes up regularly on security reviews but I'm not sure what the real benefit is. The most likely ...
MrDuk's user avatar
  • 295
1 vote
1 answer
72 views

Common permissions for EC2 usage and VPC Security Groups in enterprise use

Context: Looking to create some software that acts as middleware to a user's AWS account, where the user will provide their cloud credentials, and have the software use their EC2 instances. Question: ...
kwj2104's user avatar
  • 13
1 vote
1 answer
113 views

Strategies for sharing Ansible vaults with root/administrator credentials?

Historically we've been a one man devops team and stored all our passwords in Ansible vaults - including things like domain admin passwords and root account passwords. However we're now growing and ...
Brad's user avatar
  • 111
1 vote
1 answer
1k views

OIDC token invalid when put into kubeconfig

I can connect to the Kubernetes API from a container running inside the cluster with an OIDC token like so: kubectl —token $token get pod I would now like to prepare a kubeconfig such that other ...
rookie099's user avatar
  • 141
6 votes
1 answer
3k views

Terraform: how do you inspect sensitive data?

In a resource of type aws_ecs_task_definition my plan has an line that looks like this: ~ container_definitions = (sensitive) # forces replacement Now in principle this could be doing anything - ...
Carl Patenaude Poulin's user avatar
2 votes
1 answer
66 views

Continuous deployment strategies vs DevSecOps

How do you implement security requirements in CI/CD while taking care of security requirements? What are best practices here? Security requirements may differ, let's assume this simple level of ...
Ta Mu's user avatar
  • 6,772
0 votes
2 answers
616 views

Docker: Let containers communicate to each other but don't expose to internet

I was recently shocked to find out that docker writes its own iptables rules and ignores ufw bindings completely. I had blocked all ports using the ufw deny incoming command and then selectively ...
Chris's user avatar
  • 1
1 vote
1 answer
119 views

AWS Inspector "High Risk" : port open to the internet with IP whitelisting

We use AWS Inspector to identify risks with our AWS assets. Today I received a finding, with a "high" severity. The finding said that the FTP port was open to the internet. However, after ...
Konrad's user avatar
  • 123
3 votes
1 answer
141 views

What are the best practices for sharing production Postgres access with developers?

We're a small SaaS startup (~10 person team; mostly engineers). We use Postgres on AWS and GCP in production. We have signed contracts with some customers that prohibit us from giving full production ...
RainSear's user avatar
  • 131
1 vote
1 answer
120 views

Host credential manager and Docker runners

Imagine you have a GitLab Docker runner which you would like to pass credentials from a credential store. That is the CI/CD variable just designates the credentials profile name. Is there a way to ...
Ta Mu's user avatar
  • 6,772
1 vote
1 answer
226 views

TLS handshake failure

We have an ODBC Driver trying to connect through TLS , but fails. We tested using openssl with the following command and worked fine: openssl s_client -connect xxx.com:31020 the server accepts TLS 1....
Abba's user avatar
  • 121
14 votes
2 answers
3k views

Does `npm audit` add any value when using `dependabot`

Context There are multiple ways to scan projects for vulnerabilities. Dependabot can be configured to check repositories for issues, and automatically submits pull requests to resolve. NPM Audit will ...
JohnLBevan's user avatar
4 votes
1 answer
695 views

How not expose my backend

I'm studying Docker and how to properly publish my containers coding a very simple web application. It has only two containers, backend and frontend. I've published the source code here: https://...
Sinayra's user avatar
  • 43
2 votes
1 answer
78 views

How to protect secrets whilst enabling the ability to amend a pipeline

I'm writing a CI pipeline using GitHub Actions. The pipeline will build a Docker image, which it will then push to our Docker repository (AWS ECR). In order to talk to ECR, we'll need to provide a ...
JohnLBevan's user avatar
2 votes
1 answer
893 views

Is there a way to tell if an Azure Devops Extension is secure to use?

How do I know that an Azure Devops Extension does not do anything really bad? A company that I know of uses Microsoft's Azure Devops platform to manage its software development. Microsoft also ...
Audun Knudsroed's user avatar
1 vote
1 answer
315 views

How do I setup an OpenShift route that will allow both 80 and 443 traffic to my app?

I'd like to setup a route that will pass both 80 and 443 traffic to the same service in OpenShift. When I try to create a second route it errors out. I want this to be in a yaml like would be used ...
Josiah's user avatar
  • 363
2 votes
1 answer
73 views

Company is worried about exposing our PII to Tableau, Can we run Tableau without exposing our data to any 3rd parties?

I'm looking to understand a bit more from the technical side about how Tableau (The company itself) works with the data that everyone is providing them. My company is looking to use Tableau as our ...
user avatar
1 vote
1 answer
89 views

Weird requests filling apache access logs [closed]

I'm running a public apache2 webserver. I'm getting a lot of this kind of requests on my webserver: 91.251.142.16 - - [07/Mar/2020:19:58:09 +0100] "\xe8\x95h\x8d\xf0\x1d\x99Q\xb8~\xb5\xbc\xa7*\x1c\...
user213979's user avatar
4 votes
3 answers
246 views

What is the Prometheus and Grafana ideal setup?

I am just wondering. If I have many environments monitored via Prometheus, what will be the best configuration? The security and efficiency are already important for on-premise installations but ...
gervais.b's user avatar
  • 155
3 votes
2 answers
2k views

How do I expire users credentials for Kubernetes in Azure?

I am looking for information on how to forcefully expire users credentials in Azure Kubernetes Service (AKS). The reason is to better understand Security models and protecting Kubernetes deployments ...
Steven K7FAQ's user avatar
0 votes
2 answers
84 views

How to run Ansible command to update imunify360 settings

How can I use Ansible to run the following CloudLinux Imunify360 commands properly on CloudLinux 7 (similar to CentOS7)? I tried different ways to "escape" the colons in the commands and it doesn't ...
jwalker's user avatar
  • 27
0 votes
1 answer
205 views

Unable to connect to remote service using AWS VPC Peering

I have a question regarding some AWS infra I'm trying to build. Due to legacy constraints, I have a service running in a remote VPC that I need to access, and I have a new service I'm developing in ...
Ertai87's user avatar
  • 141
0 votes
1 answer
1k views

Ansible SSH best practices

What are the best practices to be followed wrt security when it comes to SSH authentication (password less, key based, etc.) when setting up Ansible in a new environment with 1000s of machines? Which ...
Harshdeep Koul's user avatar
1 vote
1 answer
157 views

How to create unique GPG Keys for different environments / projects

After searching and reading various documents it remains unclear to me as to an effective/straightforward manner to create/maintain multiple sets of GPG Keys. I have a project that needs unique GPG ...
Steven K7FAQ's user avatar
1 vote
1 answer
747 views

Assign Directory Read/Write Privileges to Azure Service Principal from the command line?

I am trying to provision a user in Azure Active Directory using Terraform's AzureAD provider. At the top of the azuread_user documentation, it states: NOTE: If you're authenticating using a ...
Richard Slater's user avatar
2 votes
1 answer
124 views

How to verify hashes of Ansible Galaxy dependencies?

From a security perspective, I don't like the idea of relying only on Git tags, as they could be moved later. Unfortunately, I'm not aware of an official solution to enforce checks. This is the best ...
Philipp Claßen's user avatar
8 votes
1 answer
7k views

What are the best practices for anti-virus / anti-malware when using containers?

One of the SOC 2 controls is apparently around ensuring antivirus/anti-spam/anti-malware is running on production servers. I've been googling to see if there are any recommendation/best practices for ...
Roly's user avatar
  • 183
3 votes
1 answer
247 views

Provide customers with access to Azure Container Registry

I'm using Azure Container Registry for private Docker images. I want to let around 500 customers pull images and use the Docker V2 HTTP API to read metadata. Service Principals are one way to go ...
Cocowalla's user avatar
  • 153
1 vote
1 answer
265 views

Mitigating Docker Compliance Issues - Can I put everything in the `daemon.json`?

I am going through compliance tasks to harden our Docker setup and I am seeing many things like Favor using docker run with docker run --pids-limit 100 to prevent forkbombs Favor using docker run ...
David West's user avatar
  • 1,463
0 votes
1 answer
238 views

Securely saving AZURE_STORAGE_KEY and storage account name in Linux systems

The Azure CLI official documentation states that environmental variables can be used inside bash scripts to store AZURE_STORAGE_ACCOUNT and AZURE_STORAGE_KEY, like this: Compared to AWS CLI this ...
W.M.'s user avatar
  • 187
2 votes
1 answer
88 views

Restrict user logon in Jenkins

We have been using groovy script to read the build queue state: def builder = new groovy.json.JsonBuilder() builder { queueItems(Jenkins.instance.queue.items.collect { obj -> [ id:...
Skyblade's user avatar
  • 123
1 vote
1 answer
358 views

Are using TestContainers safe for integration tests?

I have a discussion with our DevOps about using Testcontainers for integration tests. It's a tool to bring up throw-away containers for testing. The testcontainers need a environment variable ...
Edgar Asatryan's user avatar
2 votes
1 answer
508 views

Azure Security Center with Ubuntu 19

Has anyone successfully gotten the Azure Security Center agent to work with Ubuntu 19? My omsconfig.log is full of messages like This event indicates that failure happens when LCM is trying to get ...
Gaius's user avatar
  • 1,076
3 votes
1 answer
4k views

Accessing TPM from inside a Docker Container

I want to implement Vault as part of the DevOps build pipeline to store all the secrets like passwords and certificates. I understand that Vault keeps the data encrypted but I have been asked to look ...
7_R3X's user avatar
  • 145