OWASP / OWASP/OpenCRE

Prod: enable CRE_ENABLE_LOGIN and CRE_ENABLE_MYOPENCRE for profiles

Open
#1,080 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

existing-maintainers-only not ready for development P2 untriaged
Dominant language
Python
Stars
180
Forks
137
Avg merge
3d 23h
Merged PRs (30d)
21

Description

Parent: #1079 · Project: https://github.com/orgs/OWASP/projects/60

What

Turn on the two flags that already gate the profile UI and resource-selection API on opencreorg, then verify login chrome + MyOpenCRE picker work.

Both flags are required. Resource APIs no-op unless CRE_ENABLE_LOGIN and CRE_ENABLE_MYOPENCRE are truthy.

Why this is a ticket

Chat already has its own Google login (/rest/v1/completion is @login_required). The header Login button and /myopencre only appear when the flags are on. Enabling them is a prod config change, not a code change.

Do

  • Set CRE_ENABLE_LOGIN=1 and CRE_ENABLE_MYOPENCRE=1 on Heroku app opencreorg (do not paste heroku config values into this ticket)
  • Confirm Google OAuth secrets already used by chat still work for the header login flow
  • Confirm LOGIN_ALLOWED_DOMAINS is * or includes the users we want (if it is a tight allowlist, the new Login button will 401 everyone else)
  • After deploy: header shows Login; /myopencre is in nav; logged-in user can load and save /rest/v1/user/resources
  • Confirm anonymous CRE pages still work (flags must not hide public graph)

Do not

  • Do not paste secrets or heroku config dumps
  • Do not compute gap analysis on production
  • Do not expect CRE pages to filter yet — that is the other tickets in #1079

Success

A logged-in user can open /myopencre, see the standards checklist, save a selection, and round-trip it via GET /rest/v1/user/resources. CRE pages still show the full graph until the apply-view tickets land.

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 with the opencreorg Heroku configuration and the existing chat login flow at /rest/v1/completion; verify the required OAuth and LOGIN_ALLOWED_DOMAINS settings without exposing secrets. Enable both flags, deploy, and check the header Login button, /myopencre, and GET/ save behavior for /rest/v1/user/resources. Confirm anonymous CRE pages still show the full graph.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authentication, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.