Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Conversation

@cachedout
Copy link
Contributor

What does this PR do?

Pulls in stored credentials file into the workspace just before we build the Docker image.

Why is it important?

In order to deploy the opbeat, we need to have credentials which correctly annotate OAuth requests with the developer profile belonging to the application.

This data is pseudo-sensitive and so it's better if we can keep it in our secret store and write it out just before build time.

Related issues

Refs https://github.com/elastic/observability-robots/issues/39

@elastic elastic deleted a comment May 13, 2020
@ghost
Copy link

ghost commented May 13, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

Test stats 🧪

Test Results
Failed 0
Passed 508
Skipped 9
Total 517

Copy link
Contributor

@kuisathaverat kuisathaverat left a comment

Choose a reason for hiding this comment

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

LGTM if we make a deleteDir at the end of the stage in a post cleanup stage.

@cachedout
Copy link
Contributor Author

LGTM if we make a deleteDir at the end of the stage in a post cleanup stage.

@kuisathaverat Could you take a look and see if this change is what you had in mind?

@kuisathaverat
Copy link
Contributor

could you add a post with the deleteDir just after the steps{} directive, the thing is to keep only the file for the time it is needed, the stage. It is trying that it is the last stage and the effect will be the same as it is in your implementation but if we add a new stage after yours the credential will live a little more in disk.

@cachedout
Copy link
Contributor Author

could you add a post with the deleteDir just after the steps{} directive

Thanks for the suggestion, @kuisathaverat . Is this what you were suggesting?

@cachedout cachedout merged commit 58df80c into elastic:master May 13, 2020
v1v referenced this pull request in v1v/apm-pipeline-library-backup May 14, 2020
… into feature/stashv2

* 'feature/stashv2' of github.com:v1v/apm-pipeline-library:
  Write credentials for opbot (#529)
  Add flake detector to pipeline (#530)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants