Skip to content

Commit

Permalink
Use explicit configuration for Micronaut endpoints (#20759)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpgrailsdev authored Jan 6, 2023
1 parent 94bf06a commit 31c28f5
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ micronaut:
port: 9000

airbyte:
config-dir: /config
acceptance:
test:
enabled: ${ACCEPTANCE_TEST_ENABLED:false}
Expand All @@ -20,4 +21,30 @@ airbyte:
auth-header:
name: ${AIRBYTE_API_AUTH_HEADER_NAME:}
value: ${AIRBYTE_API_AUTH_HEADER_VALUE:}
host: ${INTERNAL_API_HOST}
host: ${INTERNAL_API_HOST}

endpoints:
beans:
enabled: true
sensitive: false
env:
enabled: true
sensitive: false
health:
enabled: true
sensitive: false
info:
enabled: true
sensitive: true
loggers:
enabled: true
sensitive: true
refresh:
enabled: false
sensitive: true
routes:
enabled: true
sensitive: false
threaddump:
enabled: true
sensitive: true
32 changes: 26 additions & 6 deletions airbyte-cron/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
micronaut:
application:
name: airbyte-cron
security:
intercept-url-map:
- pattern: /**
httpMethod: GET
access:
- isAnonymous()
server:
port: 9001

Expand All @@ -32,6 +26,32 @@ datasources:
username: ${DATABASE_USER}
password: ${DATABASE_PASSWORD}

endpoints:
beans:
enabled: true
sensitive: false
env:
enabled: true
sensitive: false
health:
enabled: true
sensitive: false
info:
enabled: true
sensitive: true
loggers:
enabled: true
sensitive: true
refresh:
enabled: false
sensitive: true
routes:
enabled: true
sensitive: false
threaddump:
enabled: true
sensitive: true

flyway:
enabled: true
datasources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@
import io.micronaut.http.annotation.Get;
import io.micronaut.http.annotation.Options;
import io.micronaut.http.annotation.Post;
import io.micronaut.security.annotation.Secured;
import io.micronaut.security.rules.SecurityRule;
import java.util.Map;

/**
* Heartbeat controller
*/
@Controller("/")
@Secured(SecurityRule.IS_ANONYMOUS)
public class HeartbeatController {

private static final Map<String, String> CORS_FILTER_MAP = Map.of(
Expand Down
30 changes: 23 additions & 7 deletions airbyte-workers/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
micronaut:
application:
name: airbyte-workers
security:
intercept-url-map:
- pattern: /**
httpMethod: GET
access:
- isAnonymous()
server:
port: 9000

Expand Down Expand Up @@ -217,8 +211,30 @@ docker:
network: ${DOCKER_NETWORK:host}

endpoints:
all:
beans:
enabled: true
sensitive: false
env:
enabled: true
sensitive: false
health:
enabled: true
sensitive: false
info:
enabled: true
sensitive: true
loggers:
enabled: true
sensitive: true
refresh:
enabled: false
sensitive: true
routes:
enabled: true
sensitive: false
threaddump:
enabled: true
sensitive: true

google:
application:
Expand Down

0 comments on commit 31c28f5

Please sign in to comment.