Questions tagged [security]
For questions related to IT Security, Information Security or DevSecOps.
104
questions
-1
votes
0
answers
13
views
Security Events from onprem Windows machine in Log Analytics workspace/Sentinel
Environment
Azure subscription with Log Analytics workspace and Sentinel enabled
One Windows VM running in Azure
One VM with Windows 10 Pro running in on-prem environemnt
Both VM's are connected as ...
0
votes
0
answers
14
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 ...
1
vote
1
answer
29
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 ...
0
votes
0
answers
27
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 ...
0
votes
0
answers
143
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 ...
1
vote
0
answers
30
views
Opentelemetry-operator running as root on Openshift/Kubernetes
I need this opentelemetry-operator to run as non-root on the /,
https://github.com/open-telemetry/opentelemetry-operator/blob/main/autoinstrumentation/java/Dockerfile
I need to change the permission ...
2
votes
1
answer
362
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 ...
0
votes
0
answers
59
views
Gitlab pipeline leak other project sources
At work we are exploring the capabilities of GitLab CI/CD in a private instance and we are concerned with one special case: suppose we have a project with a .gitlab-ci.yml file. Is it right that any ...
0
votes
0
answers
284
views
What are some secure ways to run chown and chmod in a Gitlab Deployment script?
I'm working on a deployment script using GitLab that deploys some code to a Linux based server. I have a stage of deployment that needs to lock down permissions. What's the best approach for ...
0
votes
0
answers
184
views
kubernetes traefik ingress rule with letsencrypt certResolver and mTLS with selfsigned CA certificate
I cannot get mTLS for an traefik ingressroute on my kubernetes cluster. I am using a certresolver for letsencrypt TLS certificate - and it works fine, but I would like to secure certain domains and ...
0
votes
1
answer
32
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 ...
0
votes
0
answers
20
views
How do you ensure users do not bypass Kubernetes security and interact with the Container runtimes directly?
You could have Docker and Kubernetes installed on the same host and allow the user to access both binaries. A malicious user can potentially bypass Kubernetes security (e.g. PodSecurityPolicies), by ...
0
votes
0
answers
21
views
How do you isolate Kubernetes components in a network?
When I install Kubernetes on a host, all the core components (etcd, Kube manager, scheduler) are all installed on a host by default.
Is there a use case or need to deploy Kubernetes components ...
0
votes
1
answer
179
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 ...
0
votes
1
answer
497
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 ...
1
vote
0
answers
30
views
Private certificate authority and container images
We have a internal domain name, let's say "mycompany.net" with a private CA which delivers all our internal application HTTPS certificates for this domain like "myapp.mycompany.net"...
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 ...
1
vote
2
answers
2k
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-...
4
votes
1
answer
147
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 ...
1
vote
1
answer
63
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: ...
1
vote
1
answer
87
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 ...
1
vote
0
answers
26
views
HSM into cloud for windows authenticode signing - Cost benefits vs Security risks?
Our product has 4 apps (Windows, macOS, iOS & Android) with a partially combined build pipeline. 90% is run in the cloud (Android, iOS & macOS are built entirely on cloud infrastructure) but ...
1
vote
1
answer
868
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 ...
5
votes
1
answer
2k
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 - ...
2
votes
1
answer
64
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 ...
0
votes
2
answers
457
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 ...
1
vote
1
answer
99
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 ...
2
votes
1
answer
109
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 ...
1
vote
1
answer
98
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 ...
1
vote
1
answer
166
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....
13
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 ...
4
votes
1
answer
549
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://...
2
votes
1
answer
74
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 ...
1
vote
1
answer
692
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 ...
1
vote
1
answer
224
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 ...
2
votes
1
answer
49
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 ...
1
vote
1
answer
78
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\...
4
votes
3
answers
222
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 ...
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 ...
0
votes
2
answers
80
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 ...
0
votes
1
answer
107
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 ...
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 ...
1
vote
1
answer
122
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 ...
1
vote
1
answer
612
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 ...
2
votes
1
answer
104
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 ...
8
votes
1
answer
6k
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 ...
3
votes
1
answer
175
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 ...
1
vote
1
answer
250
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 ...
1
vote
0
answers
89
views
Per machine credentials for privileges escalation using AWX [duplicate]
I have an inventory with a lot of hosts in it using the same credentials, but one host needs a different approach. For the ssh connection a different user is used, after the connection is established, ...
0
votes
1
answer
202
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 ...