इसे छोड़कर कंटेंट पर जाएं
AggregaAggregaAggregaAggrega
भाषा चुने: हिन्दी
इस पेज का मशीन अनुवाद किया गया है। मूल अंग्रेज़ी पढ़ें।

aggrega auth

aggrega auth उन कमांड को समूहित करता है जो हस्ताक्षर आइडेंटिटी से संबंधित हैं — वह OIDC आइडेंटिटी टोकन जिसका उपयोग कीलेस हस्ताक्षर करता है। यह aggrega login से अलग है, जो रजिस्ट्री के यूज़रनेम/पासवर्ड क्रेडेंशियल संग्रहीत करता है: auth का संबंध इससे है कि हस्ताक्षर करते समय आप कौन हैं, और login का इससे कि आप किसी रजिस्ट्री तक कैसे पहुँचते हैं।

aggrega auth token

aggrega auth token इंटरैक्टिव OIDC फ़्लो एक बार चलाता है और कच्चा आइडेंटिटी टोकन stdout पर प्रिंट करता है, ताकि आप एक आइडेंटिटी एक ही बार प्राप्त करें और हर आर्टिफ़ैक्ट के लिए ब्राउज़र के एक चक्कर के बिना कीलेस हस्ताक्षरों के पूरे बैच में उसका फिर से उपयोग करें।

सारांश

aggrega auth token

यह क्या करता है

aggrega auth token फ़ेडरेटेड OIDC लॉगिन पूरा करने के लिए एक ब्राउज़र खोलता है (वही प्राप्ति जो aggrega sign और aggrega push तब उपयोग करते हैं जब कोई टोकन नहीं दिया गया हो), फिर परिणामी आइडेंटिटी टोकन को stdout पर लिखता है और बाहर निकल जाता है। यह टोकन वह मान है जिसे कीलेस हस्ताक्षर सर्टिफ़िकेट जारी करवाने के लिए Fulcio के सामने प्रस्तुत करता है।

stdout पर केवल टोकन — और उसके बाद एक अकेली न्यूलाइन — लिखा जाता है। कोई भी प्रॉम्प्ट या डायग्नोस्टिक stderr पर जाता है, इसलिए कमांड सब्स्टिट्यूशन केवल टोकन को पकड़ता है:

export AGGREGA_IDENTITY_TOKEN=$(aggrega auth token)

टोकन एक्सपोर्ट हो जाने पर, उसके बाद का हर कीलेस aggrega sign (या aggrega push --sign) ब्राउज़र के साथ किसी और इंटरैक्शन के बिना उसी का फिर से उपयोग करता है:

export AGGREGA_IDENTITY_TOKEN=$(aggrega auth token)
aggrega sign hub.example.com/component/core/api-server:1.0.0
aggrega sign hub.example.com/component/core/worker:1.0.0

यह इंटरैक्टिव बैच हस्ताक्षर का स्क्रिप्ट-आधारित समकक्ष है: aggrega sign <ref1> <ref2> ... पूरे बैच के लिए आइडेंटिटी को इन-प्रोसेस एक बार प्राप्त करता है, जबकि aggrega auth token उसे अलग-अलग इनवोकेशन में उपयोग के लिए एक्सपोर्ट करता है।

सुरक्षा

आइडेंटिटी टोकन अल्पकालिक है और यह कमांड उसे स्थायी रूप से संग्रहीत नहीं करता — उसे stdout पर प्रिंट करना आपका स्पष्ट चुनाव है, आपके टर्मिनल और आपके एक्सपोर्ट के लिए। वह केवल वहीं रहता है जहाँ आप उसे रखते हैं (आम तौर पर सत्र की अवधि तक एक शेल एनवायरनमेंट वेरिएबल में)। यदि कोई लंबा बैच पूरा होने से पहले टोकन की अवधि समाप्त हो जाए, तो नया टोकन बनाने के लिए aggrega auth token फिर से चलाएं।

यह भी देखें

  • ./aggrega-sign.md — एक या अधिक आर्टिफ़ैक्ट पर हस्ताक्षर करें; बैच हस्ताक्षर आइडेंटिटी को एक बार प्राप्त करता है।
  • ./aggrega-push.md — प्रकाशित करें, और चाहें तो पुश के समय हस्ताक्षर भी करें।
  • environment-variables.md — AGGREGA_IDENTITY_TOKEN और हस्ताक्षर के अन्य इनपुट।

सारांश

aggrega auth

विवरण

Commands for the keyless signing identity (an OIDC identity token), distinct from `aggrega login`, which stores registry username/password credentials. The identity token is a short-lived secret used by keyless signing; it is never persisted by these commands.

सबकमांड

कमांडविवरण
aggrega auth tokenइंटरैक्टिव रूप से एक OIDC आइडेंटिटी टोकन प्राप्त करें और उसे stdout पर प्रिंट करें

aggrega auth token का विवरण

Run the interactive OIDC flow once and print the raw identity token to stdout, so it can populate the environment for a batch of keyless signs:
export AGGREGA_IDENTITY_TOKEN=$(aggrega auth token)
Only the token is written to stdout; any prompt or diagnostic goes to stderr, so command substitution captures the token alone. The token is short-lived and is not persisted by this command — the caller decides whether to export it. This is distinct from `aggrega login`, which stores registry credentials.