// Copyright 2016 Eivind Vegsundvåg
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package ninja.eivind.hotsreplayuploader.providers.hotslogs;

import com.amazonaws.auth.BasicAWSCredentials;
import org.springframework.stereotype.Component;

@Component("hotslogs-s3credentials")
public class HotsLogsAWSCredentials extends BasicAWSCredentials {

    private static final String ACCESS_KEY = "AKIAIESBHEUH4KAAG4UA";
    private static final String SECRET_KEY = "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";

    public HotsLogsAWSCredentials() {
        super(ACCESS_KEY, SECRET_KEY);
    }
}

@@ -742,16 +742,825 @@
 onent;%0A%0A
+/**%0A * The AWS credentials for the public HotsLogs S3 bucket.%0A * DEAR READER: These are public, and this is very much intended. We understand your concerns about security, but given%0A * the current technological environment, it is impossible to hide this from anyone who wants to inspect the memory of%0A * the application. In fact, Java debuggers have gotten so advanced that it is trivial. Therefore, the security of this%0A * key rests solely on proper restrictions having been placed on it. We, the developers, have not personally verified%0A * this, but trust the developer of HotsLogs has done the correct amount of work.%0A *%0A * If you wish to further inquire about ideas for improving the security model of this layer, please email%0A * %7B@literal mail@eivind.ninja%7D with %7B@literal admin@hotslogs.com%7D on CC.%0A */%0A
 @Compone

add security warning on aws credentials