Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-3107

System will not allow anyone to use the default Elastic Bamboo image unless instantiated by Bamboo server

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Due to Sun's DLJ license, we need to prevent third parties from using the JDK installed in the EC2 image unless they have accepted Bamboo's EULA.

            [BAM-3107] System will not allow anyone to use the default Elastic Bamboo image unless instantiated by Bamboo server

            MarkC added a comment -

            shall I prevent using default Elastic Bamboo Image on the OS level (ie. executing shutdown from within start scripts), or
            shall I simply prevent starting Elastic Agent when given metadata is missing?

            We should do this @ the OS level (with appropriate logging) since it's the instance that we need protect.

            how do I access that metadata from Java program and OS level (bash script)?

            There's a /opt/bamboo-elastic-agent/bin/getCustomData.sh shell script that allows you to write the result of a meta data call to disk, so you can use that directly or use it as inspiration.

            MarkC added a comment - shall I prevent using default Elastic Bamboo Image on the OS level (ie. executing shutdown from within start scripts), or shall I simply prevent starting Elastic Agent when given metadata is missing? We should do this @ the OS level (with appropriate logging) since it's the instance that we need protect. how do I access that metadata from Java program and OS level (bash script)? There's a /opt/bamboo-elastic-agent/bin/getCustomData.sh shell script that allows you to write the result of a meta data call to disk, so you can use that directly or use it as inspiration.

            Let me describe how I understand that:

            Bamboo server passes a 'started-by-bamboo' marker to starting EC2 instance using metadata (as it is shown in class RemoteElasticAgentImpl).

            Now the receiving side:

            • shall I prevent using default Elastic Bamboo Image on the OS level (ie. executing shutdown from within start scripts), or
            • shall I simply prevent starting Elastic Agent when given metadata is missing?
            • how do I access that metadata from Java program and OS level (bash script)?

            Krystian Brazulewicz added a comment - Let me describe how I understand that: Bamboo server passes a 'started-by-bamboo' marker to starting EC2 instance using metadata (as it is shown in class RemoteElasticAgentImpl). Now the receiving side: shall I prevent using default Elastic Bamboo Image on the OS level (ie. executing shutdown from within start scripts), or shall I simply prevent starting Elastic Agent when given metadata is missing? how do I access that metadata from Java program and OS level (bash script)?

            sladey added a comment -

            updated from M4 planning

            sladey added a comment - updated from M4 planning

            sladey added a comment -
            • approach is to check if there is valid user data during instance startup

            sladey added a comment - approach is to check if there is valid user data during instance startup

              Unassigned Unassigned
              Anonymous Anonymous
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 8h
                  8h
                  Remaining:
                  Time Spent - 7.25h Remaining Estimate - 0.75h
                  0.75h
                  Logged:
                  Time Spent - 7.25h Remaining Estimate - 0.75h
                  7.25h