为什么我能够使用以下请求查询Office365的Reporting API:
https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace?$select=Subject,SenderAddress,RecipientAddress,Status,Received,Received&$filter=SenderAddress eq 'foo@bar.com' and RecipientAddress eq 'bar@foo.com' and StartDate eq datetime'2016-10-01T00:00:00' and EndDate eq datetime'2016-10-03T00:00:00'
Run Code Online (Sandbox Code Playgroud)
但是当我修改它以过滤主题时,它会返回一个错误:
https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace?$select=Subject,SenderAddress,RecipientAddress,Status,Received,Received&$filter=SenderAddress eq 'foo@bar.com' and RecipientAddress eq 'bar@foo.com' and StartDate eq datetime'2016-10-01T00:00:00' and EndDate eq datetime'2016-10-03T00:00:00' and Subject eq 'Test'
Run Code Online (Sandbox Code Playgroud)
{"odata.error":{"code":"InvalidQueryException","message":{"lang":"","value":"查询无效." }}}
更新:
我已将配置组织成基于角色的目录结构。其中一些角色具有包含加密文本的默认变量文件。这是一个经过简化且经过测试但失败的任务列表:
---
- name: 'Include some additional variables'
include_vars:
dir: "{{playbook_dir}}/roles/foo/defaults/vars"
tags: 'debug'
- name: 'Debug: display the variables'
debug:
msg: "{{item}}"
with_items:
- "{{encrypted_text_from_yml_file}}"
tags: 'debug'
- name: 'Deploy Foo plugins'
block:
- name: 'Transfer the folder to the application directory'
synchronize:
src: 'some_src_folder'
dest: "{{some_unencrypted_text_from_another_yml_file}}"
archive: false
recursive: true
tags: 'debug'
Run Code Online (Sandbox Code Playgroud)
但是,在执行我的剧本时,我看到以下错误:
TASK [<some_app> : Transfer the <some_folder> folder to the application directory] **********************************************************************************
fatal: [<some_hostname>]: FAILED! => {"failed": true, "msg": "Decryption failed (no vault secrets would …Run Code Online (Sandbox Code Playgroud) 我在使用 Traefik 时遇到了一个奇怪的问题。我想使用 ACME 生成 TLS 证书。使用 DNS 执行验证后,我的acme.json文件似乎已正确填充,但是,当我使用 OpenSSL 验证证书时,它似乎使用了 Traefik 提供的默认证书。
这些是我的设置:
[acme]
acmelogging= true
caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"
delayBeforeCheck = 0
email = "<REDACTED>"
entryPoint = "https"
storage = "/etc/traefik/acme.json"
[acme.dnsChallenge]
delayBeforeCheck = 0
provider = "route53"
[[acme.domains]]
main = "<REDACTED>"
Run Code Online (Sandbox Code Playgroud)
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
Run Code Online (Sandbox Code Playgroud)
这是证书的主题:
? Docker git:(master) ? openssl s_client -connect localhost:443 -servername <REDACTED> 2>/dev/null | openssl x509 -noout -subject
subject= /CN=TRAEFIK DEFAULT CERT
Run Code Online (Sandbox Code Playgroud) 我在网上搜索过,但一直无法找到一种方法来禁用redis-cli 生成文件~/.rediscli_history。我担心的是该文件将 AUTH 信息记录到文件中(更多信息。这里:https : //github.com/antirez/redis/pull/2413)。关于如何做到这一点的任何想法?