Comments (4)
How about a new command, ykval-full-sync (or similar), which sends a new type of request (perhaps piggybacking on the existing 'sync' URL) causing the remote server to create queue entries for all of its known YubiKeys?
This would allow the administrator to selectively choose the best suited server out of the pool to sync against, and shouldn't cause any surprises.
EDIT: There's of course a bit of overhead using an HTTP request per YubiKey, but seeing as this is something that probably wouldn't be run very often, I think the benefit of re-using the existing queue system may outweigh this downside.
from yubikey-val.
I just discovered ykval-resync.php which basically does this, but for a single YubiKey. It has it's own list of allowed IPs in ykval-config, and as far as I know, it's not called by any of our other scripts. The only way to invoke it seems to be by manually creating and sending the request (using curl for instance) from an allowed YKVAL server.
We could extend this to optionally queue all YubiKeys instead of a specific one, as well as add a command to invoke it easier.
On a related note, I'm not sure I see the need for a configuration for allowed IPs for resync (YKRESYNC_IPS) separate from the allowed sync pool (YKVAL_ALLOWED_SYNC_POOL).
from yubikey-val.
I've made some changes based on my earlier comments:
ykval-resync.php now handles ?yk=all, queuing all active YubiKeys for synchronization.
I've added ykval-synchronize which can be called from a new server installation, to send the request to an existing servers ykval-resync.php, and I've updated the documentation with instructions under Installation.
Lastly I've updated the default ykval-config file to re-use the IPs in YKVAL_ALLOWED_SYNC_POOL for YKRESYNC_IPS, as I imagine this is most commonly desired.
from yubikey-val.
Great! I think a separate command is better than having the sync daemon be able to do this.
Let's test this a bit and then close this issue.
from yubikey-val.
Related Issues (20)
- Log level configurable? HOT 2
- Improve documentation wrt multi-API use
- make install does not work since documentation changed HOT 1
- ykval-queue logging very verbose even when doing nothing HOT 1
- Possible timing attack in HMAC check HOT 2
- Ubuntu server 14.04 HOT 1
- OTP_MAX_LEN : 64
- Correct way to use two validation servers? HOT 1
- recent commit breaks existing installations with BAD_OTP HOT 5
- yk_publicname in ykval-synclib.php HOT 6
- ykval-gen-clients does not synchronize clients across multiple ykval servers, breaks clients
- One step not covered in any of the documentation.. HOT 1
- Revoking a yubikey within a cluster HOT 2
- Undefined $rows variable in ykval-revoke.php
- Verification output (1): Yubikey OTP was bad (BAD_OTP) HOT 9
- BACKEND_ERROR status
- Always getting 200 with MISSING_PARAMETER when trying to invalidate OTP HOT 1
- ykclient return value (109): Error performing curl HOT 6
- Undefined Constants
- Possible SQL injection vulnerability in ykval-synclib.php HOT 1
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 yubikey-val.