Skip to content

Commit

Permalink
Enable restriction of internal APIs for serverless
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Jul 12, 2023
1 parent 9a7cc5a commit b884382
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ data.search.sessions.enabled: false
advanced_settings.enabled: false

# Enforce restring access to internal APIs see https://github.com/elastic/kibana/issues/151940
# server.restrictInternalApis: true
server.restrictInternalApis: true
# Telemetry enabled by default and not disableable via UI
telemetry.optIn: true
telemetry.allowChangingOptInStatus: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { FtrProviderContext } from '../ftr_provider_context';

const COMMON_REQUEST_HEADERS = {
'kbn-xsrf': 'some-xsrf-token',
'x-elastic-internal-origin': 'some-value',
};

export function SvlCommonApiServiceProvider({}: FtrProviderContext) {
Expand Down

0 comments on commit b884382

Please sign in to comment.