Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readonly gateway API fix #1583

Merged
merged 2 commits into from
Aug 17, 2015
Merged

Readonly gateway API fix #1583

merged 2 commits into from
Aug 17, 2015

Conversation

rht
Copy link
Contributor

@rht rht commented Aug 16, 2015

No description provided.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
@jbenet jbenet added the status/in-progress In progress label Aug 16, 2015
@rht rht changed the title Show readonly commands in gateway readonly API Readonly gateway API fix Aug 16, 2015
License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
func init() {
*RootRO = *Root

// sanitize readonly refs command
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or it is safe (and actually useful) to expose local refs ("index of").

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it is useful, and also that safety depends on context. keep it disabled until we find a strong reason to enable it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so be it

@jbenet
Copy link
Member

jbenet commented Aug 16, 2015

@rht also: we forgot to try running write commands and checking they fail

jbenet added a commit that referenced this pull request Aug 17, 2015
@jbenet jbenet merged commit e10e711 into ipfs:master Aug 17, 2015
@jbenet jbenet removed the status/in-progress In progress label Aug 17, 2015
@rht
Copy link
Contributor Author

rht commented Aug 17, 2015

@rht also: we forgot to try running write commands and checking they fail

(just made this while offline)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants