Difference between revisions of "Master Portal sshkey endpoint"

From PDP/Grid Wiki
Jump to navigationJump to search
(Created page with "== Introduction == The MasterPortal server has an extra OIDC-protected end-point, ''/sshkey'', which can be used to store SSH public keys on the MasterPortal. This wiki page ...")
 
Line 10: Line 10:
  
 
A valid request consists of the following parameters:
 
A valid request consists of the following parameters:
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 44: Line 43:
  
 
Valid action are the following
 
Valid action are the following
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 81: Line 79:
 
* A key is identified using the pair ''username'' / ''label'', where username is obtained using the provided access_token. When a key is added without specifying a ''label'', a unique one is created using the prefix ''ssh-key-'' followed by a unique sequence number.
 
* A key is identified using the pair ''username'' / ''label'', where username is obtained using the provided access_token. When a key is added without specifying a ''label'', a unique one is created using the prefix ''ssh-key-'' followed by a unique sequence number.
 
* A certain public key must be unique for all users, i.e. may only occur once in the ''ssh_keys ''table in the ''oa2server'' database.
 
* A certain public key must be unique for all users, i.e. may only occur once in the ''ssh_keys ''table in the ''oa2server'' database.
* Each user may have at most 5 public keys registered, the maximum being configurable in the server config file (<tt>/var/www/server/conf/cfg.xml<tt>) file via <tt><sshkeys max="5"/></tt>
+
* Each user may have at most 5 public keys registered, the maximum being configurable in the server config file (<tt>/var/www/server/conf/cfg.xml</tt>) file via <tt><sshkeys max="5"/></tt>

Revision as of 19:49, 31 August 2017