gitcoinco / gitcoinco/web

Secure api endpoints

Open
#8,304 1 comment 0 reactions 0 assignees View on GitHub
gpg - infrastructure
Dominant language
JavaScript
Stars
1.8k
Forks
776
PR merge metrics
No merged PRs in 30d

Description

### Why Is this Needed

[comment]: # (Describe the problem and why this task is needed. Provide description of the current state, what you would like to happen, and what actually happen)
*Summary*:

Some of the api (json) request on the api are not checking for csrftoken or `request.user.is_authenticated` making possible to fetch data from outside gitcoin.

### Description

[comment]: # (Feature or Bug? i.e Type: Bug)
*Type*:

### Current Behavior
[comment]: # (Describe what actually happened.)
Api exposed
### Expected Behavior
[comment]: # (Describe what you expected to happen.)
We have a right list of our public api and secure the endpoints with sensitive data

### Definition of Done
[comment]: # (Any other information that would be useful, bullets are helpful.)
- Create a list of public endpoints
- Secure the endpoints we don't want to expose

### Data Requirements
[comment]: # (How will we measure the success of this feature? What kind of tracking is needed for this feature (clicks, impressions, flag)?)

### Additional Information
[comment]: # (Any other information that would be useful, content, screenshots, etc.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.