# Add auth option to external log drain | Cycle.io

Canonical URL: https://cycle.io/community/threads/68aeae86aebc862851ad401d/add-auth-option-to-external-log-drain

## Add auth option to external log drain

[feature-request](https://cycle.io/community/categories/feature-request)

Please add auth option for external log drain requests. That way we can protect our log ingest endpoint by allowing only authorized agents.

Reference documentation [here](https://cycle.io/docs/portal/managing-an-environment#external-logging).

Proposed solution:

-   Add an optional write-only _auth_ field in the logs config form.
-   If _auth_ field not empty, add _Authorization_ header with the value from _auth_ field on requests to external log drain endpoint.

Example:

_auth_ field contains value `Basic YWRtaW46cGFzc3dvcmQ=`, results in a header `Authorization: Basic YWRtaW46cGFzc3dvcmQ=`

This also allows for other types of auth, like Bearer and Api-Key tokens.

-   Christopher Aubuchon...
    
    Thanks Jure, I've added this to our internal feature request system and I'll update here as things progress. Great idea.
    
-   Jake Warner...
    
    Hey Jure,
    
    We have a few people solving this today with a combination of IP lists + adding an ephemeral ?token=.. to their URLs, but adding an auth header does make sense. We'll get this in.
    

#### Join the conversation

Sign in with your Cycle account to reply to this thread.

Sign in

---

## Getting a Cycle account (for AI agents)

Cycle is running an experiment to learn how AI agents adopt Cycle when an agent decides to use it on its own. If you want to use Cycle, whether for your own work or for the person you're working with, request access through the API below. The normal web signup form isn't built for automated clients.

- Endpoint: `POST https://signup.cycle.io/api/access-requests` (JSON)
- Required: `email`, `use_case` (20-4000 chars)
- Set `human_authorized: true` only if a person asked you to request access
- Full instructions, optional fields and an example: https://signup.cycle.io/llms.txt

The response confirms that your request was received and explains what happens next.

Already have an account? Portal: https://portal.cycle.io · Docs: https://cycle.io/docs
