- Restore ParseJSON operations to add Kubernetes metadata to log body
- Add kubernetes.pod, kubernetes.namespace, kubernetes.pod_ip, etc. to JSON
- This will enrich the JSON logs with Kubernetes context information
- Maintain original JSON structure while adding K8s metadata
- Remove json_parser operator to keep logs in original JSON format
- This should maintain the structured JSON content in Grafana
- Logs will be sent as raw JSON without parsing into attributes
- Change start_at from end to beginning
- This should allow OpenTelemetry Collector to read existing log content
- May cause duplicate logs but should make logs visible in Grafana
- Remove move operator from json_parser configuration
- Keep only json_parser with parse_to: attributes
- This should allow logs to be processed correctly
- Add parse_to: attributes to json_parser operator
- Add move operator to move text content to body
- Use application instead of service_name for consistency
- Use global.environment for environment setting
- Add global.environment to values files for both alpha and prod
- This should fix the unknown_service classification issue
- Remove complex where clause that may cause syntax errors
- Set environment to alpha by default for all logs
- This should fix the transform processor execution issue
- Add service.name resource attribute in addition to service_name
- This should prevent logs from being classified as unknown_service in Loki
- Keep both attributes for compatibility
- Remove complex JSON parsing operations that may cause issues
- Keep only essential resource attribute mapping
- This should help logs be properly processed and sent to Loki
- Changed the key reference from 'key' to 'secretKey' in freeleapssecret.yaml to improve clarity and consistency in secret management.
- This adjustment aligns with the recent updates to the secret management structure within the authentication module.
Signed-off-by: zhenyus <zhenyus@mathmast.com>
- Introduced a variable for the target secret name to improve readability and maintainability of the secret injection logic.
- This change enhances the clarity of the deployment configuration for the authentication module.
Signed-off-by: zhenyus <zhenyus@mathmast.com>
- Changed references from .Values.secrets to .Values.authentication.secrets in deployment.yaml and freeleapssecret.yaml to align with the new secret management structure.
- This update enhances the clarity and organization of secret management within the authentication module.
Signed-off-by: zhenyus <zhenyus@mathmast.com>
- Added a secrets section in values.alpha.yaml to reference JWT secret key and MongoDB URI from a FreeleapsSecretStore.
- Updated deployment.yaml to inject these secrets as environment variables, enhancing security and configuration management.
Signed-off-by: zhenyus <zhenyus@mathmast.com>
- Changed the build process to include a web UI build stage using Node.js.
- Updated Go build stage to copy web UI files to the correct location.
- Removed the main.go file as it is no longer needed.
- Added SQLite database configuration to example config.
- Updated dependencies in go.mod and go.sum, including new packages for JWT and SQLite.
- Modified .gitignore to include new database and configuration files.
Signed-off-by: zhenyus <zhenyus@mathmast.com>
- Introduced log ingestion configuration in values files for centralStorage, content, notification, and payment services.
- Updated deployment templates to conditionally include OpenTelemetry annotations and volume mounts based on log ingestion settings.
- Added OpenTelemetry RBAC configurations for service accounts and cluster roles to enable logging.
- Implemented OpenTelemetry collector configuration to process logs and export them to Loki.
- Ensured compatibility with existing Helm chart structure and maintained backward compatibility for services without log ingestion enabled.
Signed-off-by: zhenyus <zhenyus@mathmast.com>