[X-Post from r/golang-infosec] Best/most secure practices for a RESTful API Server/Nodes?

xuanbao · · 461 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Didn&#39;t realize how dead <a href="/r/golang_infosec">r/golang_infosec</a> is, so I&#39;m gonna repost here. I posted another thread about this project, if I&#39;m spamming or missing the point of this subreddit, feel free to berate me.</p> <p>I&#39;m working on an automated <a href="https://github.com/tywkeene/autobd">backup solution</a> of sorts.</p> <p>It was brought up that it&#39;s not the most secure thing in the world, and right after the mongodb fiasco, I&#39;m wondering how I can make sure I have the most sane and secure defaults possible, so I can avoid any compromises.</p> <p>As of now I have every node generate a UUID via <a href="https://github.com/satori/go.uuid">this package</a>. Once the node comes up, it identifies the configured server, and registers itself with said UUID. There is currently no mechanism in place to ensure a node is the original node that generated that UUID. What would be the best way to go about ensuring proper identification among nodes?</p> <p>Other than that, I have https working (last I checked :|).</p> <p>The only other thing I can think of that is a major security risk the the /nodes endpoint on the server side. It returns a json encoded list of metadata about each node. I use this mainly for debugging, and it disabled by default.</p> <p>Anyways, tear into me. Issues/Pull requests/Code review very welcome and appreciated :)</p> <p>Cheers.</p> <hr/>**评论:**<br/><br/>beknowly: <pre><blockquote> <p>There is currently no mechanism in place to ensure a node is the original node that generated that UUID. What would be the best way to go about ensuring proper identification among nodes?</p> </blockquote> <p>Public/private keys on both sides.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

461 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传