-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add public-samples/mint-mobile-app-ncuwqw/infrastructure/kubernetes/b…
…ase/service-accounts.yaml
- Loading branch information
1 parent
7981d71
commit 859362e
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Human Tasks: | ||
# 1. Configure registry-credentials secret in backend and web namespaces | ||
# 2. Review and configure RBAC roles and bindings for each service account | ||
# 3. Verify container registry access and authentication | ||
# 4. Set up monitoring service permissions and access controls | ||
# 5. Configure audit logging for service account token usage | ||
|
||
# Kubernetes version: v1.24+ | ||
|
||
--- | ||
# Backend service account definition | ||
# Addresses requirements: | ||
# - Security Controls (6.3): Implements service account-based access control | ||
# - Infrastructure Security (2.5.2): Provides secure service-to-service communication | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: backend-service | ||
namespace: mint-replica-backend | ||
labels: | ||
app: mint-replica-lite | ||
component: backend | ||
environment: ${ENV} | ||
annotations: | ||
kubernetes.io/description: "Service account for backend services with container registry access" | ||
kubernetes.io/enforce-mountable-secrets: "true" | ||
imagePullSecrets: | ||
- name: registry-credentials | ||
automountServiceAccountToken: true | ||
|
||
--- | ||
# Web service account definition | ||
# Addresses requirements: | ||
# - Authorization Matrix (6.1): Defines service identities with varying permission levels | ||
# - Infrastructure Security (2.5.2): Enables automated token mounting | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: web-service | ||
namespace: mint-replica-web | ||
labels: | ||
app: mint-replica-lite | ||
component: web | ||
environment: ${ENV} | ||
annotations: | ||
kubernetes.io/description: "Service account for web applications with container registry access" | ||
kubernetes.io/enforce-mountable-secrets: "true" | ||
imagePullSecrets: | ||
- name: registry-credentials | ||
automountServiceAccountToken: true | ||
|
||
--- | ||
# Monitoring service account definition | ||
# Addresses requirements: | ||
# - Security Controls (6.3): Implements restricted privileges for monitoring | ||
# - Authorization Matrix (6.1): Ensures proper isolation and access control | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: monitoring-service | ||
namespace: mint-replica-monitoring | ||
labels: | ||
app: mint-replica-lite | ||
component: monitoring | ||
environment: ${ENV} | ||
annotations: | ||
kubernetes.io/description: "Service account for monitoring services with restricted privileges" | ||
kubernetes.io/enforce-mountable-secrets: "true" | ||
automountServiceAccountToken: true |