Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(): when using s3, parse stream output to buffer for html files #117

Merged
merged 2 commits into from
May 20, 2021

Conversation

jithine
Copy link
Member

@jithine jithine commented May 19, 2021

Context

Objective

  1. increase token timeout to 13hrs
  2. map yidf/state to txt extension
  3. make sure html files can be rendered when using s3

References

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

increase token timeout to 13hrs
map yidf/state to txt extension
@@ -47,7 +47,7 @@ async function init() {

return logger.info('Server running at %s', server.info.uri);
} catch (err) {
logger.error(err);
logger.error(err.toString());
Copy link
Member

Choose a reason for hiding this comment

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

How about JSON.stringify, does JSON.stringify capture many info nosies?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is a bug with logger we use winston This is what we should do long term winstonjs/winston#1338 (comment)

helpers/mime.js Outdated Show resolved Hide resolved
@@ -31,6 +32,10 @@ class AwsClient {
}
};

if (config.sessionToken) {
Copy link
Contributor

Choose a reason for hiding this comment

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

is this added for local debugging only?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, any setup with a federated login, not sure if there is a scope to use this to move away from access key based login.

Copy link
Contributor

Choose a reason for hiding this comment

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

Added this, to remove IAM user dependency screwdriver-cd/screwdriver#2454

@jithine jithine merged commit fe41985 into master May 20, 2021
@jithine jithine deleted the new branch May 20, 2021 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants