Commit Graph

153 Commits

Author SHA1 Message Date
6304c69577 Fix ENV variable with default value 2026-04-18 15:06:25 +00:00
7fdfdacf50 Fix by adding explicit import statements 2026-04-18 15:06:11 +00:00
e4a51ed9f8 Fix build by using buildscript pattern instead of plugin DSL 2026-04-18 15:05:51 +00:00
047433fe60 Hithomelabs/CFTunnels#115: Add PR target branch note to README 2026-04-15 18:44:51 +00:00
d728504aad Hithomelabs/CFTunnels#115: Replace non-standard @security/@response with @throws 2026-04-15 18:37:11 +00:00
4460e86776 Hithomelabs/CFTunnels#115: Fix mixed indentation (tabs to spaces) 2026-04-15 18:36:20 +00:00
ac2ae0a59f Hithomelabs/CFTunnels#114: Add JavaDoc to CloudflareConfig 2026-04-14 11:53:28 +00:00
258c09285e Hithomelabs/CFTunnels#114: Add comprehensive README.md documentation 2026-04-14 11:53:14 +00:00
7e5d20e8ac Hithomelabs/CFTunnels#114: Add JavaDoc and API documentation to TunnelController 2026-04-14 11:52:50 +00:00
4197e645cd Hithomelabs/CFTunnels#114: Add JavaDoc to Ingress model 2026-04-14 11:52:21 +00:00
df7ea9a2df Hithomelabs/CFTunnels#114: Add JavaDoc to CloudflareAPIService 2026-04-14 11:52:08 +00:00
c6b466530f Hithomelabs/CFTunnels#114: Add JavaDoc to User entity 2026-04-14 11:51:48 +00:00
e8f158aece Hithomelabs/CFTunnels#114: Add JavaDoc to Request entity 2026-04-14 11:51:39 +00:00
a7e7ea4a39 Hithomelabs/CFTunnels#114: Add JavaDoc to Protocol enum 2026-04-14 11:51:28 +00:00
e8d535efda Hithomelabs/CFTunnels#114: Add JavaDoc to Mapping entity 2026-04-14 11:51:19 +00:00
6bf138ea7a Hithomelabs/CFTunnels#114: Add JavaDoc to Tunnel entity 2026-04-14 11:51:07 +00:00
b2ac418ae5 Hithomelabs/CFTunnels#114: Add JavaDoc documentation to main application class 2026-04-14 11:50:39 +00:00
042c706407 Update prod JPA config 2026-02-16 01:12:32 +05:30
5823d2b6a0 Revert "Update JPA config to use update mode and disable SQL init"
This reverts commit 3fcea268a9.
2026-02-16 01:11:20 +05:30
3fcea268a9 Update JPA config to use update mode and disable SQL init 2026-02-16 01:10:31 +05:30
3c51b761e0 Add RequestRepository integration tests with H2 in-memory database 2026-02-16 00:56:28 +05:30
c78f2713c3 Fix LazyInitializationException and update hostname format 2026-02-16 00:38:23 +05:30
3b43039a29 Add Request import and simplify createTestRequest method 2026-02-15 22:37:19 +05:30
09e631c871 Restore removed tests for approve/reject endpoints 2026-02-15 22:34:21 +05:30
9a25495d9c Remove pagination and filtering from /requests endpoint 2026-02-15 22:06:07 +05:30
7e3882febf Add PaginationRequest DTO for /requests endpoint 2026-02-15 20:51:52 +05:30
6c496c8c27 Fix broken findByCfTunnelId method - property doesn't exist on Tunnel entity 2026-02-15 20:23:29 +05:30
927ce563c5 Set ddl-auto to create-drop for test and prod profiles 2026-02-15 20:07:41 +05:30
7f7b90df80 Add approve/reject mapping requests API with unit tests
- Add Protocol enum to Mapping entity for HTTP, HTTPS, TCP, SSH
- Add TunnelsResponse and TunnelResult models for typed API responses
- Add ExternalServiceException for Cloudflare API errors
- Add approve and reject endpoints for mapping requests
- Add GET /requests endpoint with pagination and status filtering
- Refactor API paths to use 'configured' and 'configure' terminology
- Add comprehensive unit tests for all new endpoints
- Add service layer tests for new methods
2026-02-15 20:00:34 +05:30
71161a4da1 Changing API design and making tests compatible 2026-01-28 00:21:13 +05:30
c1ea9c4197 Fix database URL configuration for docker-compose compatibility
- Hardcode PostgreSQL connection URL to match docker service name 'postgres'
- Remove DB_URL environment variable dependency that was causing startup failures
- Keep username/password as environment variables for flexibility
2026-01-23 23:23:39 +05:30
e9675db11a Remove fork sync job from test build workflow
- Remove sync_forks job that was causing issues
- Fork syncing doesn't work reliably in current setup
- Keep core build and deployment functionality
2026-01-23 21:37:22 +05:30
b8b0a4bf30 Remove environment variable defaults and align with docker-compose
- Remove default values from database environment variables
- Use POSTGRES_USERNAME/PASSWORD to match docker-compose.yaml
- Use DB_URL without default to ensure explicit configuration
2026-01-23 21:22:16 +05:30
c0ae476beb Configure PostgreSQL database settings for test and production profiles
- Add PostgreSQL datasource configuration for test and prod profiles
- Use environment-specific database URL, username, and password variables
- Set hibernate.ddl-auto=update for both profiles
- Enable SQL logging in test, disable in production
- Replace H2 in-memory database with PostgreSQL for consistency
2026-01-23 21:16:56 +05:30
acaef2e704 Merge branch 'test' into feature/swagger-oauth-env-config 2026-01-22 21:36:32 +00:00
d2d8e74ba9 Add OAuth2 security configuration to Swagger UI and clean up unused redirects
- Configure OpenAPI with OAuth2 authorization code flow and required scopes
- Add security scheme and requirements for API documentation
- Remove unused swagger redirect methods from HomeController
- Comment out swagger endpoint permissions in SecurityConfig
2026-01-23 02:16:45 +05:30
c8a25cf438 Configure springdoc swagger oauth client-id from environment variable
- Update application.properties to use SWAGGER_OAUTH_CLIENT_ID env var
- Add SWAGGER_OAUTH_CLIENT_ID to docker-compose.yaml environment
- Add SWAGGER_OAUTH_CLIENT_ID to IntelliJ run configuration
2026-01-23 02:11:32 +05:30
cfe40735e6 Hithomelabs/HomeLabDocker#33 making ci and integration tests initialize Embedded H2 database, fixing integration test 2026-01-14 18:19:39 +00:00
79ffd41add Hithomelabs/HomeLabDocker#33 making ci and integration tests initialize Embedded H2 database, fixing integration test 2026-01-14 23:24:39 +05:30
742bcef858 ISSUE-33 (#96) (#98)
## Description
- db integration

Co-authored-by: hitanshu310 <hitanshu98@gmail.com>
Co-authored-by: = <=>
Co-authored-by: Kruti Shah <kruti@logiqids.com>
Reviewed-on: Hithomelabs/CFTunnels#96
Co-authored-by: Kruti Shah <krutis0201@gmail.com>
Co-committed-by: Kruti Shah <krutis0201@gmail.com>

Reviewed-on: Hithomelabs/CFTunnels#98
Reviewed-by: hitanshu <hitanshu98@gmail.com>
Co-authored-by: Kruti Shah <krutis0201@gmail.com>
Co-committed-by: Kruti Shah <krutis0201@gmail.com>
2026-01-14 17:37:15 +00:00
ffe151b59c ISSUE-33 (#96)
## Description
- db integration

Co-authored-by: hitanshu310 <hitanshu98@gmail.com>
Co-authored-by: = <=>
Co-authored-by: Kruti Shah <kruti@logiqids.com>
Reviewed-on: Hithomelabs/CFTunnels#96
Co-authored-by: Kruti Shah <krutis0201@gmail.com>
Co-committed-by: Kruti Shah <krutis0201@gmail.com>
2026-01-14 17:26:26 +00:00
063d66b987 ISSUE-44: Hithomelabs/HomeLabDocker#44 Latest pull 2025-11-16 19:59:12 +05:30
f469ff33a7 ISSUE-44: Hithomelabs/HomeLabDocker#44 bug-fix 2025-11-16 19:49:58 +05:30
6db68ad36f ISSUE-44: Hithomelabs/HomeLabDocker#44 run integration tests on push to main and changing interval to 12 hours 2025-11-16 19:47:08 +05:30
43416d4bc7 ISSUE-44: Hithomelabs/HomeLabDocker#44 adding more tests 2025-11-16 13:38:33 +00:00
b30ae7cdbf ISSUE-44: Hithomelabs/HomeLabDocker#44 adding more tests 2025-11-16 18:59:06 +05:30
f36d807731 ISSUE-44: Hithomelabs/HomeLabDocker#44 making tests more verbose 2025-11-14 20:03:35 +00:00
8b22064040 ISSUE-44: Hithomelabs/HomeLabDocker#44 Executing integration test every 6 hours 2025-11-14 20:03:35 +00:00
95ec64630a ISSUE-44: Hithomelabs/HomeLabDocker#44 making tests more verbose 2025-11-15 01:27:32 +05:30
d194828c44 ISSUE-44: Hithomelabs/HomeLabDocker#44 Executing integration test every 6 hours 2025-11-15 01:22:29 +05:30