Commit graph

333 commits

Author SHA1 Message Date
Ashwin Kumar Sivakumar
1c9b4848a9 feat: Add Dockerfiles for jobs/leads services and build scripts
Some checks failed
build-all / build-users (push) Failing after 1s
build-all / build-cron (push) Failing after 2s
build-gateway / build (push) Failing after 4s
build-services / build-gateway (push) Failing after 3s
build-services / build-users (push) Failing after 5s
build-services / build-jobs (push) Failing after 3s
build-and-push / detect-changes (push) Successful in 8s
build-services / build-cron (push) Failing after 2s
build-services / build-leads (push) Failing after 4s
build-all-services / build (push) Failing after 3s
build-and-push / build (cron) (push) Failing after 5s
build-and-push / build (customers) (push) Failing after 3s
build-and-push / build (employees) (push) Failing after 3s
build-and-push / build (developers) (push) Failing after 3s
build-and-push / build (fitness-trainers) (push) Failing after 4s
build-and-push / build (gateway) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 3s
build-and-push / build (job-seekers) (push) Failing after 3s
build-and-push / build (jobs) (push) Failing after 2s
build-and-push / build (leads) (push) Failing after 2s
build-and-push / build (makeup-artists) (push) Failing after 2s
build-and-push / build (payments) (push) Failing after 2s
build-and-push / build (photographers) (push) Failing after 3s
build-and-push / build (social-media-managers) (push) Failing after 3s
build-and-push / build (tutors) (push) Failing after 3s
build-and-push / build (ugc-content-creators) (push) Failing after 2s
build-and-push / build (users) (push) Failing after 2s
build-and-push / build (video-editors) (push) Failing after 2s
build-and-push / build (companies) (push) Failing after 10m52s
build-and-push / build (catering-services) (push) Successful in 11m29s
Add build-images.yaml for Forgejo CI
tmp build.yaml
Add Dockerfiles for jobs and leads services
Add build-all.sh script for batch building
2026-06-13 18:31:34 +05:30
Ashwin Kumar Sivakumar
189f4bca60 ci: test single job with ubuntu-latest
Some checks failed
build-all / build-cron (push) Failing after 1s
build-and-push / detect-changes (push) Successful in 4s
build-all / build-users (push) Failing after 1s
build-gateway / build (push) Failing after 1s
build-services / build-gateway (push) Failing after 2s
build-services / build-users (push) Failing after 3s
build-services / build-jobs (push) Failing after 3s
build-services / build-cron (push) Failing after 2s
build-services / build-leads (push) Failing after 4s
build-all-services / build (push) Failing after 2s
build-and-push / build (catering-services) (push) Failing after 2s
build-and-push / build (companies) (push) Failing after 4s
build-and-push / build (cron) (push) Failing after 3s
build-and-push / build (customers) (push) Failing after 4s
build-and-push / build (developers) (push) Failing after 3s
build-and-push / build (fitness-trainers) (push) Failing after 3s
build-and-push / build (employees) (push) Failing after 4s
build-and-push / build (gateway) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 3s
build-and-push / build (job-seekers) (push) Failing after 3s
build-and-push / build (jobs) (push) Failing after 3s
build-and-push / build (leads) (push) Failing after 3s
build-and-push / build (payments) (push) Failing after 3s
build-and-push / build (makeup-artists) (push) Failing after 4s
build-and-push / build (photographers) (push) Failing after 2s
build-and-push / build (social-media-managers) (push) Failing after 3s
build-and-push / build (tutors) (push) Failing after 2s
build-and-push / build (ugc-content-creators) (push) Failing after 3s
build-and-push / build (users) (push) Failing after 2s
build-and-push / build (video-editors) (push) Failing after 3s
2026-06-13 01:44:07 +05:30
Ashwin Kumar Sivakumar
1956acdcf3 ci: minimal workflow without external actions
Some checks failed
build-all / build-users (push) Failing after 1s
build-services / build-gateway (push) Failing after 2s
build-services / build-users (push) Failing after 4s
build-services / build-jobs (push) Failing after 2s
build-services / build-leads (push) Failing after 4s
build-all / build-gateway (push) Failing after 2s
build-all / build-cron (push) Failing after 2s
build-services / build-cron (push) Failing after 2s
build-all-services / build (push) Failing after 2s
build-and-push / detect-changes (push) Successful in 4s
build-and-push / build (catering-services) (push) Failing after 2s
build-and-push / build (companies) (push) Failing after 2s
build-and-push / build (cron) (push) Failing after 2s
build-and-push / build (customers) (push) Failing after 2s
build-and-push / build (developers) (push) Failing after 2s
build-and-push / build (employees) (push) Failing after 2s
build-and-push / build (fitness-trainers) (push) Failing after 3s
build-and-push / build (gateway) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 3s
build-and-push / build (job-seekers) (push) Failing after 3s
build-and-push / build (jobs) (push) Failing after 2s
build-and-push / build (leads) (push) Failing after 2s
build-and-push / build (makeup-artists) (push) Failing after 3s
build-and-push / build (payments) (push) Failing after 3s
build-and-push / build (photographers) (push) Failing after 3s
build-and-push / build (social-media-managers) (push) Failing after 3s
build-and-push / build (tutors) (push) Failing after 2s
build-and-push / build (ugc-content-creators) (push) Failing after 2s
build-and-push / build (users) (push) Failing after 2s
build-and-push / build (video-editors) (push) Failing after 2s
2026-06-13 01:41:32 +05:30
Ashwin Kumar Sivakumar
ec41f6dad2 ci: simpler workflow with self-hosted runners
Some checks failed
build-services / build-jobs (push) Failing after 2s
build-services / build-leads (push) Failing after 3s
build-services / build-cron (push) Failing after 3s
build-services / build-users (push) Failing after 2s
build-services / build-gateway (push) Failing after 4s
build-and-push / detect-changes (push) Successful in 2s
build-all-services / build (push) Failing after 3s
build-and-push / build (catering-services) (push) Failing after 2s
build-and-push / build (companies) (push) Failing after 4s
build-and-push / build (cron) (push) Failing after 3s
build-and-push / build (customers) (push) Failing after 4s
build-and-push / build (developers) (push) Failing after 3s
build-and-push / build (fitness-trainers) (push) Failing after 3s
build-and-push / build (employees) (push) Failing after 4s
build-and-push / build (gateway) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 4s
build-and-push / build (job-seekers) (push) Failing after 2s
build-and-push / build (jobs) (push) Failing after 4s
build-and-push / build (leads) (push) Failing after 2s
build-and-push / build (payments) (push) Failing after 2s
build-and-push / build (makeup-artists) (push) Failing after 4s
build-and-push / build (photographers) (push) Failing after 2s
build-and-push / build (social-media-managers) (push) Failing after 4s
build-and-push / build (tutors) (push) Failing after 2s
build-and-push / build (users) (push) Failing after 2s
build-and-push / build (ugc-content-creators) (push) Failing after 4s
build-and-push / build (video-editors) (push) Failing after 2s
2026-06-13 01:38:16 +05:30
Ashwin Kumar Sivakumar
f67f6c2514 trigger build: test with registry auth
Some checks failed
build-and-push / build (catering-services) (push) Failing after 2s
build-and-push / detect-changes (push) Successful in 18s
build-and-push / build (companies) (push) Failing after 3s
build-all-services / build (push) Failing after 29s
build-and-push / build (cron) (push) Failing after 2s
build-and-push / build (developers) (push) Failing after 2s
build-and-push / build (customers) (push) Failing after 3s
build-and-push / build (employees) (push) Failing after 2s
build-and-push / build (fitness-trainers) (push) Failing after 4s
build-and-push / build (gateway) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 4s
build-and-push / build (job-seekers) (push) Failing after 3s
build-and-push / build (leads) (push) Failing after 2s
build-and-push / build (jobs) (push) Failing after 4s
build-and-push / build (makeup-artists) (push) Failing after 2s
build-and-push / build (payments) (push) Failing after 3s
build-and-push / build (photographers) (push) Failing after 3s
build-and-push / build (social-media-managers) (push) Failing after 4s
build-and-push / build (tutors) (push) Failing after 3s
build-and-push / build (ugc-content-creators) (push) Failing after 3s
build-and-push / build (users) (push) Failing after 4s
build-and-push / build (video-editors) (push) Failing after 3s
2026-06-13 01:36:34 +05:30
Ashwin Kumar Sivakumar
051a980f14 ci: add simple build workflow with self-hosted runners
Some checks failed
build-all-services / build (push) Failing after 2s
build-and-push / detect-changes (push) Successful in 4s
build-and-push / build (companies) (push) Failing after 3s
build-and-push / build (catering-services) (push) Failing after 4s
build-and-push / build (cron) (push) Failing after 3s
build-and-push / build (customers) (push) Failing after 3s
build-and-push / build (developers) (push) Failing after 3s
build-and-push / build (employees) (push) Failing after 3s
build-and-push / build (fitness-trainers) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 3s
build-and-push / build (gateway) (push) Failing after 4s
build-and-push / build (job-seekers) (push) Failing after 3s
build-and-push / build (jobs) (push) Failing after 4s
build-and-push / build (leads) (push) Failing after 3s
build-and-push / build (makeup-artists) (push) Failing after 3s
build-and-push / build (payments) (push) Failing after 3s
build-and-push / build (social-media-managers) (push) Failing after 3s
build-and-push / build (photographers) (push) Failing after 3s
build-and-push / build (tutors) (push) Failing after 3s
build-and-push / build (ugc-content-creators) (push) Failing after 3s
build-and-push / build (users) (push) Failing after 2s
build-and-push / build (video-editors) (push) Failing after 3s
2026-06-13 01:29:21 +05:30
Ashwin Kumar Sivakumar
0d35bf5649 trigger build: rebuild all services
Some checks failed
build-and-push / detect-changes (push) Successful in 2s
build-and-push / build (catering-services) (push) Failing after 2s
build-and-push / build (companies) (push) Failing after 4s
build-and-push / build (cron) (push) Failing after 3s
build-and-push / build (developers) (push) Failing after 3s
build-and-push / build (customers) (push) Failing after 4s
build-and-push / build (employees) (push) Failing after 3s
build-and-push / build (fitness-trainers) (push) Failing after 4s
build-and-push / build (gateway) (push) Failing after 3s
build-and-push / build (job-seekers) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 4s
build-and-push / build (jobs) (push) Failing after 2s
build-and-push / build (leads) (push) Failing after 4s
build-and-push / build (makeup-artists) (push) Failing after 3s
build-and-push / build (payments) (push) Failing after 3s
build-and-push / build (photographers) (push) Failing after 3s
build-and-push / build (tutors) (push) Failing after 3s
build-and-push / build (social-media-managers) (push) Failing after 4s
build-and-push / build (ugc-content-creators) (push) Failing after 3s
build-and-push / build (users) (push) Failing after 4s
build-and-push / build (video-editors) (push) Failing after 3s
2026-06-13 01:23:22 +05:30
Ashwin Kumar Sivakumar
123a157e04 ci: add GitHub Actions workflow to build and push images
Build all services and push to registry.nxtgauge.com
Using Dockerfile.simple for fast builds
2026-06-13 01:22:31 +05:30
Ashwin Kumar Sivakumar
d0b10eac8f trigger forgejo pipeline: rebuild all services
Some checks failed
build-and-push / detect-changes (push) Successful in 4s
build-and-push / build (catering-services) (push) Failing after 3s
build-and-push / build (companies) (push) Failing after 3s
build-and-push / build (cron) (push) Failing after 2s
build-and-push / build (customers) (push) Failing after 4s
build-and-push / build (developers) (push) Failing after 2s
build-and-push / build (fitness-trainers) (push) Failing after 3s
build-and-push / build (employees) (push) Failing after 4s
build-and-push / build (gateway) (push) Failing after 3s
build-and-push / build (graphic-designers) (push) Failing after 3s
build-and-push / build (job-seekers) (push) Failing after 3s
build-and-push / build (jobs) (push) Failing after 3s
build-and-push / build (leads) (push) Failing after 3s
build-and-push / build (makeup-artists) (push) Failing after 3s
build-and-push / build (payments) (push) Failing after 3s
build-and-push / build (social-media-managers) (push) Failing after 3s
build-and-push / build (photographers) (push) Failing after 4s
build-and-push / build (tutors) (push) Failing after 3s
build-and-push / build (ugc-content-creators) (push) Failing after 3s
build-and-push / build (users) (push) Failing after 3s
build-and-push / build (video-editors) (push) Failing after 4s
build-and-push / cleanup-after-build (push) Failing after 0s
Retention script was too aggressive and deleted most images.
Increasing keep count from 2 to 10 SHA tags.
2026-06-12 23:55:01 +05:30
Ashwin Kumar Sivakumar
418da25d37 feat: auto-approve dummy company accounts 2026-06-12 06:02:20 +05:30
Ashwin Kumar Sivakumar
b2c93f4e33 feat: auto-verify demo accounts for payment gateway integration
- Auto-verifies emails for accounts ending with @demo.com
- Auto-approves COMPANY role for demo accounts
- Skips email verification and OTP for demo accounts
- Auto-approves profile verification for demo accounts
- Allows login without email verification for demo accounts

This enables payment gateway companies to login directly and view packages.
2026-06-12 05:51:19 +05:30
Ashwin Kumar Sivakumar
0bda2b2f10 remove: delete high-performance-latest tag from builds - use SHA tags only 2026-06-12 04:40:36 +05:30
Ashwin Kumar Sivakumar
8adc84699e fix: keep only 2 SHA tags (current + 1 previous) to save disk space 2026-06-12 04:12:15 +05:30
Ashwin Kumar Sivakumar
758f0699ff fix: move image cleanup to post-build job after all builds complete 2026-06-12 04:10:52 +05:30
Ashwin Kumar Sivakumar
d0b768d602 trigger: force build all services with high-performance-latest tag 2026-06-12 03:45:06 +05:30
Ashwin Kumar Sivakumar
30346b02d1 fix: remove push preflight from forgejo mirror sync 2026-06-11 19:29:41 +05:30
Ashwin Kumar Sivakumar
30df37b127 fix: trigger forgejo mirror sync via api 2026-06-11 19:14:46 +05:30
Ashwin Kumar Sivakumar
e428fe268c fix: use basic auth for forgejo sync 2026-06-11 18:56:39 +05:30
Ashwin Kumar Sivakumar
d79aa50c77 fix: use existing forgejo mirror secrets 2026-06-11 18:19:10 +05:30
Ashwin Kumar Sivakumar
fc772c2acb fix: point forgejo sync to ashwin namespace 2026-06-11 18:00:03 +05:30
Ashwin Kumar Sivakumar
1b1d98ebee chore: migrate ci naming to forgejo 2026-06-11 17:17:42 +05:30
Ashwin Kumar Sivakumar
c7fe1b7ad3 chore: trigger rebuild all 2026-06-11 02:52:14 +05:30
Tracewebstudio Dev
319b384f0a fix(session1): customer list_requests path arg, external-role by-key endpoint, RuntimeRoleDetail type 2026-06-10 16:19:46 +02:00
Tracewebstudio Dev
2c6d102205 fix(e2e): 14 bug fixes across users, leads, gateway, KB, and reviews
DB:
- Add niche_tags column to ugc_content_creator_profiles (was blocking UGC service)
- Add turnaround_days and fix user_role_profile_id NOT NULL for UGC
- leads/lead_requests tables (already created in session 1)

Code:
- Add UGC_CONTENT_CREATOR to is_professional_role() to auto-create user_role_profiles
- Fix onboarding INSERT to include user_id for photographer_profiles
- Fix send_lead_request_ai to use correct customer_user_id (was self-notifying)
- Add PATCH /api/leads/:id support + mount leads at /api/* for gateway compatibility
- Fix admin_list_cases query (WHERE was using wrong params)
- Fix admin_get_case query (was using list query instead of fetch-by-id)
- Add GET /api/me in profile.rs (moved from onboarding)
- Add KB articles by ID route /api/kb/articles/id/{id}
- Rewrite reviews handlers to match actual reviews table schema
- Add public reviews router GET /api/reviews

Gateway:
- Add /api/reviews route to users service
2026-06-10 16:17:10 +02:00
Tracewebstudio Dev
52e30a1b4b fix payments runtime and jwt backend 2026-06-09 22:52:30 +02:00
Ashwin Kumar Sivakumar
d48983ee21 feat(ai): Phase 4 - multilingual, voice, A/B testing, analytics (with stubs) 2026-06-08 06:41:10 +05:30
Ashwin Kumar Sivakumar
088e467e58 feat(ai): Phase 3 - RAG, streaming, rate limiting, feedback 2026-06-08 06:15:58 +05:30
Ashwin Kumar Sivakumar
cc11657236 feat(ai): Phase 2 - functional endpoints with personas and pillars 2026-06-08 05:50:17 +05:30
Ashwin Kumar Sivakumar
3e97e7a201 force build: rebuild users with Ask Ash Phase 1 2026-06-07 22:43:01 +05:30
Ashwin Kumar Sivakumar
8112142b75 feat(ai): add Ask Ash Phase 1 - strict keyword intent classification + LLM Guard
- Add classify_strict_keywords for fast-path intent detection (8 categories)
- Add llm_guard_check for prompt injection/abuse filtering (3 layers)
- Wire both into ai_chat_message
- Add 14 unit tests (30 tests pass)

trigger gitea pipeline
2026-06-07 22:39:03 +05:30
Ashwin Kumar Sivakumar
c262e89e8f feat(gateway): add security headers middleware
Add security headers to all gateway responses:
- X-Frame-Options: DENY
- X-Content-Type-Options: nosniff
- Strict-Transport-Security: max-age=31536000; includeSubDomains
- Referrer-Policy: strict-origin-when-cross-origin
- Content-Security-Policy: default-src 'self'

Uses tower_http::set_header::SetResponseHeaderLayer applied globally.
Closes CRITICAL SECURITY GAP #2 from security review.
2026-05-31 22:55:00 +05:30
Ashwin Kumar Sivakumar
ed80820913 security: remove hardcoded fallback credentials and fix aws feature flag
- payments/src/main.rs: fail-fast on BEECEPTOR_URL and DATABASE_URL
- gateway/src/main.rs: fail-fast on all service URLs and CORS URLs
- users/src/handlers/ai.rs: fail-fast on LEADS_SERVICE_URL
- leads/src/main.rs: fail-fast on OLLAMA_BASE_URL and OLLAMA_CHAT_MODEL
- storage/Cargo.toml: replace rustls-aws-lc with rustls for aws-config/aws-sdk-s3
2026-05-31 22:53:29 +05:30
Ashwin Kumar Sivakumar
8f0cf64eb4 fix: update jsonwebtoken 9.3→10.3, add audit.toml to ignore local crate false positives, fix cache/ollama.rs compile errors
- Update jsonwebtoken from 9.3 to 10.3 in crates/auth/Cargo.toml and crates/contracts/Cargo.toml
- Create .cargo/audit.toml to ignore false positives for local workspace crates 'cache' and 'users'
- Fix pre-existing compile errors in crates/cache/src/ollama.rs (missing reqwest dep, broken format! string literals)
- Add reqwest workspace dependency to crates/cache/Cargo.toml
2026-05-31 18:25:38 +05:30
Ashwin Kumar Sivakumar
cda228482e feat: trigger build after registry fix 2026-05-30 03:42:03 +05:30
Ashwin Kumar Sivakumar
adc42d358a chore: trigger gitea pipeline 2026-05-30 02:05:22 +05:30
Ashwin Kumar Sivakumar
8260d54534 feat: Add Ask Ash AI credit system endpoints
- Add AI credit management endpoints for companies
- Add AI usage history tracking
- Add AI content generation with Ollama integration
- Add Ollama client for generating job descriptions, resume analysis, and cover letters
- Integrate AI router into companies service
2026-05-29 20:53:51 +05:30
Tracewebstudio Dev
81d1df70a8 Resolve conflicts: remove Woodpecker CI, use Gitea 2026-05-08 15:40:52 +02:00
Tracewebstudio Dev
9313f1288c Update Woodpecker CI/CD configs and backend: add .woodpecker/ directory, update base/dockerhub/yml configs, Cargo.lock, email handler and crate 2026-05-08 15:34:35 +02:00
Tracewebstudio Dev
b16969a40f Update backend services: catering_services, companies, developers, gateway, job_seekers, photographers, social_media_managers, tutors, ugc_content_creators, users; update cache (otp, token), contracts (profession_shared, profession_state), db (job_seeker, verification), email; add revision-requested email template; update init-db.sql and start-services.sh 2026-05-08 15:34:29 +02:00
Tracewebstudio Dev
486d1a8848 fix(ci): always update gitops and ensure high-performance-latest tag push
- Change if: success() to if: always() on gitops update step
- Add final fallback push with no cache if all builds fail
- Ensure high-performance-latest is always pushed even on partial failures
2026-05-05 21:09:43 +02:00
Tracewebstudio Dev
5629326848 chore: trigger gitea pipeline 2026-05-05 21:02:38 +02:00
Tracewebstudio Dev
a805c6db83 chore: trigger gitea pipeline 2026-05-05 20:26:48 +02:00
Tracewebstudio Dev
f82d0c5153 chore: trigger gitea pipeline - rebuild gateway 2026-05-05 19:22:10 +02:00
Tracewebstudio Dev
e16b526fdc ci: rebuild gateway with routing fix 2026-05-05 19:14:54 +02:00
Tracewebstudio Dev
324b00f536 ci: trigger rebuild 2026-05-05 18:54:22 +02:00
Tracewebstudio Dev
f75a348fc7 feat(ai): add missing intents, admin guards, and validation checks
- Add missing AI intents: generate_cover_letter, improve_resume, request_view_contact, auto_apply_job, unknown
- Add is_internal_admin helper to prevent admin/super_admin users from using user-facing AI flows
- Add admin guards to: ai_generate_job_field, ai_generate_cover_letter, ai_tailor_resume, ai_auto_apply, ai_auto_respond_to_lead
- Add professional approval check in ai_auto_respond_to_lead - must be APPROVED status
- Add tracecoin balance check before contact reveal (requires 30 tracecoins)
- Add KB escalation: when no articles found, suggest creating support ticket
- Add explicit unknown intent handler with helpful message
2026-05-05 17:44:40 +02:00
Tracewebstudio Dev
2aba45c9fa feat: password reset via 6-digit code instead of token link
- Generate 6-digit code instead of UUID token for password reset
- Store in Redis with 15 min TTL (was 1 hour)
- Update email template to show code instead of reset link
- Update ResetPasswordPayload to accept code instead of token
- Update send_password_reset_email to accept code parameter
2026-05-05 17:21:56 +02:00
Tracewebstudio Dev
c443ff5b50 chore: trigger rebuild with real code change 2026-05-01 21:50:24 +02:00
Tracewebstudio Dev
2a24b2aa83 chore: force rebuild gateway image 2026-05-01 21:36:05 +02:00
Tracewebstudio Dev
c66e63f87a chore: force rebuild to restore image tags after prune 2026-05-01 19:20:02 +02:00