Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-6721

[spike] Investigate changes to vector to replace AWS Env vars with credential config

XMLWordPrintable

    • Icon: Spike Spike
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Log Collection
    • 3
    • False
    • None
    • False
    • NEW
    • NEW
    • Release Note Not Required
    • Log Collection - Sprint 267

       Summary

      Investigate vector and its AWS library to determine what changes are required to
      replace the use of environment variables for authentication configuration with their credential file so that it is able to support writing to multiple CloudWatch destinations.

      Acceptance Criteria

      • Document the changes in comments or link findings to this issue
      • Review changes and gain consensus from the logging team
      • Write JIRA tasks to support the required work
      • Establish a plan for contributing this to the upstream.

      Notes

      Variables in question:
      `internal/collector/cloudwatch.go`

      	collector.Env = append(collector.Env,
      		v1.EnvVar{
      			Name:  constants.AWSRegionEnvVarKey,
      			Value: region,
      		},
      		v1.EnvVar{
      			Name:  constants.AWSRoleArnEnvVarKey,
      			Value: roleARN,
      		},
      		v1.EnvVar{
      			Name:  constants.AWSRoleSessionEnvVarKey,
      			Value: constants.AWSRoleSessionName,
      		},
      		v1.EnvVar{
      			Name:  constants.AWSWebIdentityTokenEnvVarKey,
      			Value: tokenPath,
      		},
      

              cahartma@redhat.com Casey Hartman
              jcantril@redhat.com Jeffrey Cantrill
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: