Tag

Definition

A tag is a metadata label assigned to resources in computing environments, such as cloud infrastructure, containers, or code repositories. Tags help organize, manage, and identify resources by associating them with key-value pairs. They are crucial for resource management, cost tracking, and implementing security policies by enabling automated processes to filter and act on tagged resources.

Secure Settings Example

# Kubernetes Pod with secure tagging
apiVersion: v1
kind: Pod
metadata:
  name: secure-app
  labels:
    environment: production
    compliance: pci-dss
spec:
  containers:
  - name: app-container
    image: secure-app-image:latest

Insecure Settings Example

# Kubernetes Pod with insecure tagging
apiVersion: v1
kind: Pod
metadata:
  name: insecure-app
  labels:
    environment: dev
    # Missing compliance tag, leading to potential policy violations
spec:
  containers:
  - name: app-container
    image: insecure-app-image:latest