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

To provide example in not secure mode

Open
#45 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
5
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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],
)
````

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with quickstart_setup.py and inspect the definitions of ServiceInterface, ServiceRegistrationForm, and Service to see where the requested insecure values are handled. Verify that the HTTP-INSECURE-JSON example can query the service registry and that the requested NOT_SECURE registration value is accepted. No tests or other files are named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, documentation
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.