Need to be able to send secure session cookie for localhost
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- ruby
- Domain
- authentication, backend
Research direction
Start in lib/rack/session/abstract/id.rb and inspect security_matches? to understand how secure cookies are currently limited to SSL requests. Verify the localhost behavior described in the issue while preserving the existing secure-cookie restriction for other hosts, then check the relevant session tests.
Written by the indexing model from the issue text.
Description
Right now, unless it is ssl, you can't send a secure session cookie. It is perfectly valid to do this for localhost, and very desirable for development.
In lib/rack/session/abstract/id.rb, I think it should say something like:
def security_matches?(request,options)
return true unless options[:secure]
request.ssl? || request.host == "localhost"
end
- Dominant language
- Ruby
- Stars
- 52
- Forks
- 22
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rack/rack-session
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rack/rack-session#52 · 5 comments · 1 reaction ·
-
Unused test code Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
rack/rack-session#51 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
rack/rack-session#35 · 1 comment · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
rack/rack-session#29 ·
All issues in rack/rack-session
Similar issues
-
バグ
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
voxpupuli/puppet-epel#186 · 1 comment ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) OpenBug Frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TheOdinProject/curriculum#31402 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100