Skip to content

Commit 27149ec

Browse files
committed
MB-52431 Restore authType to pools/default/buckets/bucket-name response
XDCR on versions prior to 7.0 use the authType of the bucket to determine whether or not the node is an elastic search target. This change adds "sasl" for the authType in the bucket info results. Change-Id: Ic9ff977f6caf157512e102070a3ed0e6aec0b6eb Reviewed-on: https://review.couchbase.org/c/ns_server/+/175726 Well-Formed: Restriction Checker Well-Formed: Build Bot <[email protected]> Reviewed-by: Dave Finlay <[email protected]> Reviewed-by: Artem Stemkovski <[email protected]> Tested-by: Build Bot <[email protected]>
1 parent 22cd5ba commit 27149ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/menelaus_web_buckets.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,10 @@ build_authType(BucketConfig) ->
284284
false ->
285285
[{authType, misc:expect_prop_value(auth_type, BucketConfig)}];
286286
true ->
287-
[]
287+
%% Needed by XDCR on versions prior to 7.0. This must remain
288+
%% until there are no supported pre-7.0 versions that can
289+
%% replicate to us.
290+
[{authType, sasl}]
288291
end.
289292

290293
build_sasl_password(BucketConfig) ->

0 commit comments

Comments
 (0)