github.com/choria-io/go-choria@v0.28.1-0.20240416190746-b3bf9c7d5a45/internal/fs/ddl/cache/agent/aaa_signer.ddl (about) 1 -- Copyright (c) 2024, R.I. Pienaar and the Choria Project contributors 2 -- 3 -- SPDX-License-Identifier: Apache-2.0 4 5 metadata :name => "aaa_signer", 6 :description => "Request Signer for Choria AAA Service", 7 :author => "R.I.Pienaar <rip@devco.net>", 8 :license => "Apache-2.0", 9 :version => "0.28.0", 10 :url => "https://github.com/choria-io/aaasvc", 11 :provider => "golang", 12 :service => true, 13 :timeout => 10 14 15 16 action "sign", :description => "Signs a RPC Request on behalf of a user" do 17 display :always 18 19 input :request, 20 :prompt => "RPC Request", 21 :description => "The request to sign", 22 :type => :string, 23 :validation => :shellsafe, 24 :maxlength => 100240, 25 :optional => false 26 27 28 input :signature, 29 :prompt => "Request Signature", 30 :description => "A signature produced using the ed25519 seed of the request, hex encoded", 31 :type => :string, 32 :validation => '.', 33 :maxlength => 1024, 34 :optional => false 35 36 37 input :token, 38 :prompt => "JWT Token", 39 :description => "The JWT token authenticating the user", 40 :type => :string, 41 :validation => '.', 42 :maxlength => 10024, 43 :optional => false 44 45 46 47 48 output :secure_request, 49 :description => "The signed Secure Request", 50 :type => "string", 51 :display_as => "Secure Request" 52 53 end 54