Skip to content

[tines] Fix template rendering error when there's no auth_email#11458

Merged
chrisberkhout merged 3 commits intoelastic:mainfrom
chrisberkhout:tines-no-auth-email
Oct 18, 2024
Merged

[tines] Fix template rendering error when there's no auth_email#11458
chrisberkhout merged 3 commits intoelastic:mainfrom
chrisberkhout:tines-no-auth-email

Conversation

@chrisberkhout
Copy link
Copy Markdown
Contributor

@chrisberkhout chrisberkhout commented Oct 17, 2024

Proposed commit message

[tines] Fix template rendering error when there's no auth_email

Don't populate a `X-User-Email` header if the `auth_email` variable is
not set.

The variable is not required, but when it's not present there is a
template failure while trying to populate the `X-User-Email` header.

That header isn't currently mentioned in the Tines API documentation.
It only requires `X-User-Token`.

---------
    
Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have verified that all data streams collect metrics or logs.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.
  • I have verified that any added dashboard complies with Kibana's Dashboard good practices

Related issues

@chrisberkhout chrisberkhout added Integration:tines Tines (Community supported) bugfix Pull request that fixes a bug issue Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations] labels Oct 17, 2024
@chrisberkhout chrisberkhout self-assigned this Oct 17, 2024
@chrisberkhout chrisberkhout requested a review from a team as a code owner October 17, 2024 21:00
@elasticmachine
Copy link
Copy Markdown

Pinging @elastic/security-service-integrations (Team:Security-Service Integrations)

@efd6
Copy link
Copy Markdown
Contributor

efd6 commented Oct 17, 2024

Can you pick up the test additions that I did for this in #11459.

@chrisberkhout chrisberkhout requested a review from efd6 October 18, 2024 07:34
Copy link
Copy Markdown
Contributor

@efd6 efd6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@elastic-sonarqube
Copy link
Copy Markdown

@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

🚀 Benchmarks report

To see the full report comment with /test benchmark fullreport

@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

History

cc @chrisberkhout

@chrisberkhout chrisberkhout merged commit 651c65f into elastic:main Oct 18, 2024
@elastic-vault-github-plugin-prod
Copy link
Copy Markdown

Package tines - 1.12.1 containing this change is available at https://epr.elastic.co/search?package=tines

harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 4, 2025
…tic#11458)

Don't populate a `X-User-Email` header if the `auth_email` variable is
not set.

The variable is not required, but when it's not present there is a
template failure while trying to populate the `X-User-Email` header.

That header isn't currently mentioned in the Tines API documentation.
It only requires `X-User-Token`.

---------
    
Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
harnish-crest-data pushed a commit to chavdaharnish/integrations that referenced this pull request Feb 5, 2025
…tic#11458)

Don't populate a `X-User-Email` header if the `auth_email` variable is
not set.

The variable is not required, but when it's not present there is a
template failure while trying to populate the `X-User-Email` header.

That header isn't currently mentioned in the Tines API documentation.
It only requires `X-User-Token`.

---------
    
Co-authored-by: Dan Kortschak <dan.kortschak@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes a bug issue Integration:tines Tines (Community supported) Team:Security-Service Integrations Security Service Integrations team [elastic/security-service-integrations]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants