Comments (7)
@vpetersson AFAIK the only case when the device is already claimed is if it had the agent already installed (and its config files and certs therein).
Am I missing something and do we need to ask the server if the device had already been claimed?
from agent.
What I'm talking about is if you run apt-get upgrade
and install an updated version of the agent. We then get the same message again about how to claim the device (despite that it has already been claimed)
Am I missing something and do we need to ask the server if the device had already been claimed?
Yes, I think that's the only way.
from agent.
clarification:
- When
wott-agent claim-url
is called, check if the device is already claimed by getting/api/.../is-claimed
(WoTTsecurity/api#206) and if it is, return empty string. - Update postinst, do nothing if
claim-url
returned empty string.
@vpetersson do we need the postinst message at all when upgrading? It's all about getting started and claiming: https://github.com/WoTTsecurity/agent/blob/master/debian/postinst#L4-L13
from agent.
We probably do not need it at all, to be honest. We do however need to know the claim status in the agent.
from agent.
@vpetersson So the postinst message should be completely removed, right?
We do however need to know the claim status in the agent.
My idea is that if the device is already claimed wott-agent claim-url
returns empty. The url isn't valid anyway in this case.
from agent.
Yeah sure, or an error saying 'Device already claimed' or similar.
from agent.
i'll take it
from agent.
Related Issues (20)
- Set User-Agent header
- Implement functinality to patch system based on recommended actions HOT 5
- Installation fails on Debian Jessie HOT 2
- Add audit of Docker containers HOT 2
- Add environment/cloud detection HOT 3
- "Automatic security updates" fail to detect on Debian/Aws Linux HOT 2
- Improve sshd detection/logic HOT 3
- Fix self-update script for agent HOT 2
- Detect and send kernel metapacakages HOT 1
- Detect VirtualBox and suppress heartbleed/spectre
- Add support for Ubuntu 18.10 HOT 2
- Fix installation error on Ubuntu 16.04 HOT 4
- Implement CIS Benchmarks for OpenSSH (section 5.2) the Ubuntu guide. HOT 5
- Audit/Detect SSH keys
- Self-update code is broken on AWS Linux
- Certificate renewal broken on AWS Linux HOT 2
- Resolve kernel detection
- 'python-iptables: match "state" already registered' on AWS Linux HOT 5
- Formatting issue in post-install message
- Investigate CPU usage spike on Ubuntu HOT 6
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 agent.