Commit Graph
8 Commits
Author SHA1 Message Date
nutcas3 70504379c5 feat: Add HMAC-SHA256 authentication utilities to Terraform provider client
- Add crypto/hmac, crypto/sha256, and encoding/base64 imports
- Add hmacSHA256 function for HMAC-SHA256 signature generation with base64 URL encoding
- Add base64URLEncode helper function for URL-safe base64 encoding
- Add reference implementation comments for SDK compatibility
2026-04-25 05:09:35 +03:00
nutcas3 e8230bd64e chore: Update Go dependencies and replace interface{} with any type alias
- Update charmbracelet/colorprofile from v0.4.1 to v0.4.3
- Update charmbracelet/x/ansi from v0.11.6 to v0.11.7
- Update clipperhouse/displaywidth from v0.9.0 to v0.11.0
- Update clipperhouse/uax29/v2 from v2.5.0 to v2.7.0
- Update davecgh/go-spew to v1.1.2-0.20180830191138-d8f796af33cc
- Update fsnotify/fsnotify from v1.7.0 to v1.9.0
- Update google/go-cmp from v0.5.9 to v0.7.0
- Update lucasb-eyer/go-colorful from v1.3.0 to v1.4
2026-04-20 20:04:01 +03:00
nutcas3 c7627d92ec refactor: Replace interface{} with any alias in Terraform provider code
- Replace interface{} with any in providerConfigure, doRequest, get, post, put method signatures
- Replace interface{} with any in dataSourceSubscriberRead, dataSourceSystemStatsRead functions
- Replace interface{} with any in resourceSubscriberCreate/Read/Update/Delete, resourceRatingPlanCreate/Read/Update/Delete functions
- Replace map[string]interface{} with map[string]any in subscriber create/update request bodies
- Update
2026-04-20 18:25:22 +03:00
nutcas3 adfa470bd4 feat: Add Terraform provider main entry point with schema definition and resource/data source registration
- Add main function with plugin.Serve to initialize Terraform provider plugin
- Add Provider function returning schema.Provider with api_url and api_key configuration
- Add api_url schema with TELECOM_API_URL environment variable fallback to http://localhost:8000
- Add api_key schema with TELECOM_API_KEY environment variable, marked as sensitive and optional
- Register resources: telecom_subscriber and
2026-04-17 17:38:09 +03:00
nutcas3 d2e2007d68 feat: Add Terraform resources for subscriber and rating plan management with CRUD operations
- Add Subscriber struct with id, imsi, msisdn, first_name, last_name, email, organization_id, status, plan_id, balance, created_at, updated_at fields
- Add RatingPlan struct with plan_id, name, data_rate, voice_rate, sms_rate, monthly_fee, data_limit, voice_limit, sms_limit fields
- Add resourceSubscriber with schema defining required fields (imsi, msisdn, first_name, last_name, email, plan_id) and computed
2026-04-17 17:37:56 +03:00
nutcas3 b1878c715c feat: Add Terraform data sources for subscriber and system stats with API integration
- Add SystemStats struct with active_sessions, total_accounts, blocked_users, low_balance_alerts, uptime fields
- Add dataSourceSubscriber with required id field and computed fields: imsi, msisdn, first_name, last_name, email, organization_id, status, plan_id, balance, created_at, updated_at
- Add dataSourceSubscriberRead to fetch subscriber data from /api/subscribers/{id} endpoint with error handling
- Add dataSourceSystemStats
2026-04-17 17:37:29 +03:00
nutcas3 8c8d71056f feat: Add Terraform provider API client with HTTP methods and provider configuration
- Add APIClient struct with BaseURL, APIKey, and HTTPClient with 30s timeout
- Add providerConfigure to initialize client from schema with api_url and api_key
- Add doRequest helper with context support, JSON marshaling, Content-Type and Authorization headers
- Add get method accepting GET requests with 200 OK validation and JSON decoding
- Add post method accepting POST requests with 200/201 status validation and optional
2026-04-17 17:37:18 +03:00
nutcas3 a1331bb55e feat: Add Terraform provider module with HashiCorp plugin SDK integration
- Add terraform/provider to workspace modules alongside api-server, carrier-connector, and cli
- Add go.mod for terraform-provider-telecom module with Go 1.26.1
- Add terraform-plugin-sdk/v2 v2.40.0 as primary dependency
- Add HashiCorp dependencies: go-cty v1.5.0, go-hclog v1.6.3, go-plugin v1.7.0, terraform-plugin-go v0.31.0, terraform-plugin-log v0.10.0
- Add HCL parsing with hcl/v2 v2.24.0 and configuration utilities
- Add Open
2026-04-17 17:36:13 +03:00