mirror of
https://github.com/elastic/kibana.git
synced 2025-04-22 08:49:27 -04:00
These changes will make sure the kibana server in tests is using shield credentials, as are any requests made through the kbn_server test helper. The current credentials are hardcoded based on our internal best practices, but they should be made configurable in the future. This will pass credentials to ES regardless of whether shield is actually enabled, but that will have no negative effect if shield happens to be disabled.
4 lines
136 B
JavaScript
4 lines
136 B
JavaScript
export function header(user, pass) {
|
|
const encoded = new Buffer(`${user}:${pass}`).toString('base64');
|
|
return `Basic ${encoded}`;
|
|
}
|