arrowhead-f / arrowhead-f/client-library-python

To provide example in not secure mode

未关闭
#45 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
5
派生
12
PR 合并指标
30 天内没有已合并 PR

描述

I found it useful to have an example of insecure server-client example.

E.g., to check the running services (e.g., orchestration, serviceregistry, authentication)
```
import requests
r=requests.get('http://127.0.0.1:8443/serviceregistry/echo')
```
and in quickstart_setup.py, change the ServiceInterface to be:
```
ServiceInterface('HTTP', 'INSECURE', 'JSON'),
```
Inaddition, add 'NOT_SECURE' instead of 'CERTIFICATE'
```
hello_form = ServiceRegistrationForm.make(
Service(
'hello-arrowhead',
'hello',
ServiceInterface.from_str('HTTP-INSECURE-JSON'),
'NOT_SECURE',
),
systems['provider'][0],
)
````

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 quickstart_setup.py 开始,检查 ServiceInterface、ServiceRegistrationForm 和 Service 的定义,以了解请求的不安全值在哪里被处理。验证 HTTP-INSECURE-JSON 示例可以查询服务注册表,并且请求的 NOT_SECURE 注册值会被接受。Issue 中没有提到测试或其他文件。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
backend, documentation
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。