Skip to content

Linux emulator does not validate key #148

@jgbradley1

Description

@jgbradley1

Describe the bug
The linux emulator does not error out when the wrong key is used. Is this the expected behavior?

To Reproduce
Steps to reproduce the behavior:

  1. Start the emulator
docker run -d -p 8081:8081 -p 1234:1234 mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview
  1. Run the following python sample code
from azure.cosmos import CosmosClient

endpoint = "http://localhost:8081"
key = "testpassword"
client = CosmosClient(endpoint, key)
for db in client.list_databases():
    print(db)

I expected the code to not work but it connects successfully and I can perform operations like creating new databases.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Edge
  • SDK version: vnext-preview
  • SDK language: Python

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions