Skip to content

Commit

Permalink
RHINENG-13308: switch default value to enforce auth
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMraka committed Oct 9, 2024
1 parent 06293ca commit 147e267
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions conf/admin_api.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ DB_USER=admin
DB_PASSWD=passwd

EVAL_TOPIC=patchman.evaluator.recalc
POD_CONFIG=turnpike_auth=false
2 changes: 1 addition & 1 deletion deploy/clowdapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ parameters:
- {name: MEM_LIMIT_ADMIN, value: 256Mi}
- {name: CPU_REQUEST_ADMIN, value: 50m}
- {name: MEM_REQUEST_ADMIN, value: 128Mi}
- {name: ADMIN_CONFIG, value: 'turnpike_auth'}
- {name: ADMIN_CONFIG, value: ''}

# Floorist parameters
- {name: FLOORIST_SUSPEND, value: 'true', required: true} # Disable Floorist cronjob execution
Expand Down
2 changes: 1 addition & 1 deletion turnpike/admin_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func RunAdminAPI() {
core.ConfigureApp()

// Toggle Turnpike authentication for internal API (manual sync, re-calc)
enableTurnpikeAuth := utils.PodConfig.GetBool("turnpike_auth", false)
enableTurnpikeAuth := utils.PodConfig.GetBool("turnpike_auth", true)

utils.LogInfo("port", utils.CoreCfg.PublicPort, "Manager-admin starting")
app := gin.New()
Expand Down

0 comments on commit 147e267

Please sign in to comment.