feat: Add RustFS artifact object store and migration tool
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Docs CI / lint-and-preview (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Docs CI / lint-and-preview (push) Has been cancelled
				
			- Implemented RustFsArtifactObjectStore for managing artifacts in RustFS. - Added unit tests for RustFsArtifactObjectStore functionality. - Created a RustFS migrator tool to transfer objects from S3 to RustFS. - Introduced policy preview and report models for API integration. - Added fixtures and tests for policy preview and report functionality. - Included necessary metadata and scripts for cache_pkg package.
This commit is contained in:
		| @@ -7,11 +7,12 @@ networks: | ||||
|   stellaops: | ||||
|     driver: bridge | ||||
|  | ||||
| volumes: | ||||
|   mongo-data: | ||||
|   minio-data: | ||||
|   concelier-jobs: | ||||
|   nats-data: | ||||
| volumes: | ||||
|   mongo-data: | ||||
|   minio-data: | ||||
|   rustfs-data: | ||||
|   concelier-jobs: | ||||
|   nats-data: | ||||
|  | ||||
| services: | ||||
|   mongo: | ||||
| @@ -27,9 +28,9 @@ services: | ||||
|       - stellaops | ||||
|     labels: *release-labels | ||||
|  | ||||
|   minio: | ||||
|     image: docker.io/minio/minio@sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e | ||||
|     command: ["server", "/data", "--console-address", ":9001"] | ||||
|   minio: | ||||
|     image: docker.io/minio/minio@sha256:14cea493d9a34af32f524e538b8346cf79f3321eff8e708c1e2960462bd8936e | ||||
|     command: ["server", "/data", "--console-address", ":9001"] | ||||
|     restart: unless-stopped | ||||
|     environment: | ||||
|       MINIO_ROOT_USER: "${MINIO_ROOT_USER}" | ||||
| @@ -38,9 +39,24 @@ services: | ||||
|       - minio-data:/data | ||||
|     ports: | ||||
|       - "${MINIO_CONSOLE_PORT:-9001}:9001" | ||||
|     networks: | ||||
|       - stellaops | ||||
|     labels: *release-labels | ||||
|     networks: | ||||
|       - stellaops | ||||
|     labels: *release-labels | ||||
|  | ||||
|   rustfs: | ||||
|     image: registry.stella-ops.org/stellaops/rustfs:2025.10.0-edge | ||||
|     command: ["serve", "--listen", "0.0.0.0:8080", "--root", "/data"] | ||||
|     restart: unless-stopped | ||||
|     environment: | ||||
|       RUSTFS__LOG__LEVEL: info | ||||
|       RUSTFS__STORAGE__PATH: /data | ||||
|     volumes: | ||||
|       - rustfs-data:/data | ||||
|     ports: | ||||
|       - "${RUSTFS_HTTP_PORT:-8080}:8080" | ||||
|     networks: | ||||
|       - stellaops | ||||
|     labels: *release-labels | ||||
|  | ||||
|   nats: | ||||
|     image: docker.io/library/nats@sha256:c82559e4476289481a8a5196e675ebfe67eea81d95e5161e3e78eccfe766608e | ||||
| @@ -125,18 +141,19 @@ services: | ||||
|       - stellaops | ||||
|     labels: *release-labels | ||||
|  | ||||
|   scanner-web: | ||||
|   scanner-web: | ||||
|     image: registry.stella-ops.org/stellaops/scanner-web@sha256:e0dfdb087e330585a5953029fb4757f5abdf7610820a085bd61b457dbead9a11 | ||||
|     restart: unless-stopped | ||||
|     depends_on: | ||||
|       - concelier | ||||
|       - minio | ||||
|       - nats | ||||
|     environment: | ||||
|       SCANNER__STORAGE__MONGO__CONNECTIONSTRING: "mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongo:27017" | ||||
|       SCANNER__STORAGE__S3__ENDPOINT: "http://minio:9000" | ||||
|       SCANNER__STORAGE__S3__ACCESSKEYID: "${MINIO_ROOT_USER}" | ||||
|       SCANNER__STORAGE__S3__SECRETACCESSKEY: "${MINIO_ROOT_PASSWORD}" | ||||
|     depends_on: | ||||
|       - concelier | ||||
|       - rustfs | ||||
|       - nats | ||||
|     environment: | ||||
|       SCANNER__STORAGE__MONGO__CONNECTIONSTRING: "mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongo:27017" | ||||
|       SCANNER__ARTIFACTSTORE__DRIVER: "rustfs" | ||||
|       SCANNER__ARTIFACTSTORE__ENDPOINT: "http://rustfs:8080/api/v1" | ||||
|       SCANNER__ARTIFACTSTORE__BUCKET: "scanner-artifacts" | ||||
|       SCANNER__ARTIFACTSTORE__TIMEOUTSECONDS: "30" | ||||
|       SCANNER__QUEUE__BROKER: "${SCANNER_QUEUE_BROKER}" | ||||
|       SCANNER__EVENTS__ENABLED: "${SCANNER_EVENTS_ENABLED:-false}" | ||||
|       SCANNER__EVENTS__DRIVER: "${SCANNER_EVENTS_DRIVER:-redis}" | ||||
| @@ -150,18 +167,20 @@ services: | ||||
|       - stellaops | ||||
|     labels: *release-labels | ||||
|  | ||||
|   scanner-worker: | ||||
|   scanner-worker: | ||||
|     image: registry.stella-ops.org/stellaops/scanner-worker@sha256:92dda42f6f64b2d9522104a5c9ffb61d37b34dd193132b68457a259748008f37 | ||||
|     restart: unless-stopped | ||||
|     depends_on: | ||||
|       - scanner-web | ||||
|       - nats | ||||
|     environment: | ||||
|       SCANNER__STORAGE__MONGO__CONNECTIONSTRING: "mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongo:27017" | ||||
|       SCANNER__STORAGE__S3__ENDPOINT: "http://minio:9000" | ||||
|       SCANNER__STORAGE__S3__ACCESSKEYID: "${MINIO_ROOT_USER}" | ||||
|       SCANNER__STORAGE__S3__SECRETACCESSKEY: "${MINIO_ROOT_PASSWORD}" | ||||
|       SCANNER__QUEUE__BROKER: "${SCANNER_QUEUE_BROKER}" | ||||
|     depends_on: | ||||
|       - scanner-web | ||||
|       - rustfs | ||||
|       - nats | ||||
|     environment: | ||||
|       SCANNER__STORAGE__MONGO__CONNECTIONSTRING: "mongodb://${MONGO_INITDB_ROOT_USERNAME}:${MONGO_INITDB_ROOT_PASSWORD}@mongo:27017" | ||||
|       SCANNER__ARTIFACTSTORE__DRIVER: "rustfs" | ||||
|       SCANNER__ARTIFACTSTORE__ENDPOINT: "http://rustfs:8080/api/v1" | ||||
|       SCANNER__ARTIFACTSTORE__BUCKET: "scanner-artifacts" | ||||
|       SCANNER__ARTIFACTSTORE__TIMEOUTSECONDS: "30" | ||||
|       SCANNER__QUEUE__BROKER: "${SCANNER_QUEUE_BROKER}" | ||||
|     networks: | ||||
|       - stellaops | ||||
|     labels: *release-labels | ||||
|   | ||||
		Reference in New Issue
	
	Block a user