Open
Conversation
Refactors the code to handle Space-Track API authentication and data retrieval more robustly. Adds error handling and improves the clarity of the code. The changes ensure a more reliable and efficient interaction with the Space-Track API.
- Added a function to load environment variables from a `.env` file, improving credential management. - Implemented checks for required environment variables, prompting users for input if not set. - Refactored CLI options and display functions for better user interaction and clarity. - Updated dependencies in `go.mod` and `go.sum` for improved package management.
- Added functionality to mask password input for sensitive environment variables. - Introduced helper functions for password field detection and secure reading of passwords. - Updated Go version in `go.mod` and added new dependencies for improved functionality. - Modified `.gitignore` to include documentation and test runner files.
- Updated test cases to include more descriptive names indicating that password fields are masked with asterisks. - Enhanced the readPassword function to handle non-terminal input and provide better user experience with character masking and input validation.
- Added validation checks for TLE data parsing to ensure sufficient field counts and correct format. - Enhanced error messages to provide clearer feedback on parsing failures, including specific field counts and format issues.
- Introduced a new function to validate file paths, preventing directory traversal attacks and ensuring safe input. - Enhanced error handling in the TLETextFile function to provide user feedback on invalid paths and file types. - Cleaned and normalized file paths before processing to improve security and reliability.
- Added functions to validate the format of API keys and credentials, ensuring they meet specified criteria. - Introduced connection tests for Space-Track and N2YO APIs to verify credentials and provide user feedback on validation results. - Enhanced user prompts for credential input, including error handling for invalid formats and connection issues.
- Introduced new test cases for validating the format of API keys and credentials, including checks for valid and invalid inputs. - Implemented tests for password field validation, ensuring proper handling of various password formats and lengths. - Enhanced existing test suite to improve coverage and reliability of credential validation functionality.
- Introduced a new menu option to select satellites from user favorites, enhancing user experience. - Implemented functionality to save or remove satellites from favorites after selection. - Updated the satellite selection process to include viewing favorites alongside searching for new satellites. - Modified `.gitignore` to include user favorites data files for better project management.
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
- Replaced real test credentials with fake test values to ensure security and clarity in testing. - Added comments to indicate that the test credentials are not real and are used solely for testing purposes. - Updated various test cases to utilize the new fake credentials for consistency across the test suite.
…lite positions, and TLE data - Integrated interactive prompts to allow users to export visual pass predictions, radio pass predictions, satellite positions, and TLE data. - Implemented default filename generation based on satellite information for better user experience. - Enhanced error handling during the export process to provide clear feedback on success or failure of the export operations.
- Updated the OSINT test module description to include export functionality. - Added a new test module for export functionality, covering CSV, JSON, and Text export tests. - Modified the runTests function to accept a test pattern filter for running specific tests. - Updated the main function to include a flag for specifying the test pattern, enhancing test execution flexibility.
- Introduced a new test module for batch operations, including multi-satellite processing and exports. - Updated the CLI to include a new option for batch operations, enhancing user functionality. - Modified the options text file to reflect the addition of the batch operations feature.
Feature/export results
Add batch operations tests and update CLI options
- Introduced a new test module for progress indicators, including spinners and progress bars. - Enhanced input validation in the GetVisualPrediction and GetLocation functions to trim whitespace and clean numeric inputs. - Implemented progress indicators during API calls for improved user experience. - Added comprehensive tests for the new progress functionality, ensuring reliability and performance.
Add progress indicators and input validation enhancements
…and suggestions - Created osint/errors.go with structured error handling module - Implemented error codes for all error categories (AUTH, API, INPUT, TLE, FILE, SAT, NET) - Added AppError struct with code, message, context, and suggestions - Updated error messages throughout application with context-specific information - Added helper functions: HandleError, HandleErrorWithContext, ValidateInput, ValidateNumericInput - Updated IMPROVEMENTS.md to mark Better Error Messages as completed Error codes: - Authentication: AUTH-1001 to AUTH-1004 - API: API-1101 to API-1105 - Input validation: INPUT-1201 to INPUT-1204 - TLE: TLE-1301 to TLE-1304 - File: FILE-1401 to FILE-1404 - Satellite: SAT-1501 to SAT-1503 - Network: NET-1601 to NET-1603 Files modified: - osint/errors.go (new) - osint/osint.go - osint/orbitalprediction.go - osint/satelliteposition.go - osint/tleparser.go - IMPROVEMENTS.md
Author
|
Hey @ANG13T Are you still maintaining this repository? Thanks. |
- Added automatic location detection for latitude and longitude in satellite position queries. - Updated prompts for altitude input to include default values and improved error handling. - Introduced a new map visualization feature for satellite positions, offering options for ASCII, KML export, and web-based maps. - Modified `.gitignore` to include the new `IMPROVEMENTS_COMPLETED.md` file for better documentation tracking. - Cleaned up test files by removing unnecessary placeholders. Files modified: - osint/orbitalprediction.go - osint/satelliteposition.go - osint/favorites.go - cli/cli_test.go - osint/tleparser_test.go - .gitignore
Improvement/error messages
- Add SGP4 position calculation using github.com/joshuaferrara/go-satellite - Implement CalculateSGP4Position function for local position prediction - Add observer position and look angles calculations - Include comprehensive test suite (sgp4_test.go) - Update dependencies (go.mod, go.sum) - Add test coverage output - Update QUICK_TEST.md and cli_test.go
Implement SGP4 Algorithm Integration (#11)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug Fix (#5 (comment))
Refactors the code to handle Space-Track API authentication and data retrieval more robustly. Adds error handling and improves the clarity of the code. The changes ensure a more reliable and efficient interaction with the Space-Track API.
Update ( 09-12-2025 ):
Release Notes
Overview
This release introduces significant improvements to SatIntel, including enhanced security, interactive satellite search capabilities, favorites management, comprehensive test coverage, and better user experience.
New Features
1. Interactive Satellite Search & Filtering
Location:
osint/osint.go:SelectSatellite()Search Functionality:
Pagination:
Enhanced Display:
Technical Details:
2. Save/Load Favorites
Location:
osint/favorites.goFavorites Management:
Storage:
~/.satintel/favorites.jsonIntegration:
3. Enhanced Security Features
Password Masking
Location:
main.go:readPassword()Input Sanitization
Location:
osint/tleparser.go:validateFilePath()../,..\, etc.)API Key Validation
Location:
main.go:validateAPIKeyFormat(),validateCredentials()Format Validation:
Connection Testing:
Improvements
1. Environment Variable Management
.envFile Support:.envfile automatically.envnot found.envfiles2. Error Handling
3. TLE Parsing Robustness
Enhanced Validation:
Bug Fixes:
TLETextFile()andTLEPlainString()functions4. HTTP Client Improvements
Session Management:
Error Handling:
5. Code Quality
io/ioutilwithosandiopackagesTesting
Test Coverage
Main Package Tests (
main_test.go,main_apivalidation_test.go)OSINT Package Tests (
osint_test.go,osint/tleparser_test.go,osint/favorites_test.go)CLI Package Tests (
cli/cli_test.go)Test Runner
run_tests.go)Total Test Coverage: 100+ test cases across all modules
Bug Fixes
TLETextFile()functionTLETextFile()andTLEPlainString()functionsSecurity Improvements
fake_test_*prefix).envfilesMigration Guide
For Existing Users
Environment Variables:
.envfile support is optionalFavorites:
~/.satintel/favorites.jsonAPI Credentials:
Breaking Changes
Dependencies
New Dependencies
Updated Dependencies
Performance Improvements
Changelog Summary
Added
.envfile supportChanged
io/ioutilpackageFixed
Security