Comments (7)
@blee1170 so you have custom cert any key files? I can expose a few more ssl related settings like what's provided in example (https://elasticsearch-py.readthedocs.io/en/master/#ssl-and-authentication), will these be sufficient?
from scrapy-elasticsearch.
Something like this:
es = Elasticsearch(
['localhost', 'otherhost'],
http_auth=('user', 'secret'),
port=443,
use_ssl=True,
ca_certs='/path/to/cacert.pem',
client_cert='/path/to/client_cert.pem',
client_key='/path/to/client_key.pem',
)
Would help a ton.
from scrapy-elasticsearch.
ok, I will add these over the weekend.
from scrapy-elasticsearch.
That would be fantastic.
from scrapy-elasticsearch.
@blee1170 I checked in an open PR (#68), since I don't have a testing environment to test custom CA files, do you mind pulling this pr to your local environment to give it a test before I merge?
You will need to clone this repo, check out the custom_ca branch and issue a python setup.py install
. It accepts a new setting ELASTICSEARCH_CA (dictionary, see https://github.com/knockrentals/scrapy-elasticsearch/pull/68/files#diff-88b99bb28683bd5b7e3a204826ead112R49) for you to pass in ca files.
Let me know if it works and your thoughts.
from scrapy-elasticsearch.
@jayzeng We did some testing and it seems to work for us!
This is the config we used:
ELASTICSEARCH_CA = {
'CA_CERT': os.environ['CA_BUNDLE_PATH'],
'CLIENT_KEY': None,
'CLIENT_CERT': None
}
We are using a bundle, so we need not need the key and cert. Still had to set those values to 'None'. But everything is working well. Let me know when its released.
from scrapy-elasticsearch.
@blee1170 thanks for testing and glad it works, I just cut the latest release (https://pypi.python.org/pypi/ScrapyElasticSearch/0.9.0), cheers!
from scrapy-elasticsearch.
Related Issues (20)
- What does 'ELASTICSEARCH_UNIQ_KEY' do? HOT 2
- Content-Type required, Elasticsearch 6.x HOT 1
- Text field always gets ignore_above keyword HOT 1
- Unique key is tuple if using items HOT 1
- Removal of _type requirement
- BulkIndexError HOT 1
- Missing header information for ElasticSearch 6.2 HOT 2
- got an unexpected keyword argument 'headers' HOT 3
- is it possible update item if this item with id exists? HOT 2
- Suggest making item_id = hashlib.sha1(unique_key).hexdigest() optional
- Scrapy logging show UnicodeDecodeError HOT 1
- deleted
- Suggestion of setting '_index', '_source' and other parameters directly in parser
- ElasticsearchDeprecationWarning: [types removal] Specifying types in bulk requests is deprecated.
- Please support Scrapy 2.4.1 HOT 1
- I downloaded the package but I still get a module not found.
- Cluster name and Cluster node field not available
- elasticsearch.helpers.BulkIndexError after long time of scraping HOT 5
- Doesn't support scrapy dataclass item
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrapy-elasticsearch.