You ask your agent to show partners their details. It sends back their API key too.
type PartnerName = Text { max_length: 100}/// What the partners page shows of a partner.type PartnerProfile = Output { name: PartnerName partner_key: ApiKeyadded by your agent}
error PartnerProfile.partner_key holds an ApiKey
- reason
- An
ApiKeyis a secret value: it is never sent, logged, stored or shown. A response is written out, logged by proxies and kept by browsers, and a client never needs a secret back. - next
- Remove
partner_key, and send what the client needs instead, such as whether one is set (agent) - rule
- type.secret_exposed
Real code and compiler output. Each check the compiler makes has its own page, and this one is type.secret_exposed. The request to your agent is made up. The next step ends in (agent), so your agent fixes this one itself, before you see the change.