openwisp / openwisp/openwisp-controller

API /user/organization missing "Configuration Management Setttings"

Open
#700 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
773
Forks
315
Avg merge
2d 16h
Merged PRs (30d)
14

Description

Using this API endpoint in any of its variants does not allow setting or getting of the "Shared secret."

I don't know enough about the internals to say much about this problem.

Expected: to be able to set the shared secret when using the endpoint for ORG creation, set the shared secret when using the PUT or PATCH, and retrieve the shared secret when using GET on the /user/organization endpoint.

-OR- provide another endpoint as necessary to allow the setting and getting of the ORG shared secret depending on internals and what is needed to affect this outcome.

Current - no access to ORG shared secret from any API endpoint.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the /user/organization endpoint and its create, PUT, PATCH, and GET variants to see how organization configuration fields are exposed. Define how the shared secret should be set and retrieved, then verify that the chosen endpoint behavior covers all listed operations and add tests for those cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
api, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.