Comments (4)
I don't think you can encrypt that secret in that way, as you will need it to authenticate them.
valid := totp.Validate(passcode, key.Secret())
I believe you will want to just store it as is.
from pursuance.
@ajvb What I'm saying is:
- Go server starts up
- We securely, interactively give it a long passphrase (using gopass, or maybe it tries grabbing its passphrase over SSL from a key server of course that will only let our servers grab their passphrase if we click "Yes let this server grab its passphrase" on a dashboard of ours?) that Go uses to generate a miniLock key pair (exactly like LeapChat does from the passphrase in the URL hash) -- and we give it the same passphrase every time
- Go uses the public key half of that key pair to encrypt each 2FA secret it generates
- Those 2FA secrets are stored encrypted on disk
- When Go needs a user's 2FA secret it (a) grabs it off disk, (b) decrypts it, and (c) uses it
Then if someone hacked the server or cloned its HD, they'd need to scrape the secret key from RAM in order to decrypt each user's 2FA secret.
Think that makes a meaningful difference, security-wise? If so, think it's worth the additional hassle/complexity?
from pursuance.
@elimisteve Could we get our hands on servers with an HSM?
from pursuance.
@ajvb Not sure yet. The downside there is that data we've encrypted with the HSM cannot be moved to a different server/we can't create useful backups of it that we can use elsewhere, which concerns me.
from pursuance.
Related Issues (20)
- Cannot Create Pursuance (Table not being Created) HOT 7
- Feature Request: Shortcut code for emergency logout.
- RightPanel.TaskDetails: Allow subtask creation
- Feature request: give users the option between dark theme and light theme HOT 2
- Feature idea: notify users when a file/document is updated
- Cross-browser compatibility: iPhone/Safari Mobile HOT 3
- Hypothes.is integration: create closed group, attach to task HOT 1
- Create basic Pursuance Universe visualiser
- Add pursuance membership HOT 4
- RightPanel: make task.deliverables field editable HOT 1
- UI should indicate which LeapChat rooms have unread messages
- RightPanel task filtering: add 'x' to right of text input to clear input HOT 2
- Left menu: clicking 'Discuss' should take users to the (first) root task's chat room
- New pursuance-specific section: Recruit HOT 3
- Make it as simple as humanly possible for non-technical people to launch a Pursuance server HOT 4
- UI tweak: highlight task in hierarchy when its details are being viewed in the right panel HOT 1
- Create CONTRIBUTING.md HOT 1
- Ensure secure SSH configuration on servers
- Shortcut idea: alt+down/up should let users move the task creation form among siblings
- Task assigner dropdown bug on Firefox
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pursuance.